Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 443 Bytes

File metadata and controls

19 lines (12 loc) · 443 Bytes

PS Clean Name

Purpose

2 Functions to clean strings for building a {Display Name} and an {Email Name}

Display Name

- All (ascii) letters  accepted
- Single quote (') and hyphen (-) accepted
- Upper case first letter
- Upper case first letters after a whitespace, a single quote or an hyphen

Mail Name

- Only lower case
- Replace special characters with a-z characters
- Remove non a-z characters