The purpose of this checker is to examine a regex and look for a situation
one can run into if you try to use the free-form regex syntax, which allows
a regex to be spread out over multiple lines with comments intersperced.
Trouble is, such regex must be wrapped with CDATA bracketing, otherwise it
will all end up on one line, and the comments are from a # to end of line, so
this breaks the regex, and very commonly the regex will begin with a comment
and so the effective regex is one that matches anything at all, but is
completely legal as a regex, which makes it very very painful to debug.
Linear Supertypes
AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
PatternChecker
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Value Members
final def!=(arg0: Any): Boolean
Definition Classes
AnyRef → Any
final def##(): Int
Definition Classes
AnyRef → Any
final def==(arg0: Any): Boolean
Definition Classes
AnyRef → Any
final defasInstanceOf[T0]: T0
Definition Classes
Any
defcheckPattern(pattern: String, context: SavesErrorsAndWarnings): Unit
The purpose of this checker is to examine a regex and look for a situation one can run into if you try to use the free-form regex syntax, which allows a regex to be spread out over multiple lines with comments intersperced.
Trouble is, such regex must be wrapped with CDATA bracketing, otherwise it will all end up on one line, and the comments are from a # to end of line, so this breaks the regex, and very commonly the regex will begin with a comment and so the effective regex is one that matches anything at all, but is completely legal as a regex, which makes it very very painful to debug.