{"action":"created","issue":{"url":"https://api.github.com/repos/sciunto-org/python-bibtexparser/issues/152","repository_url":"https://api.github.com/repos/sciunto-org/python-bibtexparser","labels_url":"https://api.github.com/repos/sciunto-org/python-bibtexparser/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/sciunto-org/python-bibtexparser/issues/152/comments","events_url":"https://api.github.com/repos/sciunto-org/python-bibtexparser/issues/152/events","html_url":"https://github.com/sciunto-org/python-bibtexparser/issues/152","id":193791134,"number":152,"title":"Incorrect parsing of unquoted months","user":{"login":"vext01","id":604955,"avatar_url":"https://avatars.githubusercontent.com/u/604955?v=3","gravatar_id":"","url":"https://api.github.com/users/vext01","html_url":"https://github.com/vext01","followers_url":"https://api.github.com/users/vext01/followers","following_url":"https://api.github.com/users/vext01/following{/other_user}","gists_url":"https://api.github.com/users/vext01/gists{/gist_id}","starred_url":"https://api.github.com/users/vext01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vext01/subscriptions","organizations_url":"https://api.github.com/users/vext01/orgs","repos_url":"https://api.github.com/users/vext01/repos","events_url":"https://api.github.com/users/vext01/events{/privacy}","received_events_url":"https://api.github.com/users/vext01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-06T14:49:02Z","updated_at":"2016-12-06T15:04:41Z","closed_at":null,"body":"Here is a valid bibtex entry:\r\n\r\n```\r\n$ cat test.bib \r\n@book{cheney85numerical,\r\n    title={Numerical methods and computing},\r\n    author={Cheney, Ward and Kincaid, David},\r\n    journal={Pacific Grove: California},\r\n    year={1985},\r\n    month=Apr,\r\n}\r\n```\r\n\r\nbibtexparser fails to parse the month correctly:\r\n\r\n```\r\n$ python2.7 -c \"from bibtexparser.bparser import BibTexParser; import sys; BibTexParser(sys.stdin.read())\" < test.bib  \r\nTraceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\n  File \"bibtexparser/bparser.py\", line 62, in __new__\r\n    return parse(data, **args)\r\n  File \"bibtexparser/bparser.py\", line 30, in parse\r\n    return parser.parse(data)\r\n  File \"bibtexparser/bparser.py\", line 130, in parse\r\n    self._expr.parseFile(bibtex_file_obj)\r\n  File \"bibtexparser/bibtexexpression.py\", line 251, in parseFile\r\n    return self.main_expression.parseFile(file_obj, parseAll=True)\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 2144, in parseFile\r\n    return self.parseString(file_contents, parseAll)\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 1607, in parseString\r\n    loc, tokens = self._parse( instring, 0 )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 1379, in _parseNoCache\r\n    loc,tokens = self.parseImpl( instring, preloc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 3900, in parseImpl\r\n    return super(ZeroOrMore, self).parseImpl(instring, loc, doActions)\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 3829, in parseImpl\r\n    loc, tokens = self_expr_parse( instring, loc, doActions, callPreParse=False )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 1379, in _parseNoCache\r\n    loc,tokens = self.parseImpl( instring, preloc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 3511, in parseImpl\r\n    ret = e._parse( instring, loc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 1379, in _parseNoCache\r\n    loc,tokens = self.parseImpl( instring, preloc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 3376, in parseImpl\r\n    loc, exprtokens = e._parse( instring, loc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 1379, in _parseNoCache\r\n    loc,tokens = self.parseImpl( instring, preloc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 3511, in parseImpl\r\n    ret = e._parse( instring, loc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 1379, in _parseNoCache\r\n    loc,tokens = self.parseImpl( instring, preloc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 3376, in parseImpl\r\n    loc, exprtokens = e._parse( instring, loc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 1379, in _parseNoCache\r\n    loc,tokens = self.parseImpl( instring, preloc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 3376, in parseImpl\r\n    loc, exprtokens = e._parse( instring, loc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 1379, in _parseNoCache\r\n    loc,tokens = self.parseImpl( instring, preloc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 3900, in parseImpl\r\n    return super(ZeroOrMore, self).parseImpl(instring, loc, doActions)\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 3839, in parseImpl\r\n    loc, tmptokens = self_expr_parse( instring, preloc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 1379, in _parseNoCache\r\n    loc,tokens = self.parseImpl( instring, preloc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 3376, in parseImpl\r\n    loc, exprtokens = e._parse( instring, loc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 1379, in _parseNoCache\r\n    loc,tokens = self.parseImpl( instring, preloc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 3698, in parseImpl\r\n    return self.expr._parse( instring, loc, doActions, callPreParse=False )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 1379, in _parseNoCache\r\n    loc,tokens = self.parseImpl( instring, preloc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 3376, in parseImpl\r\n    loc, exprtokens = e._parse( instring, loc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 1379, in _parseNoCache\r\n    loc,tokens = self.parseImpl( instring, preloc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 3511, in parseImpl\r\n    ret = e._parse( instring, loc, doActions )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 1405, in _parseNoCache\r\n    tokens = fn( instring, tokensStart, retTokens )\r\n  File \"/usr/local/lib/python2.7/site-packages/pyparsing.py\", line 1049, in wrapper\r\n    ret = func(*args[limit[0]:])\r\n  File \"bibtexparser/bibtexexpression.py\", line 248, in _string_expr_parse_action\r\n    return self._string_expr_parse_action_fun(s, l, t)\r\n  File \"bibtexparser/bparser.py\", line 162, in <lambda>\r\n    self._interpolate_string_expression(t))\r\n  File \"bibtexparser/bparser.py\", line 295, in _interpolate_string_expression\r\n    return ''.join([self._expand_string(s) for s in string_expr])\r\n  File \"bibtexparser/bparser.py\", line 306, in _expand_string\r\n    return string_or_bibdatastring.get_value()\r\n  File \"bibtexparser/bibdatabase.py\", line 122, in get_value\r\n    return self._bibdatabase.expand_string(self.name)\r\n  File \"bibtexparser/bibdatabase.py\", line 98, in expand_string\r\n    raise(KeyError(\"Unknown string: {}.\".format(name)))\r\nKeyError: 'Unknown string: apr.'\r\n```\r\n\r\nRelated #47."},"comment":{"url":"https://api.github.com/repos/sciunto-org/python-bibtexparser/issues/comments/265172535","html_url":"https://github.com/sciunto-org/python-bibtexparser/issues/152#issuecomment-265172535","issue_url":"https://api.github.com/repos/sciunto-org/python-bibtexparser/issues/152","id":265172535,"user":{"login":"vext01","id":604955,"avatar_url":"https://avatars.githubusercontent.com/u/604955?v=3","gravatar_id":"","url":"https://api.github.com/users/vext01","html_url":"https://github.com/vext01","followers_url":"https://api.github.com/users/vext01/followers","following_url":"https://api.github.com/users/vext01/following{/other_user}","gists_url":"https://api.github.com/users/vext01/gists{/gist_id}","starred_url":"https://api.github.com/users/vext01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vext01/subscriptions","organizations_url":"https://api.github.com/users/vext01/orgs","repos_url":"https://api.github.com/users/vext01/repos","events_url":"https://api.github.com/users/vext01/events{/privacy}","received_events_url":"https://api.github.com/users/vext01/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T15:04:41Z","updated_at":"2016-12-06T15:04:41Z","body":"This is with master btw."}}
{"actor":{"display_login":"vext01"}}