Skip to content
Snippets Groups Projects
Commit 45d3e436 authored by Jack Nagel's avatar Jack Nagel
Browse files

Simplify regexp match

parent d98ff95b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment