use parse5 6.0.1

Fix #8914
This commit is contained in:
syuilo
2022-07-01 11:07:14 +09:00
parent 66b27bdc97
commit b846ebeb97
3 changed files with 12 additions and 33 deletions

View File

@ -1,6 +1,6 @@
import { URL } from 'node:url';
import * as parse5 from 'parse5';
import { adapter as treeAdapter } from 'parse5-htmlparser2-tree-adapter';
import treeAdapter from 'parse5/lib/tree-adapters/default.js';
const urlRegex = /^https?:\/\/[\w\/:%#@$&?!()\[\]~.,=+\-]+/;
const urlRegexFull = /^https?:\/\/[\w\/:%#@$&?!()\[\]~.,=+\-]+$/;