aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-06-15 19:51:49 -0500
committerJack Nagel2013-06-15 19:51:49 -0500
commitd9247b373e171fad2b7c92dba55bbf94af392683 (patch)
treeac16230e82d065598fad08837f129d73b29e49a0 /Library
parentaa64a3aae54f0059441551cc88f29173971b24dc (diff)
downloadhomebrew-d9247b373e171fad2b7c92dba55bbf94af392683.tar.bz2
Simplify regexp match
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac/xquartz.rb2
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