33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-16 10:05:14 +00:00

simplify regex

This commit is contained in:
Denis Ryabov 2021-03-24 15:22:09 +03:00
parent ab96c035ad
commit 0d2310f75d

View File

@ -231,7 +231,7 @@ class JedcheckerRulesXMLinfo extends JEDcheckerRule
$this->report->addInfo($file, implode('<br />', $info));
// NM3 - Listing name contains “module” or “plugin”
if (preg_match('/(?:module|plugin)/i', $extension_name))
if (preg_match('/module|plugin/i', $extension_name))
{
$this->report->addError($file, JText::sprintf('COM_JEDCHECKER_INFO_XML_NAME_MODULE_PLUGIN', $extension_name));
}