Commit 4b9b66d
committed
Cast to string before passing input globs to slash
If a number is passed as a positional argument, yargs interprets
it as a JS Number, and slash tries to call .replace() on it, which
fails. This ensures slash only gets strings passed to it.
Refs #360 (comment)1 parent 453aaec commit 4b9b66d
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
0 commit comments