diff --git a/administrator/components/com_jedchecker/libraries/rules/xmlinfo.php b/administrator/components/com_jedchecker/libraries/rules/xmlinfo.php index 34282ad..285f565 100644 --- a/administrator/components/com_jedchecker/libraries/rules/xmlinfo.php +++ b/administrator/components/com_jedchecker/libraries/rules/xmlinfo.php @@ -219,8 +219,9 @@ class JedcheckerRulesXMLinfo extends JEDcheckerRule if ($type === 'plugin') { - $group = (string) $xml['group']; - if (strpos($extension_name, ucfirst($group) . ' - ') !== 0) + $parts = explode(' - ', $extension_name, 2); + $extension_name_group = isset($parts[1]) ? strtolower(preg_replace('/\s/', '', $parts[0])) : false; + if ($extension_name_group !== (string) $xml['group']) { $this->report->addWarning($file, JText::_('COM_JEDCHECKER_INFO_XML_NAME_PLUGIN_FORMAT')); }