fix: parsear index como link interno
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
cd39e1ea52
commit
7375a12c91
1 changed files with 3 additions and 4 deletions
|
@ -308,15 +308,14 @@ export const schema = new Schema({
|
||||||
{
|
{
|
||||||
tag: "a[href]",
|
tag: "a[href]",
|
||||||
priority: 100,
|
priority: 100,
|
||||||
// TODO: untested
|
|
||||||
getAttrs(dom) {
|
getAttrs(dom) {
|
||||||
dom = dom as HTMLElement;
|
dom = dom as HTMLElement;
|
||||||
const href = dom.getAttribute("href");
|
const href = dom.getAttribute("href");
|
||||||
if (
|
if (
|
||||||
href &&
|
href &&
|
||||||
/^[useandom\-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict]{21}$/.test(
|
(/^[useandom\-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict]{21}$/.test(
|
||||||
href,
|
href
|
||||||
)
|
) || href === 'index')
|
||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
id: href,
|
id: href,
|
||||||
|
|
Loading…
Reference in a new issue