(content string, left, right *int, uniqueIDs map[string]struct{}, questionLinks *[]QuestionLink)
| 81 | } |
| 82 | |
| 83 | func processID(content string, left, right *int, uniqueIDs map[string]struct{}, questionLinks *[]QuestionLink) { |
| 84 | for *right < len(content) && (isDigit(content[*right]) || isLetter(content[*right])) { |
| 85 | *right++ |
| 86 | } |
| 87 | id := content[*left:*right] |
| 88 | addUniqueID(id, "", QuestionLinkTypeID, uniqueIDs, questionLinks) |
| 89 | } |
| 90 | |
| 91 | func isDigit(c byte) bool { |
| 92 | return c >= '0' && c <= '9' |
no test coverage detected