master: fixed re compile pattern requiring full match bug