mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2025-04-06 12:51:50 +00:00
a "greedy" match (by @Llewellynvdm)
This commit is contained in:
parent
0869a0cecb
commit
ab96c035ad
@ -231,7 +231,7 @@ class JedcheckerRulesXMLinfo extends JEDcheckerRule
|
|||||||
$this->report->addInfo($file, implode('<br />', $info));
|
$this->report->addInfo($file, implode('<br />', $info));
|
||||||
|
|
||||||
// NM3 - Listing name contains “module” or “plugin”
|
// NM3 - Listing name contains “module” or “plugin”
|
||||||
if (preg_match('/\b(?:module|plugin)\b/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));
|
$this->report->addError($file, JText::sprintf('COM_JEDCHECKER_INFO_XML_NAME_MODULE_PLUGIN', $extension_name));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user