mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
eslint: Fix unicorn/better-regex.
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/better-regex.md Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
a37616e8c6
commit
0042cf51c1
@@ -68,7 +68,7 @@ function is_local_part(value, element) {
|
||||
// Adapted from Django's EmailValidator
|
||||
return (
|
||||
this.optional(element) ||
|
||||
/^[-!#$%&'*+/=?^_`{}|~0-9A-Z]+(\.[-!#$%&'*+/=?^_`{}|~0-9A-Z]+)*$/i.test(value)
|
||||
/^[\w!#$%&'*+/=?^`{|}~-]+(\.[\w!#$%&'*+/=?^`{|}~-]+)*$/i.test(value)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user