Add /setentryfield command

This commit is contained in:
Cohee
2023-12-01 21:51:49 +02:00
parent 69659e79e3
commit 07962e0e4e
2 changed files with 102 additions and 26 deletions

View File

@ -572,7 +572,7 @@ export function countOccurrences(string, character) {
* @returns {boolean} True if the string is true, false otherwise.
*/
export function isTrueBoolean(arg) {
return ['on', 'true', '1'].includes(arg);
return ['on', 'true', '1'].includes(arg.trim().toLowerCase());
}
/**
@ -581,7 +581,7 @@ export function isTrueBoolean(arg) {
* @returns {boolean} True if the string is false, false otherwise.
*/
export function isFalseBoolean(arg) {
return ['off', 'false', '0'].includes(arg);
return ['off', 'false', '0'].includes(arg.trim().toLowerCase());
}
/**