~emersion/public-inbox

gamja: components/app: allow multiple spaces between command arguments v1 REJECTED

Matthew Martin: 1
 components/app: allow multiple spaces between command arguments

 1 files changed, 1 insertions(+), 1 deletions(-)
#1006065 .build.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/public-inbox/patches/41814/mbox | git am -3
Learn more about email & git

[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