Skip to content

Commit

Permalink
updating the regex to be a bit more flexible with spaces around the pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
shaselton-usds committed Jun 6, 2024
1 parent b53dd8e commit e7f654a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/versions/2.0/csv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e7f654a

Please sign in to comment.