@lambdacurry/arbor 0.4.15 → 0.4.16
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/arbor.js +1 -1
- package/package.json +1 -1
package/dist/arbor.js
CHANGED
|
@@ -16964,7 +16964,7 @@ var MAX_WORDS = Math.max(1, ...CLI_ACTIONS.map((a) => commandWords(a).split(" ")
|
|
|
16964
16964
|
function matchCommand(positionals) {
|
|
16965
16965
|
for (let n = Math.min(MAX_WORDS, positionals.length);n >= 1; n--) {
|
|
16966
16966
|
const key = positionals.slice(0, n).join(" ");
|
|
16967
|
-
const action = BY_COMMAND.get(key);
|
|
16967
|
+
const action = BY_COMMAND.get(key) ?? BY_COMMAND.get(key.replace(/_/g, " "));
|
|
16968
16968
|
if (action)
|
|
16969
16969
|
return { action, words: n };
|
|
16970
16970
|
}
|
package/package.json
CHANGED