mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[grunt/run] be more lenient with flag prefix parsing
This commit is contained in:
parent
53b35c4ad4
commit
508d94540e
1 changed files with 2 additions and 3 deletions
|
@ -18,9 +18,8 @@ module.exports = function (grunt) {
|
|||
];
|
||||
|
||||
const kbnServerFlags = grunt.option.flags().reduce(function (flags, flag) {
|
||||
const matches = flag.match(/^--kbnServer(\.\w+)+=/);
|
||||
if (matches) {
|
||||
flags.push(flag.replace(/^--kbnServer\./, '--'));
|
||||
if (flag.startsWith('--kbnServer.')) {
|
||||
flags.push(`--${flag.slice(12)}`);
|
||||
}
|
||||
|
||||
return flags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue