From 7c302e4bfbef0fc442c9d7a34f39f4b4b7ab2117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 28 Mar 2016 22:39:37 +0300 Subject: [PATCH 1/2] Update RegexTest.php obviously grouping `()` was wanted here not char-range `[]` --- tests/RegexTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/RegexTest.php b/tests/RegexTest.php index 0c54890..2c619f8 100644 --- a/tests/RegexTest.php +++ b/tests/RegexTest.php @@ -30,7 +30,7 @@ public function testKeyword() "ref test-123 Issue" => 1, ]; - $pattern = '[resolve|fix|see|ref]'; + $pattern = '(resolve|fix|see|ref)'; foreach($array as $subject => $matchCount) { From 074c3f854204960aad8deaaaade1750a2ff95836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 28 Mar 2016 22:51:06 +0300 Subject: [PATCH 2/2] Update config.integration.example.json fix `[]` vs `()` usage; for single keyword no grouping neccessary at all --- config.integration.example.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.integration.example.json b/config.integration.example.json index c3d357e..3c36896 100644 --- a/config.integration.example.json +++ b/config.integration.example.json @@ -8,11 +8,11 @@ "keywords": [ [ "Resolved", - "[resolve|fix]" + "(resolve|fix)" ], [ "Closed", - "[close]" + "close" ] ] },