Yes, periods & dashes are allowed through this regex:
```
 invalid.sub('_', string.punctuation)
'____________-.__________________'
```

Is there something I need to change?