Fix whitespace in note publish

This commit is contained in:
Jonathan Staab 2023-03-09 11:18:35 -06:00
parent c4c72abddc
commit adfbaa603c
2 changed files with 1 additions and 3 deletions

View File

@ -1,8 +1,6 @@
# Current
- [ ] Check mention interpolation indexes nevent1qqsx27cspgfcj93kryt2zpzzt5ua60rtucckvcmsrqc949e6t83jaxspzemhxue69uhhyetvv9ujumn0wd68ytnzv9hxg46e8sv
- [ ] Muffle -> mute
- Add mute button on profile
- [ ] Show loading/success on zap invoice screen
- [ ] Fix iOS/safari/firefox
- [ ] Update https://nostr.com/clients/coracle

View File

@ -172,7 +172,7 @@
// For whatever reason the textarea gives us 2x - 1 line breaks
let content = input.innerText.replace(/(\n+)/g, x =>
repeat("\n", Math.ceil(x.length / 2)).join("")
repeat("\n", Math.round(x.length / 2)).join("")
)
const validMentions = sortBy(prop("end"), reject(prop("invalid"), mentions))