lib/maven/tools/artifact.rb in maven-tools-1.0.9 vs lib/maven/tools/artifact.rb in maven-tools-1.0.10

- old
+ new

@@ -101,10 +101,10 @@ end end def self.from_coordinate( coord ) exclusions = nil - coord.sub!(/:\[.+\]/) do |s| + coord.sub!(/:\[([^:]+:[^:]+)+\]/) do |s| exclusions = s[1..-1] '' end args = coord.split( /:/ ) # maven coordinates differ :(