Skip to content

Commit

Permalink
Ensure tag appears first on docblock line
Browse files Browse the repository at this point in the history
Co-authored-by: Miguel Muscat <miguelmuscat93@gmail.com>
  • Loading branch information
XedinUnknown and mecha committed Nov 9, 2023
1 parent f42130c commit 2466cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TaggingServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected function indexTags(): void
*/
protected function getTagsFromDocBlock(string $docBlock): array
{
$regex = '#(@tag\s*(?P<tags>[^\s]+))#';
$regex = '#^\s*/?\**\s*(@tag\s*(?P<tags>[^\s]+))#m';
preg_match_all($regex, $docBlock, $matches);

return $matches['tags'];
Expand Down

0 comments on commit 2466cc1

Please sign in to comment.