diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-03-18 13:57:20 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-03-18 14:03:14 +0100 |
commit | cd0c3c0cf6fd8a730d54b32facd992d0587ac67b (patch) | |
tree | 8eec71a5d075dbc6494cb783464294a125315d91 /data/lib | |
parent | 7b5fd0d6c34d41f26cab3e009f6e55db8d2e0a05 (diff) | |
download | bugzilla-triage-cd0c3c0cf6fd8a730d54b32facd992d0587ac67b.tar.gz |
Don't use RE for distinguishing reporters.
Closes #69
Diffstat (limited to 'data/lib')
-rw-r--r-- | data/lib/bzpage.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js index c256228..893a5ea 100644 --- a/data/lib/bzpage.js +++ b/data/lib/bzpage.js @@ -448,11 +448,11 @@ function commentsWalker (fce) { * */ function checkComments () { - var reporterRE = new RegExp(getReporter()); + var reporter = getReporter(); commentsWalker(function(x) { var email = parseMailto(x.getElementsByClassName("vcard")[0] .getElementsByTagName("a")[0]); - if (reporterRE.test(email)) { + if (email.indexOf(reporter) != -1) { x.style.backgroundColor = ReporterColor.toString(); } }); |