This seems redundant. Either remove this check, or (probably more helpful) make the regular expression more generic by using `[a-z]{2}` instead of `px|in|...`.