mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2025-01-15 18:36:47 +00:00
Merge PR #140 into develop
This commit is contained in:
commit
548bd6e195
@ -323,7 +323,7 @@ class JedcheckerRulesLanguage extends JEDcheckerRule
|
||||
// The code below detects incorrect format of numbered placeholders (e.g. "%1s" instead of "%1$s")
|
||||
|
||||
// Count numbered placeholders in the string (e.g. "%1s")
|
||||
$count = preg_match_all('/(?<=^|[^%])%(\d+)\w/', $value, $matches);
|
||||
$count = preg_match_all('/(?<=^|[^%])%(\d+)\w/', $value, $matches, PREG_SET_ORDER);
|
||||
|
||||
if ($count)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user