diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-01-22 07:23:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-22 07:23:56 +0300 |
commit | f845d5290931829dab8d038ae10991692a387c48 (patch) | |
tree | f27dd2e26f915b35dfe98ea018bcfd373048e9bb /plugins/SegmentEditor/javascripts | |
parent | 2d6c8e597d110e2664a866cf667c2ea6e2cc2909 (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.js | 4 |
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; }; |