summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-01-01 15:29:09 -0500
committerMicah Anderson <micah@riseup.net>2012-01-01 15:29:09 -0500
commitd42aafd7a8c6b1b97dd79586114f07f97cde999f (patch)
treeac1f5f9c329176c12ab1715c40d35779dcf59d00 /lib
parentb869455c7471cf32e8218f749f7e1f4025c0874a (diff)
changed the matches regexp to be not greedy so other things like tables and columns can be matched
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/provider/mysql_grant/mysql.rb3
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
{