format: prettify entire project
This commit is contained in:
13
node_modules/braces/lib/compile.js
generated
vendored
13
node_modules/braces/lib/compile.js
generated
vendored
@ -29,7 +29,11 @@ const compile = (ast, options = {}) => {
|
||||
}
|
||||
|
||||
if (node.type === 'comma') {
|
||||
return node.prev.type === 'comma' ? '' : invalid ? node.value : '|';
|
||||
return (
|
||||
node.prev.type === 'comma' ? ''
|
||||
: invalid ? node.value
|
||||
: '|'
|
||||
);
|
||||
}
|
||||
|
||||
if (node.value) {
|
||||
@ -38,7 +42,12 @@ const compile = (ast, options = {}) => {
|
||||
|
||||
if (node.nodes && node.ranges > 0) {
|
||||
const args = utils.reduce(node.nodes);
|
||||
const range = fill(...args, { ...options, wrap: false, toRegex: true, strictZeros: true });
|
||||
const range = fill(...args, {
|
||||
...options,
|
||||
wrap: false,
|
||||
toRegex: true,
|
||||
strictZeros: true,
|
||||
});
|
||||
|
||||
if (range.length !== 0) {
|
||||
return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
||||
|
Reference in New Issue
Block a user