Open stacycurl opened 8 years ago
classTag.uncamel[ThingyMaBob] == "Thingy ma bob"
Possible implementation via horrific regex
val splitCamelCaseRegex = s"(?<=[A-Z])(?=[A-Z][a-z])|(?<=[^A-Z])(?=[A-Z])|(?<=[A-Za-z])(?=[^A-Za-z])".r splitCamelCaseRegex.replaceAllIn(classgTag.simpleClassName[A].stripSuffix("$"), " ")
classTag.uncamel[ThingyMaBob] == "Thingy ma bob"
Possible implementation via horrific regex
val splitCamelCaseRegex = s"(?<=[A-Z])(?=[A-Z][a-z])|(?<=[^A-Z])(?=[A-Z])|(?<=[A-Za-z])(?=[^A-Za-z])".r splitCamelCaseRegex.replaceAllIn(classgTag.simpleClassName[A].stripSuffix("$"), " ")