Helper function to convert a simple pattern to a regular expression for matching.
Returns a regular expression object that conforms to the defined conversion rules.
Parameter |
Type |
Usage |
Description |
pattern |
String |
required |
string |
ignoreCase |
boolean |
optional |
An optional flag to indicate if the pattern matching should be treated as case-sensitive or not when comparing
By default, it is assumed case sensitive. |