(input string)
| 416 | } |
| 417 | |
| 418 | func findTagInstances(input string) []bridge.FacetParsing { |
| 419 | regex := regexp.MustCompile(`#[a-zA-Z0-9_]+`) |
| 420 | matches := regex.FindAllStringIndex(input, -1) |
| 421 | results := []bridge.FacetParsing{} |
| 422 | for _, match := range matches { |
| 423 | results = append(results, bridge.FacetParsing{ |
| 424 | Start: match[0], |
| 425 | End: match[1], |
| 426 | Item: input[match[0]+1 : match[1]], |
| 427 | }) |
| 428 | } |
| 429 | return results |
| 430 | } |
no outgoing calls
no test coverage detected