Skip to content

Commit 042e83b

Browse files
committed
Check for YYYY keys in softdev.bib.
1 parent d143613 commit 042e83b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/prebib

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ REGEX_WARNINGS = {
5555
# Authors should just list the title of the conference/workshop.
5656
".*[Pp]roc\.", ".*[Pp]roceedings", ".*[Ww]orkshop"
5757
],
58-
"author" : [".*[Ee]dward [Bb]arrett"] # Prefer "Edd"
58+
"author" : [".*[Ee]dward [Bb]arrett"], # Prefer "Edd"
59+
"id": [r"^\w+\d\d\d\d"], # Years in keys should be in two-digit format.
5960
}
6061

6162
ALWAYS_WARN_IF_MISSING = [ "year", "author", "title" ]
@@ -150,6 +151,7 @@ class PreBib:
150151

151152
def regex_warn(self, key, data):
152153
""" Warn about common errors that can be detected by regex """
154+
153155
for (f, v) in data.items():
154156
if f == "author": # library splits authors
155157
v = u"and".join([ u" ".join(x) for x in v])

0 commit comments

Comments
 (0)