mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Merge pull request #3655 from chevin99/master
Multiple slashes in visualization name re-directs to default app
This commit is contained in:
commit
2ff889cd9e
2 changed files with 6 additions and 2 deletions
|
@ -10,7 +10,7 @@ define(function (require) {
|
|||
'=' : '-equal-'
|
||||
};
|
||||
_.each(trans, function (val, key) {
|
||||
var regex = new RegExp(key);
|
||||
var regex = new RegExp(key, 'g');
|
||||
id = id.replace(regex, val);
|
||||
});
|
||||
id = id.replace(/[\s]+/g, '-');
|
||||
|
|
|
@ -16,7 +16,11 @@ define(function (require) {
|
|||
['test / ^test', 'test-slash-^test'],
|
||||
['test ? test', 'test-questionmark-test'],
|
||||
['test = test', 'test-equal-test'],
|
||||
['test & test', 'test-ampersand-test']
|
||||
['test & test', 'test-ampersand-test'],
|
||||
['test/test/test', 'test-slash-test-slash-test'],
|
||||
['test?test?test', 'test-questionmark-test-questionmark-test'],
|
||||
['test&test&test', 'test-ampersand-test-ampersand-test'],
|
||||
['test=test=test', 'test-equal-test-equal-test']
|
||||
];
|
||||
|
||||
_.each(fixtures, function (fixture) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue