Skip to content

Commit

Permalink
match only against whole words
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Nov 28, 2018
1 parent 7770a5c commit 84b072a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xt/braces.t
Expand Up @@ -24,12 +24,12 @@ sub test-it(Str $output, Str $file) {

my $line = $output.subst(/\s+/, ' ', :g); # canonicalize whitespace

if $line ~~ /:i <!after curly> ' ' 'braces' / {
if $line ~~ /:i <!after curly> ' ' 'braces' >> / {
$msg ~= "Found 'braces' without 'curly'. ";
$ok = False;
}

if $line ~~ /:i <!after square><!after angle> ' ' ('bracket' [s|ed]?) / {
if $line ~~ /:i <!after square><!after angle> ' ' ('bracket' [s|ed]?) >> / {
$msg ~= "Found '{~$0}' without 'square' or 'angle'.";
$ok = False;
}
Expand Down

0 comments on commit 84b072a

Please sign in to comment.