flags fix

This commit is contained in:
2024-03-22 15:50:33 -05:00
parent aea6a64b69
commit 5c19a16f8b

View File

@@ -164,7 +164,7 @@ exports.compilePositionLabel = (label, flags) => {
function toFlagsSet(flags) {
let flags_set
if (typeof(flags) == 'string'){
const flags_set = new Set(flags.split(',').map(s=>s.trim()))
flags_set = new Set(flags.split(',').map(s=>s.trim()))
} else if (flags.constructor === Array){
flags_set = new Set(flags)
} else if (flags.constructor === Set){