(p)
| 48 | // to manual setup instead. Allows : \ / for normal Windows and POSIX paths. Full |
| 49 | // per-shell escaper only if a real need appears. |
| 50 | function isShellSafe(p) { |
| 51 | return typeof p === 'string' && /^[A-Za-z0-9 _.\-:/\\~]+$/.test(p); |
| 52 | } |
| 53 | |
| 54 | function getConfigDir() { |
| 55 | if (process.env.XDG_CONFIG_HOME) { |
no outgoing calls
no test coverage detected