Skip to content

Commit

Permalink
fix(core/presentation): Do not use a regexp with /test/s because it's…
Browse files Browse the repository at this point in the history
… not supported in firefox (#7518)
  • Loading branch information
christopherthielen committed Oct 11, 2019
1 parent 74e829d commit c1a28fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const warningMessage = buildCategoryMessage('warning');
// A regular expression which captures the category label and validation message from a validation message
// I.e., for the string: "Error: There was a fatal error"
// this captures "Error" and "There was a fatal error"
const validationMessageRegexp = new RegExp(`^(${labels.join('|')}): (.*)$`, 'sm');
const validationMessageRegexp = new RegExp(`^(${labels.join('|')}): ((?:[\r\n]|.)*)$`, 'm');

// Takes an errorMessage with embedded category and extracts the category and message
// Example: "Error: there was an error" => ['error', 'there was an error']
Expand Down

0 comments on commit c1a28fe

Please sign in to comment.