Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 00a36de

Browse files
Fix regular expression
1 parent 42ad28e commit 00a36de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Document/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static function cssToXpath($path)
8888

8989
// Arbitrary attribute value contains whitespace
9090
$path = preg_replace_callback(
91-
'/\[\S+["\']([\w\s]+)["\']\]/',
91+
'/\[\S+?["\'](.+?)["\']\]/',
9292
function ($matches) {
9393
return str_replace($matches[1], preg_replace('/\s+/', '\s', $matches[1]), $matches[0]);
9494
},

0 commit comments

Comments
 (0)