We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39585ac commit 562ae5eCopy full SHA for 562ae5e
lib/index.cjs
@@ -23,7 +23,7 @@ function index(endRegex = []) {
23
+ '(?: +|\\n|\\/?>)|<(?:script|pre|style|textarea|!--)endRegex).*(?:\\n|$))*)\\n*|$)'; // Cells
24
25
regexString = regexString.replace('endRegex', endRegex.map(str => `|(?:${str})`).join(''));
26
- const widthRegex = /(?:100|[1-9][0-9]?%)/g;
+ const widthRegex = / *(?:100|[1-9][0-9]?%) */g;
27
const regex = new RegExp(regexString);
28
const cap = regex.exec(src);
29
0 commit comments