Add pattern permitted params

Use 2 (not 4) spaces for indentation.<br>Redundant `self` detected.<br>Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.