opscode/chef — pull request #891 by 3dinfluence (2013-07-11 17:32:21+00:00)
Title: Fixed issue with freebsd package provider current_installed_version

The regular expression being used to determine the installed version of a
package would get tripped up when the package name included regular
expression characters. Example: bonnie++

Since the package_name string is available using slice to extract the version
string from pkg_info avoids regular expressions complexity.