mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-15 15:00:46 +00:00
run through standard
This commit is contained in:
parent
e3b72b9c45
commit
aa159d9414
@ -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/, "_")
|
||||
|
Loading…
Reference in New Issue
Block a user