Skip to content

Commit 562ae5e

Browse files
committed
Update index.cjs
1 parent 39585ac commit 562ae5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function index(endRegex = []) {
2323
+ '(?: +|\\n|\\/?>)|<(?:script|pre|style|textarea|!--)endRegex).*(?:\\n|$))*)\\n*|$)'; // Cells
2424

2525
regexString = regexString.replace('endRegex', endRegex.map(str => `|(?:${str})`).join(''));
26-
const widthRegex = /(?:100|[1-9][0-9]?%)/g;
26+
const widthRegex = / *(?:100|[1-9][0-9]?%) */g;
2727
const regex = new RegExp(regexString);
2828
const cap = regex.exec(src);
2929

0 commit comments

Comments
 (0)