mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-29 05:21:01 +00:00
Trying a fix for encoding issues occuring from time to time
This commit is contained in:
@@ -4,6 +4,13 @@ var Helper = {
|
||||
decodeChannelName: function(str) {
|
||||
var _fn = decodeURIComponent;
|
||||
str = str.toUpperCase();
|
||||
/*if(str.indexOf("%25") >= 0) {
|
||||
var _percentSign = str.indexOf("%25") + 1;
|
||||
var _before = str.substring(0, _percentSign);
|
||||
var _after = str.substring(_percentSign);
|
||||
str = _before + "25" + _after;
|
||||
console.log(str);
|
||||
}*/
|
||||
var toReturn = _fn(str.replace(/%5F/g, "_"));
|
||||
toReturn = toReturn.toLowerCase().replace(/&/g, "&");
|
||||
return toReturn.toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user