Skip to content

Commit

Permalink
Use <wbr> instead of zero-width spaces to break URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Dec 14, 2023
1 parent 12d9d45 commit 9744bfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/formats.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ postprocessLinks = (text) ->
match
else
match.replace /\/+/g, (slash) ->
"#{slash}&#8203;" ## Add zero-width space after every slash group
"#{slash}<wbr>" ## Allow linebreak after every slash group

@allUsernames = ->
Meteor.users.find {}, fields: username: 1
Expand Down

0 comments on commit 9744bfa

Please sign in to comment.