[FIX] runbot_cla: correct odoo email regex

This commit is contained in:
Christophe Simonis 2015-02-17 17:22:28 +01:00
parent a31109ffe7
commit 96ee611021

View File

@ -21,7 +21,7 @@ class runbot_build(openerp.models.Model):
state = "failure"
if mo:
email = mo.group(0).lower()
if re.match('.*(odoo|openerp|tinyerp).com$',email):
if re.match('.*@(odoo|openerp|tinyerp)\.com$', email):
state = "success"
if cla.find(email) != -1:
state = "success"
@ -36,4 +36,3 @@ class runbot_build(openerp.models.Model):
build.repo_id.github('/repos/:owner/:repo/statuses/%s' % build.name, status, ignore_errors=True)
# 0 is myself, -1 is everybody else, -2 nothing
return -2