From bba905c46b212b151de2a79a5607cb225a72180a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=8A=E6=9D=B0jerry?= Date: 2019年1月18日 21:15:13 +0800 Subject: [PATCH 1/4] Update .travis.yml --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2bd76a0..944a70a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,9 @@ language: php php: - 5.5 - 5.6 - - 7 + - 7.1 + - 7.2 + - 7.3 - hhvm before_script: From ae5d325bbcf653793f65c176e1a0d2743663dcfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=8A=E6=9D=B0jerry?= Date: 2019年1月18日 21:20:01 +0800 Subject: [PATCH 2/4] Update .travis.yml --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 944a70a..1bd9493 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,6 @@ php: - 7.1 - 7.2 - 7.3 - - hhvm before_script: - composer self-update From e907c223c1410fd3f4f1163f086c1b63dfc3beea Mon Sep 17 00:00:00 2001 From: XinRoom <32238570+xinroom@users.noreply.github.com> Date: 2019年4月16日 16:43:04 +0800 Subject: [PATCH 3/4] fix: php73 "Compilation failed" "Compilation failed: invalid range in character class at offset 3" --- src/ParserDom.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = []; From 9e5fac05b9354eee16bfc84058c73c5e2b1f84a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=8A=E6=9D=B0jerry?= Date: 2019年8月17日 16:35:45 +0800 Subject: [PATCH 4/4] Update .travis.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 只对7.2以上版本支持 --- .travis.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1bd9493..42ae403 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,6 @@ language: php php: - - 5.5 - - 5.6 - - 7.1 - 7.2 - 7.3

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