Created
November 22, 2019 17:16
-
-
Save JRaspass/700ce8418c770d5d268c150a1ec31535 to your computer and use it in GitHub Desktop.
This file contains 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 characters
given %fields<dependency.version>[$_] { | |
when 0 | 5 { } | |
when 6 { %dist<perl> = 6 } | |
when /v( '5.' \d+ )/ { %dist<perl> = ~$0 if $0 != 5 } | |
when /(\d\.) (\d ** ^4)/ { %dist<perl> = $0 ~ +"{$1}00".substr(^3) if +$1 } | |
default { note "Unknown version '$_' $dist" } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment