brsh 3.1.0 → 3.1.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [3.1.1](https://github.com/eliotstocker/Brsh-JS/compare/v3.1.0...v3.1.1) (2026-11-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **shell:** handle backslash quote escaping in _splitCommand ([692cc9c](https://github.com/eliotstocker/Brsh-JS/commit/692cc9c2852b5ed2b2ae94e9e7a1b3cacce9ada9))
7
+
1
8
  # [3.1.0](https://github.com/eliotstocker/Brsh-JS/compare/v3.0.0...v3.1.0) (2026-11-08)
2
9
 
3
10
 
package/dist/shell.es.js CHANGED
@@ -8294,6 +8294,18 @@ var j, M, N, P, F, I, L, R, z, B, V = e((() => {
8294
8294
  a.push(l), l === "(" ? i++ : l === ")" && i--;
8295
8295
  continue;
8296
8296
  }
8297
+ if (r && l === "\\" && c + 1 < e.length) {
8298
+ let t = e[c + 1];
8299
+ if (t === "\"" || t === "\\" || t === "$") {
8300
+ a.push(t), c++;
8301
+ continue;
8302
+ }
8303
+ }
8304
+ if (!n && !r && l === "\\" && c + 1 < e.length) {
8305
+ let t = e[++c];
8306
+ a.push(t), (t === "\"" || t === "'") && (o = !0);
8307
+ continue;
8308
+ }
8297
8309
  if (l === "'" && !r) {
8298
8310
  n = !n, o = !0;
8299
8311
  continue;