slightly stricter quote regex

This commit is contained in:
Ben Balter 2018-01-22 14:05:57 -05:00
parent f4f2cde02b
commit 810f48eda0
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ module Licensee
# Single versus double quotes don't alter the meaning, and it's easier to
# strip double quotes if we still want to allow possessives
def normalize_quotes(string)
string.gsub(/\s'([\w -]+)'/, ' "\1"')
string.gsub(/\s'([\w -]*?\w)'/, ' "\1"')
end
end
end