@poe-platform/safe-bash 0.1.775 → 0.1.776
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -85539,15 +85539,6 @@ ${prefix2} line ${offset + line}: \`${source.split("\n")[line - 1] ?? ""}'
|
|
|
85539
85539
|
let hasFileOperand = false;
|
|
85540
85540
|
const parseSecSpec = (v) => {
|
|
85541
85541
|
if (v === "a" || v === "t" || v === "n") return { style: v };
|
|
85542
|
-
if (v.startsWith("p") && v.length > 1) {
|
|
85543
|
-
const source = syncPosixRegexSource(v.slice(1));
|
|
85544
|
-
if (source === void 0) return void 0;
|
|
85545
|
-
try {
|
|
85546
|
-
return { style: "p", re: new RegExp(source) };
|
|
85547
|
-
} catch {
|
|
85548
|
-
return void 0;
|
|
85549
|
-
}
|
|
85550
|
-
}
|
|
85551
85542
|
return void 0;
|
|
85552
85543
|
};
|
|
85553
85544
|
for (let i = 0; i < opArgs.length; i++) {
|
|
@@ -85669,7 +85660,7 @@ ${prefix2} line ${offset + line}: \`${source.split("\n")[line - 1] ?? ""}'
|
|
|
85669
85660
|
}
|
|
85670
85661
|
} else {
|
|
85671
85662
|
blankCount = 0;
|
|
85672
|
-
numbered = curSpec.style === "t" && l.length > 0
|
|
85663
|
+
numbered = curSpec.style === "t" && l.length > 0;
|
|
85673
85664
|
}
|
|
85674
85665
|
if (!numbered) {
|
|
85675
85666
|
out.push(l.length === 0 && sep === " " ? " ".repeat(width + 1) : unnumberedPrefix + l);
|
|
@@ -31710,17 +31710,8 @@ export class Runtime {
|
|
|
31710
31710
|
const parseSecSpec = (v) => {
|
|
31711
31711
|
if (v === "a" || v === "t" || v === "n")
|
|
31712
31712
|
return { style: v };
|
|
31713
|
-
|
|
31714
|
-
|
|
31715
|
-
if (source === undefined)
|
|
31716
|
-
return undefined;
|
|
31717
|
-
try {
|
|
31718
|
-
return { style: "p", re: new RegExp(source) };
|
|
31719
|
-
}
|
|
31720
|
-
catch {
|
|
31721
|
-
return undefined;
|
|
31722
|
-
}
|
|
31723
|
-
}
|
|
31713
|
+
// Pattern numbering uses the command's bounded, byte-oriented BRE engine.
|
|
31714
|
+
// JavaScript RegExp cannot preserve that dialect or its execution limits.
|
|
31724
31715
|
return undefined;
|
|
31725
31716
|
};
|
|
31726
31717
|
for (let i = 0; i < opArgs.length; i++) {
|
|
@@ -31888,7 +31879,7 @@ export class Runtime {
|
|
|
31888
31879
|
}
|
|
31889
31880
|
else {
|
|
31890
31881
|
blankCount = 0;
|
|
31891
|
-
numbered =
|
|
31882
|
+
numbered = curSpec.style === "t" && l.length > 0;
|
|
31892
31883
|
}
|
|
31893
31884
|
if (!numbered) {
|
|
31894
31885
|
out.push(l.length === 0 && sep === "\t" ? " ".repeat(width + 1) : unnumberedPrefix + l);
|
|
Binary file
|