summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Carver2018-05-10 14:00:48 (GMT)
committerMark Carver2018-05-10 14:00:48 (GMT)
commit97e3d9fd58dfb5fe4ac947b4e5a0618e2379579f (patch)
tree3ee5afd03f2d3bb3e7f6a66d78de1cb6b5cff9ba
parent7e0bdf301657c3561c25c973e89942bd87da35f9 (diff)
Issue #2969106 by saranya purushothaman, markcarver: Replace methods in Attributes.cleanClass pass the identifier as a 3rd parameterHEAD8.x-3.x
-rw-r--r--js/attributes.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/attributes.js b/js/attributes.js
index e0c0c44..ced3356 100644
--- a/js/attributes.js
+++ b/js/attributes.js
@@ -345,17 +345,17 @@
identifier = identifier.toLowerCase();
if (filter['__'] === void 0) {
- identifier = identifier.replace('__', '#DOUBLE_UNDERSCORE#', identifier);
+ identifier = identifier.replace('__', '#DOUBLE_UNDERSCORE#');
}
- identifier = identifier.replace(Object.keys(filter), Object.keys(filter).map(function(key) { return filter[key]; }), identifier);
+ identifier = identifier.replace(Object.keys(filter), Object.keys(filter).map(function(key) { return filter[key]; }));
if (filter['__'] === void 0) {
- identifier = identifier.replace('#DOUBLE_UNDERSCORE#', '__', identifier);
+ identifier = identifier.replace('#DOUBLE_UNDERSCORE#', '__');
}
identifier = identifier.replace(/[^\u002D\u0030-\u0039\u0041-\u005A\u005F\u0061-\u007A\u00A1-\uFFFF]/g, '');
- identifier = identifier.replace(['/^[0-9]/', '/^(-[0-9])|^(--)/'], ['_', '__'], identifier);
+ identifier = identifier.replace(['/^[0-9]/', '/^(-[0-9])|^(--)/'], ['_', '__']);
return identifier;
};