ziolko / spreadapi

Free REST API for Google Spreadsheet
https://spreadapi.roombelt.com
Other
87 stars 13 forks source link

isStrongKey doesn't allow many valid special characters #6

Closed gcleaves closed 3 years ago

gcleaves commented 3 years ago

Hi. Currently isStrongKey only considers the following special characters: !@#$%^&* . This excludes many possible ASCII special characters. I recommend you update the regex to:

^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[\x20-\x2F\x3A-\x40\x5B-\x60\x7B-\x7E])(?=.{8,})

I have included several ranges from this table: http://www.asciitable.com/

ziolko commented 3 years ago

I think it's a good point. I will add it in the next few days.

ziolko commented 3 years ago

Done. Let me know if it works fine for you.