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]",
|
||||
priority: 100,
|
||||
// TODO: untested
|
||||
getAttrs(dom) {
|
||||
dom = dom as HTMLElement;
|
||||
const href = dom.getAttribute("href");
|
||||
if (
|
||||
href &&
|
||||
/^[useandom\-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict]{21}$/.test(
|
||||
href,
|
||||
)
|
||||
(/^[useandom\-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict]{21}$/.test(
|
||||
href
|
||||
) || href === 'index')
|
||||
) {
|
||||
return {
|
||||
id: href,
|
||||
|
|
Loading…
Reference in a new issue