Skip to content
Snippets Groups Projects
Verified Commit ee31ecbf authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Make rubocop happier

parent 7834e21a
Branches
Tags
No related merge requests found
Checking pipeline status
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# String extensions for camel/snake case conversion # String extensions for camel/snake case conversion
class String class String
def _cmdb_snake_case def _cmdb_snake_case
gsub(/::/, "/") gsub("::", "/")
.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("-", "_")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment