This thread contains a patchset. You're looking at the original emails,
but you may wish to use the patch review UI.
Review patch
3
3
[PATCH gamja] components/app: allow multiple spaces between command arguments
---
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] build success
Unfortunately this will break things like:
/msg emersion this is a message with many spaces
On Tue, Jun 13, 2023 at 10:07:10AM +0000, Simon Ser wrote:
> Unfortunately this will break things like:
>
> /msg emersion this is a message with many spaces
Right, sorry. I don't think there's a simple solution, so I'll just drop
the idea. Thanks.