mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-29 04:42:36 +00:00
remove leading '*' character to deal with multi-line license names
This commit is contained in:
parent
02ccd6fa65
commit
53c5903fa0
@ -191,6 +191,9 @@ class JedcheckerRulesGpl extends JEDcheckerRule
|
||||
|
||||
$content = file_get_contents($file);
|
||||
|
||||
// Remove leading "*" characters from phpDoc-like comments
|
||||
$content = preg_replace('/^\s*\*/m', '', $content);
|
||||
|
||||
if (preg_match($this->regex_gpl_licenses, $content, $match, PREG_OFFSET_CAPTURE))
|
||||
{
|
||||
$line_no = substr_count($content, "\n", 0, $match[0][1]) + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user