(s string)
| 161 | } |
| 162 | |
| 163 | func cleanNumber(s string) string { |
| 164 | if len(s) > 1 && s[0] == '\'' && s[len(s)-1] == '\'' { |
| 165 | s = s[1 : len(s)-1] |
| 166 | s = strings.Replace(s, `''`, `'`, -1) |
| 167 | } else if len(s) > 1 && s[0] == '"' && s[len(s)-1] == '"' { |
| 168 | s = s[1 : len(s)-1] |
| 169 | s = strings.Replace(s, `""`, `"`, -1) |
| 170 | } |
| 171 | return s |
| 172 | } |
| 173 | |
| 174 | // Copy ioutil.ReadDir to avoid staticcheck warning on go1.19 and above. Replace |
| 175 | // with a call to os.ReadDir when we remove support for go1.15 and below. |
no outgoing calls
no test coverage detected
searching dependent graphs…