shithub: misc

ref: 064c250f0c7e5224db9222f6be46da8a29ebb589
dir: /acme-at.patch/

View raw version
diff -r 100ce3da6613 sys/lib/plumb/basic
--- a/sys/lib/plumb/basic	Tue Mar 02 10:03:25 2021 +0100
+++ b/sys/lib/plumb/basic	Tue Mar 02 21:39:50 2021 +0100
@@ -29,7 +29,7 @@
 
 # email addresses get a new mail window
 type is text
-data matches '[a-zA-Z0-9_+.\-]+@[a-zA-Z0-9_+.\-]*'
+data matches '[a-zA-Z0-9_+.\-]+@[a-zA-Z0-9_+.\-]*$'
 plumb to sendmail
 plumb start window rc -c '''echo % mail '''$0'; mail '$0
 
diff -r 100ce3da6613 sys/src/cmd/acme/look.c
--- a/sys/src/cmd/acme/look.c	Tue Mar 02 10:03:25 2021 +0100
+++ b/sys/src/cmd/acme/look.c	Tue Mar 02 21:39:50 2021 +0100
@@ -314,7 +314,7 @@
 {
 	if(isalnum(r))
 		return TRUE;
-	if(runestrchr(L".-+/:", r))
+	if(runestrchr(L".-+/:@", r))
 		return TRUE;
 	return FALSE;
 }