Skip to content

Commit

Permalink
Merge pull request Expensify#33793 from bernhardoj/fix/31391-inconsis…
Browse files Browse the repository at this point in the history
…tent-form-error

Fix form error inconsistencies on detecting HTML tag
  • Loading branch information
jasperhuangg authored Jan 3, 2024
2 parents 5049f8c + 9e760a7 commit 6e234b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ const CONST = {
// It's copied here so that the same regex pattern can be used in form validations to be consistent with the server.
VALIDATE_FOR_HTML_TAG_REGEX: /<([^>\s]+)(?:[^>]*?)>/g,

VALIDATE_FOR_LEADINGSPACES_HTML_TAG_REGEX: /<([\s]+[\s\w~!@#$%^&*(){}[\];':"`|?.,/\\+\-=<]+.*[\s]*)>/g,
VALIDATE_FOR_LEADINGSPACES_HTML_TAG_REGEX: /<([\s]+.+[\s]*)>/g,

WHITELISTED_TAGS: [/<>/, /< >/, /<->/, /<-->/, /<br>/, /<br\/>/],

Expand Down

0 comments on commit 6e234b9

Please sign in to comment.