@yeison.restrepo.r/code-conductor 1.31.1 → 1.31.2
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.
package/package.json
CHANGED
|
@@ -195,11 +195,14 @@ function g3Scan(mode, input) {
|
|
|
195
195
|
|
|
196
196
|
// Each check returns true when it FIRES (the authority's shell functions returned 1).
|
|
197
197
|
//
|
|
198
|
-
//
|
|
199
|
-
//
|
|
200
|
-
//
|
|
201
|
-
//
|
|
202
|
-
//
|
|
198
|
+
// The walk's contract, corrected in both subjects under [BUG-041]: `after` is the
|
|
199
|
+
// text that FOLLOWS the match, sliced from `m.index + m[0].length`. The original form
|
|
200
|
+
// sliced by the match LENGTH from position 0, so for a match at index N it shaved N
|
|
201
|
+
// bytes of real command off the front and re-scanned, walking leftward until the cut
|
|
202
|
+
// landed inside a quoted region; g3Scan's fail-closed clause then reported a glob that
|
|
203
|
+
// was never in the command. It cost 24 of the 47 denials measured in one session. The
|
|
204
|
+
// authority carries the same correction, recorded as its third sanctioned exception,
|
|
205
|
+
// so the corpus still arbitrates both subjects rather than one.
|
|
203
206
|
|
|
204
207
|
function g3P1FindDepth(s) {
|
|
205
208
|
if (!reFind.test(s)) return false;
|
|
@@ -241,7 +244,7 @@ function g3GlobWalk(s, re) {
|
|
|
241
244
|
for (;;) {
|
|
242
245
|
const m = re.exec(rest);
|
|
243
246
|
if (!m) return false;
|
|
244
|
-
const after = rest.slice(m[0].length);
|
|
247
|
+
const after = rest.slice(m.index + m[0].length);
|
|
245
248
|
if (g3Scan('glob', after).glob) return true;
|
|
246
249
|
rest = after;
|
|
247
250
|
if (rest === '') return false;
|