We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 85b81a6 + 0429284 commit 0b70ef3Copy full SHA for 0b70ef3
1 file changed
lib/mcp/string_utils.rb
@@ -15,7 +15,7 @@ def demodulize(path)
15
end
16
17
def underscore(camel_cased_word)
18
- camel_cased_word.dup
+ camel_cased_word
19
.gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
20
.gsub(/([a-z\d])([A-Z])/, '\1_\2')
21
.tr("-", "_")
0 commit comments