Aktueller Stand
This commit is contained in:
2
backend/node_modules/zeptomatch/dist/normalize/grammar.d.ts
generated
vendored
Normal file
2
backend/node_modules/zeptomatch/dist/normalize/grammar.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
declare const Grammar: import("grammex").ExplicitRule<string>;
|
||||
export default Grammar;
|
||||
12
backend/node_modules/zeptomatch/dist/normalize/grammar.js
generated
vendored
Normal file
12
backend/node_modules/zeptomatch/dist/normalize/grammar.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/* IMPORT */
|
||||
import { match, or, star } from 'grammex';
|
||||
import { identity } from '../utils.js';
|
||||
/* MAIN */
|
||||
const Escaped = match(/\\./, identity);
|
||||
const Passthrough = match(/./, identity);
|
||||
const StarStarStar = match(/\*\*\*+/, '*');
|
||||
const StarStarNoLeft = match(/([^/{[(!])\*\*/, (_, $1) => `${$1}*`);
|
||||
const StarStarNoRight = match(/(^|.)\*\*(?=[^*/)\]}])/, (_, $1) => `${$1}*`);
|
||||
const Grammar = star(or([Escaped, StarStarStar, StarStarNoLeft, StarStarNoRight, Passthrough]));
|
||||
/* EXPORT */
|
||||
export default Grammar;
|
||||
2
backend/node_modules/zeptomatch/dist/normalize/index.d.ts
generated
vendored
Normal file
2
backend/node_modules/zeptomatch/dist/normalize/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
declare const normalize: (glob: string) => string;
|
||||
export default normalize;
|
||||
9
backend/node_modules/zeptomatch/dist/normalize/index.js
generated
vendored
Normal file
9
backend/node_modules/zeptomatch/dist/normalize/index.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/* IMPORT */
|
||||
import { parse } from 'grammex';
|
||||
import Grammar from './grammar.js';
|
||||
/* MAIN */
|
||||
const normalize = (glob) => {
|
||||
return parse(glob, Grammar, { memoization: false }).join('');
|
||||
};
|
||||
/* EXPORT */
|
||||
export default normalize;
|
||||
Reference in New Issue
Block a user