Skip to content

Commit

Permalink
[Specification] Allow the name_and_version_from_string regex to match…
Browse files Browse the repository at this point in the history
… spaces
  • Loading branch information
segiddins committed Sep 29, 2014
1 parent 6f66da3 commit b4ea33a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cocoapods-core/specification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def inspect
# pod.
#
def self.name_and_version_from_string(string_representation)
match_data = string_representation.match(/\A(\S*)(?: \((.+)\))?\Z/)
match_data = string_representation.match(/\A((?: ?[A-Za-z\/])+)(?: \((.+)\))?\Z/)
unless match_data
raise Informative, 'Invalid string representation for a ' \
"specification: `#{string_representation}`. " \
Expand Down

0 comments on commit b4ea33a

Please sign in to comment.