isValidPythonName returns true if the string is a valid python identifier name
(name string)
| 289 | // isValidPythonName returns true if the string is a valid |
| 290 | // python identifier name |
| 291 | func isValidPythonName(name string) bool { |
| 292 | if name == "" { |
| 293 | return false |
| 294 | } |
| 295 | return rxValidPythonName.MatchString(name) |
| 296 | } |
| 297 | |
| 298 | var ( |
| 299 | rxMatchFirstCap = regexp.MustCompile("([A-Z])([A-Z][a-z])") |
no outgoing calls
no test coverage detected