Remove '?' and '.' characters from source key names
This commit is contained in:
parent
7b11a7bb01
commit
46ba805cdd
@ -21,7 +21,7 @@ module Weblate
|
||||
def self.get(source_text)
|
||||
source_text.nil? or source_text.empty? ? source_text
|
||||
: source_text.strip[0..150]
|
||||
.gsub(/([^\w\d\s\.\?\!]|\n)/, '')
|
||||
.gsub(/([^\w\d\s\!]|\n)/, '')
|
||||
.tr(' ', '_') << "_KEY"
|
||||
end
|
||||
end
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user