summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 8e3a2b2..4b62f27 100644
--- a/main.go
+++ b/main.go
@@ -48,7 +48,7 @@ func main() {
 		HandlerFunc(apiEndpointHandler)
 	// This is for submitting new users
 	api.Path("/{format:(?:plain)}/{endpoint:users}").
-		Queries("url", "{url}", "nickname", "{nickname:[a-zA-Z0-9]+}").
+		Queries("url", "{url}", "nickname", "{nickname:[a-zA-Z0-9_-]+}").
 		Methods("POST").
 		HandlerFunc(apiEndpointPOSTHandler)
 	// Show all observed tags
@@ -56,7 +56,7 @@ func main() {
 		Methods("GET").
 		HandlerFunc(apiTagsBaseHandler)
 	// Requests tweets with a specific tag
-	api.Path("/{format:(?:plain)}/tags/{tags:[a-zA-Z0-9]+}").
+	api.Path("/{format:(?:plain)}/tags/{tags:[a-zA-Z0-9_-]+}").
 		Methods("GET").
 		HandlerFunc(apiTagsHandler)
 
href='#n85'>85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129