Skip to content

Commit dfe7354

Browse files
committed
fix: comment new regex and reinstate previous regex
1 parent 7cee978 commit dfe7354

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/getValue.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,9 @@ const getValue = (element) => {
344344

345345
function regexParser(string) {
346346
let regex, replacement;
347+
// Match a regex pattern enclosed by delimiters or a bare regex string
348+
// let regexMatch = string.match(/^\/(.+)\/([gimuy]*)$/) || [null, string, ""];
349+
347350
let regexMatch = string.match(/\/(.+)\/([gimuy]*)/);
348351
if (regexMatch) {
349352
regex = new RegExp(regexMatch[1], regexMatch[2]);

0 commit comments

Comments
 (0)