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/, "_")