Add web front-end and fix API issues
This commit is contained in:
1 parent
45ca4de0ad
commit
a7524412f0
2571 files changed
+86998
-5
No files matched your search
+15
@@ -0,0 +1,15 @@
|
||||
export function normalizeCliCommand(command) {
|
||||
if (command.length < 2) {
|
||||
return command;
|
||||
}
|
||||
const quote = command[0];
|
||||
const last = command.at(-1);
|
||||
if ((quote !== '"' && quote !== "'") || last !== quote) {
|
||||
return command;
|
||||
}
|
||||
const inner = command.slice(1, -1);
|
||||
if (inner.includes(quote)) {
|
||||
return command;
|
||||
}
|
||||
return inner;
|
||||
}
|
||||
Reference in new issue
Block a user