You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using the script to import my clippings on to a database and noticed some clipping types were being incorrectly parsed, specifically on clippings with a Page information :
Highlight on Page 142 | Loc. 2170-74 | Added on Tuesday, July 03, 2012, 07:41 PM
I changed the regular expression on the parser.rb file to capture the first word after the initial dash and ignore everything up to Loc . It's an intermediate solution until I actually look into the semantics of that Page information (the correct thing would be to capture the page value) , but either way , here's the changed line :)
second_line=lines[1].strip.scan(/^- (\w*)(?:.+?)Loc. ([0-9-]*?) +\| Added on (.+)$/i).first
Thanks guys, the rest works like a charm :)
The text was updated successfully, but these errors were encountered:
Hi :)
I was using the script to import my clippings on to a database and noticed some clipping types were being incorrectly parsed, specifically on clippings with a Page information :
I changed the regular expression on the parser.rb file to capture the first word after the initial dash and ignore everything up to Loc . It's an intermediate solution until I actually look into the semantics of that Page information (the correct thing would be to capture the page value) , but either way , here's the changed line :)
Thanks guys, the rest works like a charm :)
The text was updated successfully, but these errors were encountered: