@staff0rd/assist 0.103.0 → 0.104.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.103.0",
9
+ version: "0.104.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -2720,6 +2720,7 @@ import { parse } from "shell-quote";
2720
2720
  var SEPARATOR_OPS = /* @__PURE__ */ new Set(["|", "&&", "||", ";"]);
2721
2721
  var UNSAFE_OPS = /* @__PURE__ */ new Set(["(", ")", ">", ">>", "<", "<&", "|&", ">&"]);
2722
2722
  var FD_REDIRECT_RE = /\d+>&\d+/g;
2723
+ var FD_DEVNULL_RE = /\d*>\/dev\/null/g;
2723
2724
  function splitCompound(command) {
2724
2725
  const tokens = tokenizeCommand(command);
2725
2726
  if (!tokens) return void 0;
@@ -2729,7 +2730,7 @@ function splitCompound(command) {
2729
2730
  return result.length > 0 ? result : void 0;
2730
2731
  }
2731
2732
  function tokenizeCommand(command) {
2732
- const trimmed = command.trim().replace(FD_REDIRECT_RE, "");
2733
+ const trimmed = command.trim().replace(FD_DEVNULL_RE, "").replace(FD_REDIRECT_RE, "");
2733
2734
  if (!trimmed) return void 0;
2734
2735
  try {
2735
2736
  const tokens = parse(trimmed);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.103.0",
3
+ "version": "0.104.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {