parent
66b27bdc97
commit
b846ebeb97
3 changed files with 12 additions and 33 deletions
|
@ -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\/:%#@$&?!()\[\]~.,=+\-]+$/;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue