Sees if buf is of the form [optional whitespace][keyword][optional anything]. It won't allow keyword to be directly followed by an alphanumeric, _, or &. Will be different if keyword contains regex codes.
(final String keyword)
| 375 | * Will be different if keyword contains regex codes. |
| 376 | */ |
| 377 | private boolean bufStarts(final String keyword) { |
| 378 | return Pattern.matches("^\\s*" + keyword + "(?![a-zA-Z0-9_&]).*$", buf); |
| 379 | } |
| 380 | |
| 381 | |
| 382 | /** |
no test coverage detected