Closed jbinda closed 4 years ago
During last work with the repo I have looked on processRegexp(pattern) function and... decide to refactor it. It should be more clear now. We can refactor it more by replacig below line
processRegexp(pattern)
const [source ,flags] = (matchDelimiters || []).slice(1);
to
const [,source ,flags] = matchDelimiters || [];
but I don't have strong opinion about this. What version do you like more ?
Wow, it's much shorter!
I think I prefer: const [, source, flags] = matchDelimiters || [];
const [, source, flags] = matchDelimiters || [];
Changed !
During last work with the repo I have looked on
processRegexp(pattern)
function and... decide to refactor it. It should be more clear now. We can refactor it more by replacig below lineto
but I don't have strong opinion about this. What version do you like more ?