We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The noteId of history object returned from history API might be malformed. We need to provide at least one utility function to parse note id.
The text was updated successfully, but these errors were encountered:
I think regular expression might be a way to handle the node id for history:
function getNoteId(payload: String) { const regex = /^(s\/|c\/|p\/)?(?<id>(@[A-Za-z0-9\_\-]+\/)?[A-Za-z0-9\-\_]+).*$/; const noteId = payload.replace(regex, '$<id>'); return noteId; }
However it does not handle pages under book mode. In fact it only parse the note id of that book. How do you think @Yukaii ?
Sorry, something went wrong.
No branches or pull requests
The noteId of history object returned from history API might be malformed. We need to provide at least one utility function to parse note id.
The text was updated successfully, but these errors were encountered: