Browse Source

Maintenance: Update dependency rubocop to v1.39.0

renovatebot 2 years ago
parent
commit
b4bccce969

+ 1 - 1
Gemfile.lock

@@ -455,7 +455,7 @@ GEM
       rspec-core (> 3.3)
     rspec-support (3.12.0)
     rszr (1.3.0)
-    rubocop (1.38.0)
+    rubocop (1.39.0)
       json (~> 2.3)
       parallel (~> 1.10)
       parser (>= 3.1.2.1)

+ 1 - 2
config/initializers/html_sanitizer.rb

@@ -9,8 +9,7 @@ Rails.application.config.html_sanitizer_tags_remove_content = %w[
 ]
 
 # content of this tags will will be inserted html quoted
-Rails.application.config.html_sanitizer_tags_quote_content = %w[
-]
+Rails.application.config.html_sanitizer_tags_quote_content = %w[]
 
 # only this tags are allowed
 Rails.application.config.html_sanitizer_tags_allowlist = %w[

+ 1 - 1
lib/generators/zammad/translation_catalog/extractor/ruby.rb

@@ -13,7 +13,7 @@ class Zammad::TranslationCatalog::Extractor::Ruby < Zammad::TranslationCatalog::
     literal_string_regex = %r{('|")(.+?)(?<!\\)\1}
 
     # Translation.translate
-    locale_regex = %r{['"a-z_0-9.&@:\[\]\-]+}
+    locale_regex = %r{['"a-z_0-9.&@:\[\]-]+}
     translate_regex = %r{Translation\.translate\(?\s*#{locale_regex},\s*#{literal_string_regex}}
 
     # __()