(text string)
| 166 | } |
| 167 | |
| 168 | func normalizeCommentText(text string) string { |
| 169 | // TODO: Is there a better way to get just the text of the comment? |
| 170 | text = strings.TrimPrefix(text, "//") |
| 171 | text = strings.TrimPrefix(text, "/*") |
| 172 | text = strings.TrimSuffix(text, "*/") |
| 173 | |
| 174 | // Normalize CRLF to LF for cross-platform compatibility |
| 175 | text = strings.ReplaceAll(text, "\r\n", "\n") |
| 176 | text = strings.ReplaceAll(text, "\r", "\n") |
| 177 | |
| 178 | return text |
| 179 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…