Skip to content

Commit 7b43153

Browse files
authored
make REFERENCE_YEAR dynamic
1 parent d0d7689 commit 7b43153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scoring.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ scoring =
250250
base_guesses * match.token.length
251251

252252
MIN_YEAR_SPACE: 20
253-
REFERENCE_YEAR: 2017
253+
REFERENCE_YEAR: new Date().getFullYear()
254254

255255
regex_guesses: (match) ->
256256
char_class_bases =

0 commit comments

Comments
 (0)