Created
July 16, 2019 19:48
-
-
Save BanzaiMan/a4df24e27e210a0e0db0738c29ac7b25 to your computer and use it in GitHub Desktop.
Revisions
-
BanzaiMan created this gist
Jul 16, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ HHVM_VERSION_REGEXP = / (?:hhvm$) |( hhvm-( (?<numeric>\d+(\.\d+)*)(?<lts>-lts)?$ | (?<version> dbg$| dev$| nightly$| nightly-dbg$| dev-nightly$ ) ) /x vers = %w( hhvm hhvm-nightly hhvm- hhvm-3.25 hhvm-3.25-lts ) vers.each do |v| if md = HHVM_VERSION_REGEXP.match(v) puts md.inspect end end