From 134b25a63d83a80ae128aedc9a99987e064b4382 Mon Sep 17 00:00:00 2001 From: Matthias Mullie Date: Fri, 15 Sep 2017 15:02:08 +0200 Subject: [PATCH] Don't confuse comments with regex Fixed #199 --- src/JS.php | 2 +- tests/js/JSTest.php | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/JS.php b/src/JS.php index 042f542..80302af 100644 --- a/src/JS.php +++ b/src/JS.php @@ -242,7 +242,7 @@ protected function extractRegex() (isset($match['after']) ? $match['after'] : ''); }; - $pattern = '(?P\/.+?((?\/(?!\/).+?((?