Closed ChristopherGAndrews closed 4 years ago
Just checking to see if I am missing a step to get this PR approved or declined?
@mtdowling any chance to merge? (there seems to be a couple PRs ready for you to just push a button that would benefit quite a few people). Thanks.
This code was merged to master in #137 .
Issue #120 Regexes with spaces and \s cause issues with different versions of git and grep
Description of changes:
The
load_combined_patterns
function was configured to only split the patterns variable by line breaks. This allows you to have spaces in your pattern, like:The
\s
pattern group is not properly recognized in all version ofgrep
andgit grep
. Also, space is a valid character that you can build a pattern around.Additionally, two tests were added:
WHITE SPACE
is not split intoWHITE|SPACE
WHITE SPACE
will properly matchBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.