From aa159d94144436fee8484f20f84b68d78b03348b Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 14 Jul 2023 11:45:08 +0100 Subject: [PATCH] run through standard --- lib/voicemeeter/core_extensions/string/snakecase.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/voicemeeter/core_extensions/string/snakecase.rb b/lib/voicemeeter/core_extensions/string/snakecase.rb index 3b86c32..d55637e 100644 --- a/lib/voicemeeter/core_extensions/string/snakecase.rb +++ b/lib/voicemeeter/core_extensions/string/snakecase.rb @@ -4,8 +4,7 @@ module Voicemeeter module SnakeCase class ::String def snakecase - self - .gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2') + gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2') .gsub(/([a-z\d])([A-Z])/, '\1_\2') .tr("-", "_") .gsub(/\s/, "_")