Check for null string

This commit is contained in:
Vortrex
2023-03-04 23:43:33 -06:00
parent ef4c64f722
commit 7f6945f402

View File

@@ -2316,6 +2316,10 @@ function removeHexColoursFromString(str) {
// ===========================================================================
function removeSlashesFromString(str) {
if (str == null) {
return false;
}
if (str == "") {
let matchRegex = /\//gi;
str.replace(matchRegex, ``);