[fix] construct RegExp inline for proper re-use, fixes #11