]> granicus.if.org Git - pgbouncer/commitdiff
console: relax word regex to allow numbers
authorMarko Kreen <markokr@gmail.com>
Fri, 14 Oct 2011 07:17:39 +0000 (10:17 +0300)
committerMarko Kreen <markokr@gmail.com>
Fri, 14 Oct 2011 07:17:39 +0000 (10:17 +0300)
src/admin.c

index eb03327a249f2978c33835e04db328102bf531d7..b51f41efa65049d681595bb29eb381a574173374 100644 (file)
@@ -27,7 +27,7 @@
 /* regex elements */
 #define WS0    "[ \t\n\r]*"
 #define WS1    "[ \t\n\r]+"
-#define WORD   "(\"([^\"]+|\"\")*\"|[a-z_][0-9a-z_]*)"
+#define WORD   "(\"([^\"]+|\"\")*\"|[0-9a-z_]+)"
 #define STRING "'(([^']*|'')*)'"
 
 /* possible max + 1 */