From 61d9704afd7a840f67d94cf08b0c3526e246b110 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Thu, 29 Apr 2021 16:52:43 +0200 Subject: [PATCH] slash escape --- scoper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scoper.php b/scoper.php index c31ce7e39ee..f995957c29a 100644 --- a/scoper.php +++ b/scoper.php @@ -77,8 +77,9 @@ return [ return $content; } + // @see https://regex101.com/r/gLefQk/1 return Strings::replace( - $content, '#\(\'rector/rector\'\)#', + $content, '#\(\'rector\/rector\'\)#', "('rector/rector-prefixed')" ); },