Added start/end of string, "hex", modifiers #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
0.1.5 --> 0.1.6:
This make version 0.1.6 slightly incompatible with the previous, but the change (which only affects weird uses of
start/end_of_line
, and some uses foralternatively
) is unlikely to even be noticed.0.1.6 --> 0.2.0
Added modifiers. I.e. ignorecase and multiline. These can be passed in as parameters with the VerEx constructor, e.g.
VerEx.new(:ignorecase) do .....
.This is also a slight bug fix, since
VerEx.new
was creating case insensitive regular expressions by default. From the ruby docs:If options is a Fixnum, it should be one or more of the constants Regexp::EXTENDED,
Regexp::IGNORECASE, and Regexp::MULTILINE, or-ed together. Otherwise, if options is not nil or false,
the regexp will be case insensitive.
Previously, modifiers was being defaulted to an empty string, not nil or false.
0.2.0 --> 0.2.1
P.s. I didn't want to re-generate the gemspec myself as I'm submitting this on a Windows machine which has all different versions of things installed.