mirror of
https://github.com/dropbox/zxcvbn.git
synced 2026-01-09 14:07:58 -05:00
make REFERENCE_YEAR dynamic
This commit is contained in:
@@ -250,7 +250,7 @@ scoring =
|
||||
base_guesses * match.token.length
|
||||
|
||||
MIN_YEAR_SPACE: 20
|
||||
REFERENCE_YEAR: 2017
|
||||
REFERENCE_YEAR: new Date().getFullYear()
|
||||
|
||||
regex_guesses: (match) ->
|
||||
char_class_bases =
|
||||
|
||||
Reference in New Issue
Block a user