mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-04-11 04:41:35 +02:00
Allow IPs to have quotes around them
This commit is contained in:
@ -532,7 +532,7 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [
|
|||||||
}
|
}
|
||||||
|
|
||||||
const sanitizedAns: string = removeBracketsFromArrayString(ans).replace(/\s/g, "");
|
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) {
|
if (ansArr.length !== ret.length) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user