From 7dd8d25fdbe2535c5b8d73058283e388933dd7ea Mon Sep 17 00:00:00 2001 From: Matthias Mullie Date: Thu, 10 Nov 2016 10:09:49 +0100 Subject: [PATCH] Improve regex detection Fixes issue #142 --- src/JS.php | 7 ++++++- tests/js/JSTest.php | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/src/JS.php b/src/JS.php index fbde70c..c2be733 100644 --- a/src/JS.php +++ b/src/JS.php @@ -222,7 +222,12 @@ protected function extractRegex() return $placeholder; }; - $pattern = '\/.*?(?