diff options
author | Micah Anderson <micah@riseup.net> | 2012-01-01 15:29:09 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2012-01-01 15:29:09 -0500 |
commit | d42aafd7a8c6b1b97dd79586114f07f97cde999f (patch) | |
tree | ac1f5f9c329176c12ab1715c40d35779dcf59d00 /lib/puppet/provider/mysql_grant/mysql.rb | |
parent | b869455c7471cf32e8218f749f7e1f4025c0874a (diff) |
changed the matches regexp to be not greedy so other things like tables and columns can be matched
Diffstat (limited to 'lib/puppet/provider/mysql_grant/mysql.rb')
-rw-r--r-- | lib/puppet/provider/mysql_grant/mysql.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/provider/mysql_grant/mysql.rb b/lib/puppet/provider/mysql_grant/mysql.rb index 22ee1e7..f3c800d 100644 --- a/lib/puppet/provider/mysql_grant/mysql.rb +++ b/lib/puppet/provider/mysql_grant/mysql.rb @@ -39,7 +39,8 @@ Puppet::Type.type(:mysql_grant).provide(:mysql) do # this parses the def split_name(string) - matches = /^([^@]*)@([^\/]*)(\/(.*))?(\/(.*))?(\/(.*))?$/.match(string).captures.compact + matches = /^([^@]*)@([^\/]*)(\/([^\/]*))?(\/([^\/]*))?$/.match(string).captures.compact + case matches.length when 2 { |