[Libreoffice-commits] dev-tools.git: scripts/gerrit-filter-domain
Jan Holesovsky
kendy at collabora.com
Mon Jul 21 02:15:11 PDT 2014
scripts/gerrit-filter-domain | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7abaa4ca7573efc1a4f8e4b4732f2d75bae854ea
Author: Jan Holesovsky <kendy at collabora.com>
Date: Mon Jul 21 11:11:34 2014 +0200
gerrit-filter-domain: Prefer re.search over re.match.
This actually does what the Usage: advertises, as the match() wants to match
the entire string, while search() only checks that anywhere in the string, the
RE appears.
diff --git a/scripts/gerrit-filter-domain b/scripts/gerrit-filter-domain
index 9586bc7..0cb9677 100755
--- a/scripts/gerrit-filter-domain
+++ b/scripts/gerrit-filter-domain
@@ -24,7 +24,7 @@ def dumpChange(change):
def filterDomain(changes, domain):
ret = []
for i in changes:
- if re.match(domain, i['owner']['email']):
+ if re.search(domain, i['owner']['email']):
ret.append(i)
return ret
More information about the Libreoffice-commits
mailing list