The old regex requires something after the 'host' part. Fix this.
The old regex requires something after the 'host' part. Fix this.

Old regex is : /^GRANT\s(.+)\sON\s(.+)\sTO\s(.*)@(.*?)(\s.*)$/ . The
last part (\s.*)$ means "a space followed by anything". The issue is
that when user has no GRANT privileges, the "SHOW GRANTS FOR #{user_string}" returns
"GRANT SELECT ON `database`.* TO 'user'@'%'" which does not match (\s.*)$ .
This small patch fixes this making last bloc optional (thanks to '?').

roidelapluie/puppetlabs-mysql,16nsk/puppetlabs-mysql,trovitsys/puppetlabs-mysql,DavidS/puppetlabs-mysql,danzilio/puppetlabs-mysql,simp/puppetlabs-mysql,j-russell/puppetlabs-mysql,bhagyas/puppetlabs-mysql,hundredacres/puppetlabs-mysql,hundredacres/puppetlabs-mysql,jonnytpuppet/puppetlabs-mysql,cyberious/puppetlabs-mysql,gabriel403/puppetlabs-mysql,redhat-cip/puppetlabs-mysql,plumgrid/puppetlabs-mysql,carroarmato0/puppetlabs-mysql,gibbsoft/puppetlabs-mysql,trovitsys/puppetlabs-mysql,roman-mueller/puppetlabs-mysql,breuninger-ecom/puppetlabs-mysql,edestecd/puppetlabs-mysql,16nsk/puppetlabs-mysql,michaeltchapman/puppet-mysql,mhaskel/puppetlabs-mysql,rdo-puppet-modules/puppetlabs-mysql,mcanevet/puppetlabs-mysql,tphoney/puppetlabs-mysql,roidelapluie/puppetlabs-mysql,haw-hh-ai-lab/puppetlabs-mysql,redhat-cip/puppetlabs-mysql,skyscrapers/puppetlabs-mysql,Adaptavist/puppet-mysql,michaeltchapman/puppet-mysql,synalabs/puppetlabs-mysql,breuninger-ecom/puppetlabs-mysql,gibbsoft/puppetlabs-mysql,cdenneen/puppetlabs-mysql,xbezdick/puppetlabs-mysql,mhaskel/puppetlabs-mysql,plumgrid/puppetlabs-mysql,igalic/puppetlabs-mysql,ndelic0/puppetlabs-mysql,xbezdick/puppetlabs-mysql,op-ct/puppetlabs-mysql,danzilio/puppetlabs-mysql,op-ct/puppetlabs-mysql,gabriel403/puppetlabs-mysql,puppetlabs/puppetlabs-mysql,jonnytpuppet/puppetlabs-mysql,edestecd/puppetlabs-mysql,Adaptavist/puppet-mysql,ndelic0/puppetlabs-mysql,jbondpdx/puppetlabs-mysql,igalic/puppetlabs-mysql,haw-hh-ai-lab/puppetlabs-mysql,roman-mueller/puppetlabs-mysql,nickchappell/puppetlabs-mysql,apa-it/puppetlabs-mysql,trovitsys/puppetlabs-mysql,nickchappell/puppetlabs-mysql,j-russell/puppetlabs-mysql,DavidS/puppetlabs-mysql,bhagyas/puppetlabs-mysql,fuel-infra/puppetlabs-mysql,carroarmato0/puppetlabs-mysql,rdo-puppet-modules/puppetlabs-mysql,bmjen/puppetlabs-mysql,cdenneen/puppetlabs-mysql,puppetlabs/puppetlabs-mysql,synalabs/puppetlabs-mysql,markasammut/puppetlabs-mysql,squarit/puppetlabs-mysql,underscorgan/puppetlabs-mysql,bmjen/puppetlabs-mysql,squarit/puppetlabs-mysql,mcanevet/puppetlabs-mysql,fuel-infra/puppetlabs-mysql,tphoney/puppetlabs-mysql,skyscrapers/puppetlabs-mysql,jbondpdx/puppetlabs-mysql,breuninger-ecom/puppetlabs-mysql,simp/puppetlabs-mysql,underscorgan/puppetlabs-mysql,cyberious/puppetlabs-mysql,markasammut/puppetlabs-mysql,apa-it/puppetlabs-mysql