lib/defmastership/constants.rb in defmastership-1.0.10 vs lib/defmastership/constants.rb in defmastership-1.0.11

- old
+ new

@@ -18,10 +18,12 @@ DEF_AFTER_REF = <<~'AFT' \s* (,\s*\[\s*(?<labels>.*?)\s*\])?\s*\] AFT - DEF_VERSION_AND_CHECKSUM = '(\((?<explicit_version>[^~]+)?(?<explicit_checksum>~[[:alnum:]]+)?\))?' + DEF_VERSION_AND_CHECKSUM = '(?<version_and_checksum>' \ + '\((?<explicit_version>[^~]+)?(?<explicit_checksum>~[[:alnum:]]+)?\)' \ + ')?' DEFINITION = Regexp.new( "#{DEF_BEFORE_REF}(?<reference>[\\w:_-]+)#{DEF_VERSION_AND_CHECKSUM}#{DEF_AFTER_REF}", Regexp::EXTENDED )