mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2025-04-17 19:23:52 +01:00
run through standard
This commit is contained in:
parent
e3b72b9c45
commit
aa159d9414
@ -4,8 +4,7 @@ module Voicemeeter
|
|||||||
module SnakeCase
|
module SnakeCase
|
||||||
class ::String
|
class ::String
|
||||||
def snakecase
|
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')
|
.gsub(/([a-z\d])([A-Z])/, '\1_\2')
|
||||||
.tr("-", "_")
|
.tr("-", "_")
|
||||||
.gsub(/\s/, "_")
|
.gsub(/\s/, "_")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user