Converts text that may be camelcased into an underscored format
(text)
| 48 | |
| 49 | |
| 50 | def underscore(text): |
| 51 | """Converts text that may be camelcased into an underscored format""" |
| 52 | return UNDERSCORE[1].sub(r"\1_\2", UNDERSCORE[0].sub(r"\1_\2", text)).lower() |
| 53 | |
| 54 | |
| 55 | def camelcase(text): |
no outgoing calls
no test coverage detected