mayanklahiri / bib2json

Javascript Bibtex to JSON for nodejs and the browser
65 stars 9 forks source link

feat: Support string concatenation using '#' #9

Open emon100 opened 4 years ago

emon100 commented 4 years ago

Modified Parser.js to support string concatenation using '#' mentioned in bibtex.

Example:

 a.bib: @proceedings{book, month = "4 " # jan # {--} # "6 " # dec, year = "2019" }

- Before
 ->a.json:  [{"ObjectType":"entry","EntryType":"proceedings","EntryKey":"book","Fields":{"month":"4"}}]

- After
 ->a.json:  [{"ObjectType":"entry","EntryType":"proceedings","EntryKey":"book","Fields":{"month":"4 January--6 December","year":"2019"}}]

Passed all 8 tests. Added a new test.

Also, removed two temp files.