JustUtahCoders / utahexpungements.org

The frontend code for utahexpungements.org
MIT License
11 stars 19 forks source link

Parse fines #107

Closed jamesschlader closed 4 years ago

jamesschlader commented 4 years ago

This pull does three things: (1) abstracted the walkSection function so that it could be used by any section (which seems to have been written for that purpose to begin with) (2) edited the parseCharges function by defining its walk function and then using the walkSection function referencing that walk function. This may not have been necessary, but it could allow for pulling the walk function out of the body of the parseCharges function. (3) fixed a bug that was adding a new CASE NUMBER section whenever that phrase occurs (at the top of every page). Any section whose content cross over to a separate page was being lost due to the bug.