replace all not just first

This commit is contained in:
j 2021-03-19 10:19:29 +01:00
parent 7ea1f38a0f
commit 4689af2050

View file

@ -2659,8 +2659,9 @@ pandora.openURL = function(url) {
};
pandora.safeDocumentName = function(name) {
['?', '#', '%'].forEach(function(c) {
name = name.replace(c, '_');
['\\?', '#', '%', '/'].forEach(function(c) {
var r = new RegExp(c, 'g')
name = name.replace(r, '_');
})
return name;
};