aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--data/lib/bzpage.js4
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();
}
});