Skip to content

Commit

Permalink
Fix word-boundary character duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
knuton committed May 5, 2011
1 parent bc9781d commit d8fe8b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jisonlex.jison
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ action
regex
: regex_list
{{ $$ = $1;
if ($$.match(/[\w\d]$/) && !$$.match(/\\u[a-fA-F0-9]{4}$/))
if ($$.match(/[\w\d]$/) && !$$.match(/\\u[a-fA-F0-9]{4}$/) && !$$.match(/\\b$/))
$$ += "\\b";
}}
;
Expand Down

0 comments on commit d8fe8b5

Please sign in to comment.