33
2
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:
Llewellyn van der Merwe 2021-09-01 10:18:21 +02:00
commit 548bd6e195
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C

View File

@ -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)
{