Uh oh!
There was an error while loading. Please reload this page.
feat(isStrongPassword): add 'extendSymbols' option - #1564
Conversation
Codecov Report
@@ Coverage Diff @@## master #1564 +/- ##
=========================================
Coverage 100.00% 100.00% =========================================
Files 100 100 Lines 1843 1844 +1 =========================================
+ Hits 1843 1844 +1
Continue to review full report at Codecov.
|
stingalleman
commented
Jan 1, 2021
I think @ should be included by default, so I submitted #1566. I still believe this is a good PR, however. |
048ed67 to
629535eComparefedeci
commented
Mar 19, 2021
Here it is😄 |
| const lowerCaseRegex = /^[a-z]$/; | ||
| const numberRegex = /^[0-9]$/; | ||
| const symbolRegex = /^[-#!$@%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/; | ||
| const defaultSymbols = '-#!$@%^&*()_+|~=`{}\\[\\]:";\'<>?,.\\/ '; |
There was a problem hiding this comment.
A little question about this regex, i know that you just used the existing symbolRegex but is there any special reason for not matching the Back slash character \ ?
profnandaa
left a comment
There was a problem hiding this comment.
I'll fix the m/c, never mind.
profnandaa
commented
Jan 31, 2023
closed in #1566 |
The
extendSymbolsoption allows to extend the default set of symbols available forisStrongPassword.Fixes#1563
Checklist