mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 07:02:26 +01:00
Allow IPs to have quotes around them
This commit is contained in:
parent
444c74ccd9
commit
aba6de1514
@ -532,7 +532,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
|
||||
}
|
||||
|
||||
const sanitizedAns: string = removeBracketsFromArrayString(ans).replace(/\s/g, "");
|
||||
const ansArr: string[] = sanitizedAns.split(",");
|
||||
const ansArr: string[] = sanitizedAns.split(",").map((ip) => ip.replace(/^"|"$/g, ""));
|
||||
if (ansArr.length !== ret.length) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user