Merge cfecc59225 into 64c927c761
This commit is contained in:
commit
5404819b57
1 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue