Initial React project

This commit is contained in:
Johan
2026-03-17 00:42:10 +01:00
parent c9031f2275
commit 8bca9680e4
1317 changed files with 48700 additions and 23334 deletions

View File

@@ -999,7 +999,7 @@ function assertArgs(from, to) {
/**
* Return the relative path from `from` to `to` based on current working directory.
*
* An example in windws, for instance:
* An example in windows, for instance:
* from = 'C:\\orandea\\test\\aaa'
* to = 'C:\\orandea\\impl\\bbb'
* The output of the function should be: '..\\..\\impl\\bbb'
@@ -1289,7 +1289,7 @@ caseInsensitive = false } = {}) {
let endsWithSep = false;
let i = j;
// Terminates with `i` at the non-inclusive end of the current segment.
for(; i < glob.length && !c.seps.includes(glob[i]); i++){
for(; i < glob.length && !(c.seps.includes(glob[i]) && groupStack.length === 0); i++){
if (inEscape) {
inEscape = false;
const escapeChars = inRange ? RANGE_ESCAPE_CHARS : REG_EXP_ESCAPE_CHARS;
@@ -1563,7 +1563,7 @@ const constants = {
"(": ")",
"[": "]"
};
const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\))/;
const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\)|@\([^)]+\))/;
if (str === "") {
return false;
}