Skip to content

Commit

Permalink
Do not end description with a dot if it ends with punctuation mark
Browse files Browse the repository at this point in the history
Fixes #33
  • Loading branch information
Josef Stribny committed Apr 9, 2015
1 parent e90b56b commit cd46e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gem2rpm/specification.rb
Expand Up @@ -25,7 +25,7 @@ def self.misc_file?(file)
# A long description of gem wrapped to 78 characters.
def description
d = super.to_s.chomp
d.gsub!(/([^.])\Z/, "\\1.")
d.gsub!(/([^.!?])\Z/, "\\1.")
Helpers::word_wrap(d, 78) + "\n"
end

Expand Down

0 comments on commit cd46e6a

Please sign in to comment.