Skip to content

Commit 7486765

Browse files
authored
Merge pull request #6 from thesoftwarefanatics/fix-travis-build
Fix travis build
2 parents 3502f0b + 8bda319 commit 7486765

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
language: php
2+
dist: trusty
3+
sudo: false
24

35
php:
46
- 7.1

src/PHPHtmlParser/Selector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Selector
2020
*
2121
* @var string
2222
*/
23-
protected $pattern = "/([\w-:\*>]*)(?:\#([\w-]+)|\.([\w-]+))?(?:\[@?(!?[\w-:]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";
23+
protected $pattern = "/([\w\-:\*>]*)(?:\#([\w\-]+)|\.([\w\-]+))?(?:\[@?(!?[\w\-:]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";
2424

2525
protected $selectors = [];
2626

0 commit comments

Comments
 (0)