Merge pull request #3296 from njohnston/custom_renderer_fix
Fix loading of custom rendering files containing dashes and underscores (regression)
This commit is contained in:
commit
9780909a89
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ public class RendererRegistry {
|
|||
if (f != null && f.getName().endsWith(IndexConstants.RENDERER_INDEX_EXT)) {
|
||||
if(!internalRenderers.containsValue(f.getName())) {
|
||||
String name = f.getName().substring(0, f.getName().length() - IndexConstants.RENDERER_INDEX_EXT.length());
|
||||
externalRenderers.put(name, f);
|
||||
externalRenderers.put(name.replace('_', ' ').replace('-', ' '), f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue