aboutsummaryrefslogtreecommitdiffstats
path: root/BibTeX.py
diff options
context:
space:
mode:
Diffstat (limited to 'BibTeX.py')
-rw-r--r--BibTeX.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/BibTeX.py b/BibTeX.py
index a7a030a..6e748a0 100644
--- a/BibTeX.py
+++ b/BibTeX.py
@@ -380,6 +380,9 @@ class BibTeXEntry:
not self['booktitle'].startswith("{Proceedings of"):
errs.append("ERROR: %s's booktitle doesn't start with 'Proceedings'" % self.key)
+ if self.has_key("pages") and not re.match(r'\d+--\d+', self['pages']):
+ errs.append("ERRROR: Misformed pages in %s"%self.key)
+
if self.type == 'proceedings':
if self.get('title'):
errs.append("ERROR: %s is a proceedings: it should have a booktitle, not a title." % self.key)