escapeKeyCharacters is now a common utility

pull/1/head
ansuz 5 years ago
parent c17a28cced
commit abaf4c7371

@ -130,6 +130,14 @@
return C; return C;
}; };
Util.escapeKeyCharacters = function (key) {
return key && key.replace && key.replace(/\//g, '-');
};
Util.unescapeKeyCharacters = function (key) {
return key.replace(/\-/g, '/');
};
Util.deduplicateString = function (array) { Util.deduplicateString = function (array) {
var a = array.slice(); var a = array.slice();
for(var i=0; i<a.length; i++) { for(var i=0; i<a.length; i++) {

Loading…
Cancel
Save