File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const isUrl = require("is-url");
55const { replaceTrailingNewlines } = require ( "./replacer.js" ) ;
66
77const linkRegex = / < l i n k \b [ ^ < > ] * ?\b h r e f = \s * (?: " ( [ ^ " ] + ) " | ' ( [ ^ ' ] + ) ' | ( [ ^ > \s ] + ) ) [ ^ > ] * > / gm;
8- const scriptRegex = / < s c r i p t [ \S \s ] * ?> ( [ \S \s ] * ?) < \/ s c r i p t > / im;
8+ const scriptRegex = / < s c r i p t [ ^ > ] * ?> ( [ \S \s ] * ?) < \/ s c r i p t [ ^ > ] * ? > / im;
99
1010// eslint-disable-next-line max-statements
1111exports . extractLink = async ( {
Original file line number Diff line number Diff line change 33const { init, parse } = require ( "es-module-lexer" ) ;
44const parseImports = require ( "parse-es6-imports" ) ;
55
6- const scriptRegex = / < s c r i p t [ \S \s ] * ?> (?< contents > [ \S \s ] * ?) < \/ s c r i p t > / gim;
6+ const scriptRegex = / < s c r i p t [ ^ > ] * ?> (?< contents > [ \S \s ] * ?) < \/ s c r i p t [ ^ > ] * ? > / gim;
77
88// eslint-disable-next-line max-statements
99exports . extractImport = async ( {
You can’t perform that action at this time.
0 commit comments