Sees if buf is of the form [optional whitespace][keyword][optional anything]. It will allow keyword to be directly followed by an alphanumeric, _, or &. Will be different if keyword contains regex codes (except , which is fine).
(final String keyword)
| 418 | * Will be different if keyword contains regex codes (except *, which is fine). |
| 419 | */ |
| 420 | private boolean lookup_com(final String keyword) { |
| 421 | final String regex = "^\\s*" + keyword.replace("*", "\\*") + ".*$"; |
| 422 | return Pattern.matches(regex, buf); |
| 423 | } |
| 424 | |
| 425 | |
| 426 | /** |
no test coverage detected