register: fix ignoreRegex compatibility check