about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-07 20:25:20 -0500
committerGitHub <noreply@github.com>2023-02-08 02:25:20 +0100
commit2e652aa81c22c802e4571e6cfa443319cb862614 (patch)
tree2bbc48e0cbd187a892995a3e1897522cb4232dec /app
parentef8988aef2b616305c7f3038dc555d22ff1125fd (diff)
Apply Rubocop Performance/RedundantSplitRegexpArgument (#23443)
* Apply Rubocop Performance/RedundantSplitRegexpArgument

* Update app/controllers/concerns/signature_verification.rb
Diffstat (limited to 'app')
-rw-r--r--app/controllers/concerns/signature_verification.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/concerns/signature_verification.rb b/app/controllers/concerns/signature_verification.rb
index a9950d21f..9c04ab4ca 100644
--- a/app/controllers/concerns/signature_verification.rb
+++ b/app/controllers/concerns/signature_verification.rb
@@ -227,7 +227,7 @@ module SignatureVerification
   end
 
   def to_header_name(name)
-    name.split(/-/).map(&:capitalize).join('-')
+    name.split('-').map(&:capitalize).join('-')
   end
 
   def missing_required_signature_parameters?