From e7f654abbd3c8360d52a3a30246ac4b60f80eaed Mon Sep 17 00:00:00 2001 From: shaselton-usds Date: Thu, 6 Jun 2024 16:32:01 -0700 Subject: [PATCH] updating the regex to be a bit more flexible with spaces around the pipe --- src/versions/2.0/csv.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/versions/2.0/csv.ts b/src/versions/2.0/csv.ts index 7076930..271d92d 100644 --- a/src/versions/2.0/csv.ts +++ b/src/versions/2.0/csv.ts @@ -214,7 +214,7 @@ export function validateHeaderRow( const rowIndex = 1 headers.forEach((header, index) => { // we aren't checking the license_number value. - if (/^license_number\s\|\s.{2}$/.test(header)) { + if (/^license_number\s*\|\s*.{2}$/.test(header)) { return }