microsoft / microsoft/monaco-editor
Links inside escaped strings consider ending `\` as part of the link
Open
Nobody has claimed this yet.
feature-request
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
monaco-editor version: 0.21.0
Browser: Chrome
OS: MacOS
Playground code that reproduces the issue:
monaco.editor.create(document.getElementById("container"), {
value: `let x = "\\\"https://www.microsoft.com\\\""`,
language: "javascript"
});
Expected: Link should be https://www.microsoft.com
Actual: Identifed link is https://www.microsoft.com\
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the supplied Monaco Editor playground snippet and reproduce the link detection in the escaped JavaScript string. The issue names no source file or test, so trace the link-detection path from this playground example; done means the detected URL excludes the trailing backslash while the surrounding escaped string still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100