@wrongstack/tools 0.277.2 → 0.280.0

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/dist/bash.js CHANGED
@@ -1340,7 +1340,7 @@ function looksLikePowerShell(command) {
1340
1340
  if (/&\s+\$/.test(trimmed)) return true;
1341
1341
  if (/(^|\s)@\s*\(/.test(trimmed)) return true;
1342
1342
  if (/(^|\s)@\{/.test(trimmed)) return true;
1343
- if (/(?:^|[\s\[\(\{,;])(?:-eq|-ne|-lt|-gt|-le|-ge|-like|-notlike|-match|-notmatch|-contains|-notcontains|-in|-notin|-and|-or|-not|-band|-bor|-bxor|-replace|-isplit|-csplit|-osplit|-join|-is|-as|-f)(?:$|[\s\]\)\},;])/i.test(trimmed)) {
1343
+ if (/(?:^|[\s[({,;])(?:-eq|-ne|-lt|-gt|-le|-ge|-like|-notlike|-match|-notmatch|-contains|-notcontains|-in|-notin|-and|-or|-not|-band|-bor|-bxor|-replace|-isplit|-csplit|-osplit|-join|-is|-as|-f)(?:$|[\s\])},;])/i.test(trimmed)) {
1344
1344
  return true;
1345
1345
  }
1346
1346
  if (PS_VERB_RE.test(trimmed)) return true;
@@ -1367,7 +1367,7 @@ function looksLikePowerShellExtended(command) {
1367
1367
  return true;
1368
1368
  }
1369
1369
  if (/^\s*<#|#>\s*$/m.test(trimmed)) return true;
1370
- if (/(?:^|\s)[-/\/](?:AsPlainText|PipelineVariable|pv|FilterHashtable|OutVariable|ov)(?:\s|=|$)/i.test(trimmed)) {
1370
+ if (/(?:^|\s)[-//](?:AsPlainText|PipelineVariable|pv|FilterHashtable|OutVariable|ov)(?:\s|=|$)/i.test(trimmed)) {
1371
1371
  return true;
1372
1372
  }
1373
1373
  return false;