diff --git a/.travis.yml b/.travis.yml index 2bd76a0..42ae403 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,8 @@ language: php php: - - 5.5 - - 5.6 - - 7 - - hhvm + - 7.2 + - 7.3 before_script: - composer self-update diff --git a/src/ParserDom.php b/src/ParserDom.php index f40b7ae..ac82e63 100644 --- a/src/ParserDom.php +++ b/src/ParserDom.php @@ -203,7 +203,7 @@ private function match($exp, $pattern, $value) { * @return array */ private function parse_selector($selector_string) { - $pattern = '/([\w-:\*]*)(?:\#([\w-]+)|\.([\w-]+))?(?:\[@?(!?[\w-:]+)(?:([!*^$]?=)["\']?(.*?)["\']?)?\])?([\/, ]+)/is'; + $pattern = '/([\w\-:\*]*)(?:\#([\w-]+)|\.([\w-]+))?(?:\[@?(!?[\w\-:]+)(?:([!*^$]?=)["\']?(.*?)["\']?)?\])?([\/, ]+)/is'; preg_match_all($pattern, trim($selector_string) . ' ', $matches, PREG_SET_ORDER); $selectors = []; $result = [];

AltStyle によって変換されたページ (->オリジナル) /