From 9744bfa292f737e49c48feedb2f3cc85b1f499fa Mon Sep 17 00:00:00 2001 From: Erik Demaine Date: Thu, 14 Dec 2023 11:45:09 -0500 Subject: [PATCH] Use instead of zero-width spaces to break URLs --- CHANGELOG.md | 4 ++++ lib/formats.coffee | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 999e35e..d49d8c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ To see every change with descriptions aimed at developers, see As a continuously updated web app, Coauthor uses dates instead of version numbers. +## 2023-12-14 + +* Copy/pasting a URL from a message no longer adds extraneous zero-width spaces + ## 2023-12-05 * Remove small (100ms) race where Stop Editing could lose your changes diff --git a/lib/formats.coffee b/lib/formats.coffee index 28a465e..280c629 100644 --- a/lib/formats.coffee +++ b/lib/formats.coffee @@ -782,7 +782,7 @@ postprocessLinks = (text) -> match else match.replace /\/+/g, (slash) -> - "#{slash}​" ## Add zero-width space after every slash group + "#{slash}" ## Allow linebreak after every slash group @allUsernames = -> Meteor.users.find {}, fields: username: 1