Bump max key length to 150 characters

This commit is contained in:
djoate 2019-11-24 15:51:54 -05:00
parent 857287ca1d
commit 939c7479c3
No known key found for this signature in database
GPG Key ID: E8366E2E207EFB0E

View File

@ -20,7 +20,7 @@ module Weblate
class ID
def self.get(source_text)
source_text.nil? or source_text.empty? ? source_text
: source_text.strip[0..100]
: source_text.strip[0..150]
.gsub(/([^\w\d\s\.\?\!]|\n)/, '')
.tr(' ', '_') << "_KEY"
end