This commit is contained in:
KasumiDev 2024-08-16 15:02:46 -04:00 committed by GitHub
commit 5404819b57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,6 +57,9 @@ const parseSelect = (selectString: string, but = false) : {
} else if (part.match(/[A-Z]{3}\.[0-9]*/)) {
select.push(part);
return;
} else if (part.match(/E?\d+\s\(NC\)/)) {
select.push(part);
return;
}
const match = part.match(/[A-Za-z]+/);
if (match && match.length > 0) {
@ -87,6 +90,9 @@ const parseSelect = (selectString: string, but = false) : {
if (st.match(/[0-9A-Z]{9}/)) {
const included = select.includes(st);
return but ? !included : included;
} else if (st.match(/E?\d+\s\(NC\)/)) {
const included = select.includes(st);
return but ? !included : included;
} else if (match && match.length > 0) {
if (match.index && match.index !== 0) {
return false;
@ -107,4 +113,4 @@ const parseSelect = (selectString: string, but = false) : {
};
};
export default parseSelect;
export default parseSelect;