Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
simplify regex a little
  • Loading branch information
kraih committed Jan 10, 2015
1 parent 6d1b5ea commit 81dbe9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/DOM/CSS.pm
Expand Up @@ -284,7 +284,7 @@ sub _value {
$value = ($insensitive ? '(?i)' : '') . quotemeta _unescape($value);

# "~=" (word)
return qr/(?:^|.*\s+)$value(?:\s+.*|$)/ if $op eq '~';
return qr/(?:^|\s+)$value(?:\s+|$)/ if $op eq '~';

# "*=" (contains)
return qr/$value/ if $op eq '*';
Expand Down

0 comments on commit 81dbe9d

Please sign in to comment.