projects
/
catagits/HTML-Zoom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
ac3acd8
)
Merge branch 'documentation'
Jakub Narebski [Mon, 24 Jan 2011 20:02:39 +0000 (21:02 +0100)]
lib/HTML/Zoom/SelectorParser.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/HTML/Zoom/SelectorParser.pm
b/lib/HTML/Zoom/SelectorParser.pm
index
929e9a7
..
48545ff
100644
(file)
--- a/
lib/HTML/Zoom/SelectorParser.pm
+++ b/
lib/HTML/Zoom/SelectorParser.pm
@@
-88,7
+88,7
@@
sub _raw_parse_simple_selector {
my $value = $2;
sub {
$_[0]->{attrs}{$attribute}
- && grep { $_ eq $value } split(' ', $_[0]->{attrs}{$attribute});
+ && $_[0]->{attrs}{$attribute} =~ qr/\b\Q$value\E\b/;
}
};