lint: regexp spaces

This commit is contained in:
jean-emmanuel 2019-04-05 12:36:50 +02:00
parent 6ef1a2b97f
commit 2ca5128df5

View file

@ -28,7 +28,7 @@ var options = require('./options'),
// litle hack to align long-only-options correctly
var h = argv.getUsageInstance().help
argv.getUsageInstance().help = ()=>{
return h().replace(/^ --([^\s]*) (\s*)/gm, ' --$1$2')
return h().replace(/^\s{2}--([^\s]*)\s{4}(\s*)/gm, ' --$1$2')
}
argv = argv.argv