minor regex speed improvements, fixes https://github.com/assemble/assemble-bootstrap/issues/3,