question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ending backslash in displayed user name breaks mention badge.

See original GitHub issue

Description

Ending backslash in displayed user name breaks mention badge styling.

Steps to reproduce

  • Change the displayed user-name to something that ends with the backslash, e.g. user\
  • Mention such user
  • Get [user](https://matrix.to/#/@user:matrix.org): displayed, instead of a styled badge

Version information

  • Platform: Web, Android Checked in Firefox and Chrome.

  • Version: Web: 0.12.1 Android: 0.7.00

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sandhosecommented, Sep 2, 2017

I have the same issue with someone that has a backtick in his username. The two backticks in the pill (once in the link, once in the text) are interpreted as an inline code block.

image

Tested on develop and on stable.

0reactions
sbtscommented, Sep 28, 2017

Definitely still an issue for backticks in Nicks. see #5135 for another example.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Return string without trailing slash - Stack Overflow
I'd use a regular expression: function someFunction(site) { // if site has an end slash (like: www.example.com/), // then remove it and return...
Read more >
Why are there backslash `\` line breaks on this apt install ...
The backslash is used by bash to indicate a line continuation and is commonly used in bash scripts. However, the backslash is actually...
Read more >
Should You Have a Trailing Slash at the End of URLs? - Ahrefs
A trailing slash is a forward slash (“/”) placed at the end of a URL such as domain.com/ or domain.com/page/. But should you...
Read more >
When should I use a trailing slash on a directory? [duplicate]
Most commands I use in linux behave exactly the same whether I include the trailing slash / character on the end of a...
Read more >
bash - Substitute Backslash for Forward slash in last command
a forward slash is also the delimiter of your substitute command, ... shell breaks it into words, you may be tempted to start...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found