Permalink
Browse files

simplify regex a little

  • Loading branch information...
1 parent 6d1b5ea commit 81dbe9d6f6f4f5646f8acf4b5fee9a902f0c1bc1 @kraih committed Jan 10, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Mojo/DOM/CSS.pm
View
@@ -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 '*';

0 comments on commit 81dbe9d

Please sign in to comment.