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 Jul 6, 2021
1 parent 7a64ede commit 32e246b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-each/src/validation.ts
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 32e246b

Please sign in to comment.