We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3502f0b + 8bda319 commit 7486765Copy full SHA for 7486765
.travis.yml
@@ -1,4 +1,6 @@
1
language: php
2
+dist: trusty
3
+sudo: false
4
5
php:
6
- 7.1
src/PHPHtmlParser/Selector.php
@@ -20,7 +20,7 @@ class Selector
20
*
21
* @var string
22
*/
23
- protected $pattern = "/([\w-:\*>]*)(?:\#([\w-]+)|\.([\w-]+))?(?:\[@?(!?[\w-:]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";
+ protected $pattern = "/([\w\-:\*>]*)(?:\#([\w\-]+)|\.([\w\-]+))?(?:\[@?(!?[\w\-:]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";
24
25
protected $selectors = [];
26
0 commit comments