Docstring fixed
This commit is contained in:
parent
4a9fe8772e
commit
e1b1ca4c60
1 changed files with 2 additions and 1 deletions
|
|
@ -154,7 +154,8 @@ module DebImporter
|
|||
|
||||
def initialize(version_string)
|
||||
@version_string = version_string
|
||||
# Split into "[epoch:]version[-revision]"
|
||||
# Split into "[epoch:]upstream[-revision]"
|
||||
# See: https://www.debian.org/doc/debian-policy/ch-controlfields.html#version
|
||||
unless /^((?<epoch>\d+)\:)?(?<upstream>.+?)(\-(?<revision>.+))?$/ =~ version_string
|
||||
raise ArgumentError, "Cannot parse version string: #{version_string}"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue