More robust checks

This commit is contained in:
barsdeveloper
2023-02-12 11:06:49 +01:00
parent 500965bcfc
commit cc17e81340
2 changed files with 9 additions and 9 deletions

View File

@@ -323,7 +323,7 @@ export default class Utility {
}
/** @param {String} value */
static formatStringName(value) {
static formatStringName(value = "") {
return value
// Remove leading b (for boolean values) or newlines
.replace(/^\s*b/, "")