Skip to content

Commit

Permalink
Replace regexp with plain string operation
Browse files Browse the repository at this point in the history
  • Loading branch information
Zales0123 committed Jan 10, 2019
1 parent a43d08b commit 60b0284
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -98,7 +98,7 @@ private function locateResourceBasedOnTwigNamespace(string $resourcePath, ThemeI

private function getBundleOrPluginName(string $twigNamespace): string
{
if (preg_match('/Plugin$/', $twigNamespace)) {
if (substr($twigNamespace, -6) === 'Plugin') {
return $twigNamespace;
}

Expand Down

0 comments on commit 60b0284

Please sign in to comment.