This commit is contained in:
Vortrex
2021-06-05 03:14:10 -05:00
parent bc5edc9926
commit 75c264eace
100 changed files with 214 additions and 308 deletions

View File

@@ -1,7 +1,6 @@
// ===========================================================================
// Asshat-Gaming Roleplay
// https://github.com/VortrexFTW/gtac_asshat_rp
// Copyright (c) 2021 Asshat-Gaming (https://asshatgaming.com)
// Vortrex's Roleplay Resource
// https://github.com/VortrexFTW/gtac_roleplay
// ===========================================================================
// FILE: utilities.js
// DESC: Provides util functions and arrays with data
@@ -1569,9 +1568,10 @@ function generateRandomPhoneNumber() {
// ===========================================================================
function doesNameContainInvalidCharacters(name) {
let disallowedCharacters = getGlobalConfig().subAccountNameAllowedCharacters;
name = toLowerCase(name);
for(let i = 0; i < name.length; i++) {
let strChar = name.charAt(i).toLowerCase();
if(getGlobalConfig().subAccountNameAllowedCharacters.toLowerCase().indexOf(strChar) == -1) {
if(disallowedCharacters.toLowerCase().indexOf(name.charAt(i)) == -1) {
return true;
}
}