Check for null string
This commit is contained in:
@@ -2316,6 +2316,10 @@ function removeHexColoursFromString(str) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function removeSlashesFromString(str) {
|
function removeSlashesFromString(str) {
|
||||||
|
if (str == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (str == "") {
|
if (str == "") {
|
||||||
let matchRegex = /\//gi;
|
let matchRegex = /\//gi;
|
||||||
str.replace(matchRegex, ``);
|
str.replace(matchRegex, ``);
|
||||||
|
|||||||
Reference in New Issue
Block a user