From 74d2b1693e9fe807048520635abfa87e0be6ec1a Mon Sep 17 00:00:00 2001 From: Tobias Munk Date: Tue, 16 Apr 2019 19:51:56 +0200 Subject: [PATCH] fixed regex on PHP 7.3 --- src/services/scanners/ScannerDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/scanners/ScannerDatabase.php b/src/services/scanners/ScannerDatabase.php index 6cfc017..54dab61 100644 --- a/src/services/scanners/ScannerDatabase.php +++ b/src/services/scanners/ScannerDatabase.php @@ -56,7 +56,7 @@ class ScannerDatabase extends BaseScannerDatabase /** * @var string Pattern for finding translate function */ - public $pattern = '/[ \W]t\s*\(\s*(["\'])([\w\s-_]*?[^\\\\])\1\s*,\s*?(["\'])(.*?[^\\\\])\3/im'; + public $pattern = '/[ \W]t\s*\(\s*(["\'])([\w\s\-_]*?[^\\\\])\1\s*,\s*?(["\'])(.*?[^\\\\])\3/im'; /** * @var integer Regex group for category in pattern