-
Bug
-
Resolution: Fixed
-
Minor
-
-
2.362
Symbol framework doesn't work properly if plugin's artifactId contains word "plugin-".
Pattern of symbol framework:
<l:icon src="symbol-symbolName plugin-yourArtifactId" />
Under the hood it uses this method Functions#extractPluginNameFromIconSrc which finds word starting with "plugin-" and then replaces all occurrences to "".
For instance, if your plugin's artifactId will be plugin-test, the pattern will look like:
<l:icon src="symbol-symbolName plugin-plugin-test" />
and then Functions#extractPluginNameFromIconSrc will replace both "plugin-" occurrences with "" and only test will be left.
So instead of searching image from plugin-test, it will be searching image from test which doesn't exist.
Solution would be to use replaceFirst instead of replace in Functions#extractPluginNameFromIconSrc