From: Ken Youens-Clark Date: Wed, 12 Aug 2009 15:08:49 +0000 (+0000) Subject: Smoother regex (thanks Jim Thomason). X-Git-Tag: v0.11008~119 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=02e19bc248d882b57e8fead3e68f81ccf7718c67;p=dbsrgits%2FSQL-Translator.git Smoother regex (thanks Jim Thomason). --- diff --git a/lib/SQL/Translator/Parser/MySQL.pm b/lib/SQL/Translator/Parser/MySQL.pm index 81b7d24..38b062b 100644 --- a/lib/SQL/Translator/Parser/MySQL.pm +++ b/lib/SQL/Translator/Parser/MySQL.pm @@ -673,7 +673,7 @@ normal_index : KEY index_name_not_using(?) index_type(?) '(' name_with_opt_paren } index_name_not_using : QUOTED_NAME - | /\b([^u][^s]?[^i]?[^n]?[^g]?\w*?)\b/ { $return = $1 } + | /(\b(?!using)\w+\b)/ { $return = $1 } index_type : /using (btree|hash|rtree)/i { $return = uc $1 }