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 have an older kindle (d01200) and the current regex was unable to capture the data from the clippings file. Below are the changes one could do to sync their data to Notion.
// src/models/parser.ts
private regex =
/(.+) \((.+)\)\r*\n- Your Highlight (location|Location|page)( |(.+))([0-9]+)-([0-9]+) \| Added on ([a-zA-Z]+), ([a-zA-Z]+|[0-9]+) ([0-9]+|[a-zA-Z]+),? ([0-9]{4}), ([0-9]+):([0-9]+\s? A?P?M?)\r*\n\r*\n(.+)/gm;
// src/models/parser.ts line 38-39
const time = `${match[12]}:${match[13]}`;
const highlight = match[14];
Input data looks something like below:
No Rules Rules (Reed Hastings;Erin Meyer)
- Your Highlight Location 2620-2620 | Added on Sunday, January 22, 2023, 08:20 PM
farm for dissent, socialize the idea, and for big bets, test it out.
==========
No Rules Rules (Reed Hastings;Erin Meyer)
- Your Highlight Location 3725-3725 | Added on Saturday, January 28, 2023, 05:10 AM
Erin’s book, The Culture Map.
==========
Thanks to @arkalim for making this project. Solves the most crucial piece for me, just had to fix the regex for my device.
The text was updated successfully, but these errors were encountered:
I have an older kindle (d01200) and the current regex was unable to capture the data from the clippings file. Below are the changes one could do to sync their data to Notion.
Input data looks something like below:
Thanks to @arkalim for making this project. Solves the most crucial piece for me, just had to fix the regex for my device.
The text was updated successfully, but these errors were encountered: