cereda/checkcites — pull request #1 by ConstantineLignos (2012-12-18 09:54:09+00:00)
Title: Filter out whitespace in bibfile cite key

Formatted bib entries with leading whitespace before the cite key
cause problems because the whitespace is extracted alongside the key.
This means bib files that are the output of tools such as bibtool are always
incorrectly processed.

There's a minimal example for reproducing this, along with output:
https://gist.github.com/4326728

Here's a quick example:

@Article{	foo,
title	= {Bar},
author	= {Doe, J.},
journal	= {Nonexistent Journal},
volume	= {1},
number	= {1},
pages	= {1--2},
year	= {2012},
publisher	= {Nonexistent publisher}
}

This would lead to the cite key being read as '	foo'. This change
updates the extraction regex to not capture any optional leading
whitespace, resulting in just 'foo'.