Automattic / Automattic/simplenote-electron

The character ' in a link keeps our link detection from working

Open
#3,090 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
5.3k
Forks
588
Avg merge
9h 45m
Merged PRs (30d)
4

Description

### Expected
I would expect that the entirety of a link would be included in link detection

### Observed
Links that contain the character ' are broken up in our link detection

### Reproduced
Paste a link like this into a note : https://coffeescript.org/#try:for%20i%20in%20%5B1..100%5D%0A%20%20multiple3%20%3D%20(i%20%25%203)%20is%200%0A%20%20multiple5%20%3D%20(i%20%25%205)%20is%200%0A%0A%20%20%23%20Buffer%20output%20in%20string%20to%20avoid%20newline%20from%20console.log()%0A%20%20line%20%3D%20''%0A%0A%20%20line%20%2B%3D%20i%20%20%20%20%20%20%20%20%20if%20not%20(multiple3%20or%20multiple5)%0A%20%20line%20%2B%3D%20'Crackle'%20if%20multiple3%0A%20%20line%20%2B%3D%20'Pop'%20%20%20%20%20if%20multiple5%0A%0A%20%20console.log%20lined

![Markup on 2022-05-23 at 08:27:18](https://user-images.githubusercontent.com/7907292/169819143-3f43edb3-116b-4150-aa0a-d35157328226.png)

### Where did you see the bug

- System Make: Mac OS
- System Model: Macbook Pro
- OS version: 12.3.1
- Browser : Firefox
- Browser version: 100.0.2

Contributor guide

Open the contributing guide

Research direction

The issue names no source files or tests. Reproduce it by pasting the provided CoffeeScript URL into a note, then locate the link-detection entry point and verify that the entire URL, including its apostrophe, is recognized as one link.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.