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:
vshcherb 2016-12-08 22:49:20 +01:00 committed by GitHub
commit 9780909a89

View file

@ -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);
}
}
}