Previous change had insufficiently robust test.

The boundary test needs to be a zero width positive lookahead
assertion, not a non-grouping match. If it is the latter, the
boundary is consumed. In the past the boundary never had any width,
now it does.