Skip to content

Commit

Permalink
fix regex goof: "-" at end of char class or it makes a range
Browse files Browse the repository at this point in the history
  • Loading branch information
ikluft committed Aug 30, 2023
1 parent 7fb695e commit 35cb892
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/perl/prefvote/lib/PrefVote/Core/Input/CEF_Parser.pm
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ sub _Parse {
[ '=' => qr([=])x, ],
[ '>' => qr([>])x, ],
[ INT => qr(\d+)x, ],
[ WORD => qr([\w!$%&+-.:;@]+)x, ],
[ WORD => qr([\w!$%&+.:;@-]+)x, ],
);


Expand Down
2 changes: 1 addition & 1 deletion src/perl/prefvote/lib/PrefVote/Core/Input/CEF_Parser.yp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
[ '=' => qr([=])x, ],
[ '>' => qr([>])x, ],
[ INT => qr(\d+)x, ],
[ WORD => qr([\w!$%&+-.:;@]+)x, ],
[ WORD => qr([\w!$%&+.:;@-]+)x, ],
);
%}

Expand Down

0 comments on commit 35cb892

Please sign in to comment.