-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #1021, always check if files exist
- Loading branch information
1 parent
f2a86cd
commit a06e1c1
Showing
3 changed files
with
29 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a06e1c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that new regex machanism looks a bit complicated. what was causing the original version to fail?
are you sure "\w+=" covers all cases, for example leading whitespace?
a06e1c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the main issue here is the incomplete regex implementation in GCC 4.7 and 4.8. Working around that.
a06e1c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see.
but check that your regex works as expected. it seems you're looking only for alphanumerics directly followed by an equal sign, which would not match if there's space before the '='. and since you're not using an anchor, you will also potentially downcase values if they match?
a06e1c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reverted the code to the prev boost based regex with 3f7982a as GCC does not properly implement the stuff prior to GCC v4.9