translator.unescape

This commit is contained in:
psychobunny
2015-02-25 16:59:38 -05:00
parent 33e4a2f1ec
commit be06162f0d

View File

@@ -35,6 +35,10 @@
return text.replace(/\[\[([\S]*?)\]\]/g, '\\[\\[$1\\]\\]');
};
translator.unescape = function(text) {
return text.replace(/\\\[\\\[([\S]*?)\\\]\\\]/g, '[[$1]]');
};
translator.getLanguage = function() {
return config.defaultLang;
};