Coverage for jaypore_ci/clean.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.2.2, created at 2023-03-30 09:04 +0000

1allowed_alphabet = "abcdefghijklmnopqrstuvwxyz1234567890" 

2allowed_alphabet += allowed_alphabet.upper() 

3 

4 

5def name(given): 

6 """ 

7 Clean a given name so that it can be used inside of JCI. 

8 """ 

9 return "".join(l if l in allowed_alphabet else "-" for l in given)