summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTooru Fujisawa <arai.unmht@gmail.com>2015-07-20 15:56:02 +0200
committerByron Jones <glob@mozilla.com>2015-07-20 15:56:02 +0200
commitd988cb64c5fe8eb37750d568c2da1b8bdec583da (patch)
tree7287162abdc79626dedcfe7ce98f474478a3da48
parent93b2e363851bbb51936465c68e43c4b591f1284d (diff)
downloadbugzilla-d988cb64c5fe8eb37750d568c2da1b8bdec583da.tar.gz
bugzilla-d988cb64c5fe8eb37750d568c2da1b8bdec583da.tar.xz
Bug 1185455 - Remove use of non-standard flag argument of String.prototype.replace in inline-history.js.
-rw-r--r--extensions/InlineHistory/web/inline-history.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/InlineHistory/web/inline-history.js b/extensions/InlineHistory/web/inline-history.js
index 0c8293519..6b223461e 100644
--- a/extensions/InlineHistory/web/inline-history.js
+++ b/extensions/InlineHistory/web/inline-history.js
@@ -265,7 +265,7 @@ var inline_history = {
var match = attachFlags[j].match(/^\s*(<span.+\/span>):([^\?\-\+]+[\?\-\+])([\s\S]*)/);
if (!match) continue;
var setterSpan = match[1];
- var flag = this.trim(match[2].replace('\u2011', '-', 'g'));
+ var flag = this.trim(match[2].replace(/\u2011/g, '-'));
var requestee = this.trim(match[3]);
var requesteeLogin = '';
@@ -330,7 +330,7 @@ var inline_history = {
var flagLabel = cells[1].getElementsByTagName('label');
if (!flagLabel.length) continue;
flagLabel = flagLabel[0];
- var flagName = this.trim(flagLabel.innerHTML).replace('\u2011', '-', 'g');
+ var flagName = this.trim(flagLabel.innerHTML).replace(/\u2011/g, '-');
for (var j = 0, jl = ih_activity_flags.length; j < jl; j++) {
flagItem = ih_activity_flags[j];