Skip to content

Commit

Permalink
Relaxed the validation to allow multibyte strings
Browse files Browse the repository at this point in the history
  • Loading branch information
hnisiji committed Jun 15, 2021
1 parent 7be63ef commit e32a92d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-each/src/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const pluralize = (word: string, count: number) =>

const START_OF_LINE = '^';
const NEWLINE = '\\n';
const HEADING = '\\s*\\w+\\s*';
const HEADING = '\\s*[^\\s]+\\s*';
const PIPE = '\\|';
const REPEATABLE_HEADING = `(${PIPE}${HEADING})*`;
const HEADINGS_FORMAT = new RegExp(
Expand Down

0 comments on commit e32a92d

Please sign in to comment.