Module: check_mk
Branch: master
Commit: 4eb58aaaf7f4f046103811a69c4d452435c9cc4c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4eb58aaaf7f4f0…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 26 16:17:28 2014 +0100
Allow foo@localhost as valid email address
---
web/htdocs/valuespec.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index c47ad63..7d509f1 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -452,7 +452,7 @@ class RegExpUnicode(TextUnicode, RegExp):
class EmailAddress(TextAscii):
def __init__(self, **kwargs):
TextAscii.__init__(self, **kwargs)
- self._regex = re.compile('^[A-Z0-9._%+-]+(a)[A-Z0-9.-]+\.[A-Z]{2,4}$'4}$',
re.I)
+ self._regex =
re.compile('^[A-Z0-9._%+-]+(a)(localhost|[A-Z0-9.-]+\.[A-Z]{2,4})$'})$', re.I)
self._make_clickable = kwargs.get("make_clickable", False)
def value_to_text(self, value):