Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2019-01-22 07:23:56 +0300
committerGitHub <noreply@github.com>2019-01-22 07:23:56 +0300
commitf845d5290931829dab8d038ae10991692a387c48 (patch)
treef27dd2e26f915b35dfe98ea018bcfd373048e9bb /plugins/SegmentEditor/javascripts
parent2d6c8e597d110e2664a866cf667c2ea6e2cc2909 (diff)
Add UI test for complex segment + fix couple bugs to get test to pass. (#13909)
* Add UI test for complex segment + fix couple bugs to get test to pass. * fix test
Diffstat (limited to 'plugins/SegmentEditor/javascripts')
-rw-r--r--plugins/SegmentEditor/javascripts/Segmentation.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SegmentEditor/javascripts/Segmentation.js b/plugins/SegmentEditor/javascripts/Segmentation.js
index df5cf288d1..bfcdbda067 100644
--- a/plugins/SegmentEditor/javascripts/Segmentation.js
+++ b/plugins/SegmentEditor/javascripts/Segmentation.js
@@ -854,8 +854,8 @@ $(document).ready(function() {
this.changeSegmentList = function () {};
var cleanupSegmentDefinition = function(definition) {
- definition = definition.replace("'", "%27");
- definition = definition.replace("&", "%26");
+ definition = definition.replace(/'/g, "%27");
+ definition = definition.replace(/&/g, "%26");
return definition;
};