mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-29 13:31:00 +00:00
Update functions.js
This commit is contained in:
committed by
GitHub
parent
f3aabc3db1
commit
5086fb56e6
@@ -21,6 +21,7 @@ function encodeChannelName(str) {
|
|||||||
str = filter.clean(str);
|
str = filter.clean(str);
|
||||||
var toReturn = _fn(str);
|
var toReturn = _fn(str);
|
||||||
toReturn = toReturn.replace(/_/g, "%5F");
|
toReturn = toReturn.replace(/_/g, "%5F");
|
||||||
|
toReturn = toReturn.replace(/'/g, "%27");
|
||||||
toReturn = toReturn.replace(/%26amp%3B/g, "%26").replace(/%26amp%3b/g, "%26");
|
toReturn = toReturn.replace(/%26amp%3B/g, "%26").replace(/%26amp%3b/g, "%26");
|
||||||
toReturn = toReturn.toLowerCase();
|
toReturn = toReturn.toLowerCase();
|
||||||
return toReturn;
|
return toReturn;
|
||||||
@@ -29,7 +30,7 @@ function encodeChannelName(str) {
|
|||||||
function decodeChannelName(str) {
|
function decodeChannelName(str) {
|
||||||
var _fn = decodeURIComponent;
|
var _fn = decodeURIComponent;
|
||||||
str = str.toUpperCase();
|
str = str.toUpperCase();
|
||||||
var toReturn = _fn(str.replace(/%5F/g, "_"));
|
var toReturn = _fn(str.replace(/%5F/g, "_").replace(/%27/g, "'"));
|
||||||
toReturn = filter.clean(toReturn);
|
toReturn = filter.clean(toReturn);
|
||||||
return toReturn.toLowerCase();
|
return toReturn.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user