From aba6de151466bc55d7123ada9f30536db229f53c Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Tue, 27 Sep 2022 19:41:00 -0400 Subject: [PATCH] Allow IPs to have quotes around them --- src/data/codingcontracttypes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/codingcontracttypes.ts b/src/data/codingcontracttypes.ts index e8dfbea88..0a2cbb09d 100644 --- a/src/data/codingcontracttypes.ts +++ b/src/data/codingcontracttypes.ts @@ -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; }