diff --git a/graph.js b/graph.js index 99e663e..c119a8a 100644 --- a/graph.js +++ b/graph.js @@ -85,9 +85,9 @@ function splitText(text) { function getTitle(obj) { if(obj.parent) { - return "sub of " + obj.parent.split('#', 1)[0].replaceAll('_', ' '); + return "sub of " + obj.parent.split('#', 1)[0].replace(/_/g, " ") } - return obj['@id'].split('#', 1)[0].replaceAll('_', ' '); + return obj['@id'].split('#', 1)[0].replace(/_/g, " ") } function getClasses(obj) { if (!obj._INST)