Rename excludePattern property of NoDef to excludeRegex