[PATCH gamja] components/app: allow multiple spaces between command arguments
Export this patch
---
components/app.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/app.js b/components/app.js
index 3987749..876b9b5 100644
--- a/components/app.js
+++ b/components/app.js
@@ -1504,7 +1504,7 @@ export default class App extends Component {
}
executeCommand(s) {
- let parts = s.split(" ");
+ let parts = s.split(/ +/);
let name = parts[0].toLowerCase().slice(1);
let args = parts.slice(1);
--
2.41.0
gamja/patches/.build.yml: SUCCESS in 59s
[components/app: allow multiple spaces between command arguments][0] from [Matthew Martin][1]
[0]: https://lists.sr.ht/~emersion/public-inbox/patches/41814
[1]: mailto:phy1729@gmail.com
✓ #1006065 SUCCESS gamja/patches/.build.yml https://builds.sr.ht/~emersion/job/1006065
Unfortunately this will break things like:
/msg emersion this is a message with many spaces