diff --git a/modules/module.parseSelect.ts b/modules/module.parseSelect.ts index 6376097..1d28571 100644 --- a/modules/module.parseSelect.ts +++ b/modules/module.parseSelect.ts @@ -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; \ No newline at end of file +export default parseSelect;