Skip to content
New issue

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

fix: Invalid note links breaking other links during replacement (#487) #584

Merged

Conversation

bumper314
Copy link
Contributor

A more robust check in isEvernoteLink protects against invalid links getting into the link map, causing erronious text replacements in apply-links.ts. Previously, all links starting with "https://www.evernote.com" were incorrectly assumed to be note links, now those links are better identified by an expected note link format, while other evernote.com links will be correctly treated as regular web links.

…balasko#487)

A more robust check in isEvernoteLink protects against invalid links getting into the link map, causing erronious text replacements in apply-links.ts.
Previously, all links starting with "https://www.evernote.com" were incorrectly assumed to be note links, now those links are better identified by an expected note link format, while other evernote.com links will be correctly treated as regular web links.
@akosbalasko akosbalasko changed the base branch from master to fix_guid_stuff_bumper314 January 20, 2024 15:05
@akosbalasko akosbalasko merged commit 3239f13 into akosbalasko:fix_guid_stuff_bumper314 Jan 20, 2024
0 of 7 checks passed
akosbalasko added a commit that referenced this pull request Jan 20, 2024
* fix: Invalid note links breaking other links during replacement

Story:  #487 #584
A more robust check in isEvernoteLink protects against invalid links getting into the link map, causing erronious text replacements in apply-links.ts.
Previously, all links starting with "https://www.evernote.com" were incorrectly assumed to be note links, now those links are better identified by an expected note link format, while other evernote.com links will be correctly treated as regular web links.

* tests fixed

---------

Co-authored-by: bumper314 <me@saudette.net>
github-actions bot pushed a commit that referenced this pull request Jan 20, 2024
## [6.5.1](v6.5.0...v6.5.1) (2024-01-20)

### Bug Fixes

* Invalid note links breaking other links during replacement ([#585](#585)) ([38baa37](38baa37)), closes [#487](#487) [#584](#584)
@bumper314 bumper314 deleted the fix_guid_stuff branch January 20, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants