temporary-containers icon indicating copy to clipboard operation
temporary-containers copied to clipboard

Simplify const declaration for regex

Open Gitoffthelawn opened this issue 2 years ago • 2 comments

I'm not sure about this... I noticed this strange literal within this const declaration.

If this literal is not needed, please accept the PR. If it's needed, please reject the PR, and if you have time, explain why the matching that literal within the pattern is needed. It looks like perhaps a literal for an exception that is possibly no longer needed.

Gitoffthelawn avatar Dec 14 '22 01:12 Gitoffthelawn

gimsuy is a regex flag, not a literal.

  • g - global
  • i - case insensitive
  • m - multiline
  • s - single line
  • u - unicode
  • y - sticky

jonsjava avatar Mar 06 '23 13:03 jonsjava

gimsuy is a regex flag, not a literal.

* g - global

* i - case insensitive

* m - multiline

* s - single line

* u - unicode

* y - sticky

Thanks so much. Why aren't the flags located at the end of the regex, as is typical?

Gitoffthelawn avatar Apr 02 '23 10:04 Gitoffthelawn