Skip to content

Commit

Permalink
Merge pull request #3 from dmstr/feature/fix-regex
Browse files Browse the repository at this point in the history
fixed regex on PHP 7.3
  • Loading branch information
eluhr authored Apr 17, 2019
2 parents dcc4c9f + 74d2b16 commit 5a7767e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/scanners/ScannerDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a7767e

Please sign in to comment.