Example #1
0
 private static Regex CreateRegex(ExpandedRegexDescriptor regexDescriptor)
 => new Regex(
     regexDescriptor.Pattern,
     regexDescriptor.Options | RegexOptions.Compiled | RegexOptions.CultureInvariant);
Example #2
0
 private static bool IsDefaultWarningRegex(ExpandedRegexDescriptor regexDescriptor)
 => string.Equals(regexDescriptor.Pattern, Warning.DefaultWarningPattern) && regexDescriptor.Options == RegexOptions.IgnoreCase;