diff options
| author | Jack Nagel | 2013-06-15 19:51:49 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-15 19:51:49 -0500 |
| commit | 45d3e436ee6f4bfcc7d5658a062feb64a184695a (patch) | |
| tree | a3190dc015d8d4f3f77d131c9b8eb5ad82245b8b /Library/Homebrew | |
| parent | d98ff95b3e1bce206c1aef032c396ac0cb714da7 (diff) | |
| download | brew-45d3e436ee6f4bfcc7d5658a062feb64a184695a.tar.bz2 | |
Simplify regexp match
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/os/mac/xquartz.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac/xquartz.rb b/Library/Homebrew/os/mac/xquartz.rb index b7ecd856a..a836abcbc 100644 --- a/Library/Homebrew/os/mac/xquartz.rb +++ b/Library/Homebrew/os/mac/xquartz.rb @@ -24,7 +24,7 @@ module MacOS::XQuartz extend self else # Finally, try to find it via pkgutil. This is slow, and only works # for the upstream XQuartz package, so use it as a last resort. - MacOS.pkgutil_info(FORGE_PKG_ID) =~ /version: (\d\.\d\.\d).+$/ and $1 + MacOS.pkgutil_info(FORGE_PKG_ID)[/version: (\d\.\d\.\d).+$/, 1] end end end |
