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.

underscores in labels are no longer supported

See original GitHub issue

Describe the bug Upon upgrading from 8.2.3 to 8.2.4 you can no longer use underscores in labels. The results in links to the live editor created last week now leading to an error page

To Reproduce Steps to reproduce the behavior: Create a graph using the following:

graph LR

foo[my_lib.foo]
bar[my_lib.bar]
baz[my_lib.qux.baz]

foo --> bar
bar --> baz

Expected behavior Screenshot 2019-08-28 at 11 06 56

Screenshots Screenshot 2019-08-28 at 11 08 50

Desktop (please complete the following information):

  • OS: OSX
  • Browser Chrome
  • Version 75

Additional context The reproduction screenshots were taken using local checkouts of the live editor repo, but the issue is live at mermaidjs.github.io/mermaid-live-editor

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
knsvcommented, Aug 28, 2019

Will fix it in 8.2.6 but meanwhile you can simply put the string within quotes like below:

graph LR

foo["my_lib.foo"]
bar["my_lib.bar"]
baz["my_lib.qux.baz"]

foo --> bar
bar --> baz
1reaction
alistair-broomheadcommented, Aug 28, 2019

@knsv Thanks, and kudos on such a quick response/turn-around

Read more comments on GitHub >

github_iconTop Results From Across the Web

Underscores Not Allowed in Domain Names - SSL.com
Underscore characters MUST NOT be placed in the left most domain label, and;; Such certificates MUST NOT be valid for longer than 30...
Read more >
Are underscores no longer supported in Bind 9.4?
No. It's a 20 year old rule. See RFC 952 and RFC 1123. The later extends the syntax to allow leading digits. Labels...
Read more >
Putting an underscore in a \label - TeX - LaTeX Stack Exchange
Usually the underscore with its standard catcode "subscript" (8) does not cause problems, if used inside \label or \ref :
Read more >
Underscores not allowed in FQDNs - DigiCert.com
For publicly trusted certificates, we can no longer allow use of underscores ( _ ) in: Subject Common Name. Subject Alternative Name (SAN)....
Read more >
How can I specify underscores in JIRA labels?
Turnes out JIRA will accept labels with underscores but it is sometimes diplayed as a space depending on the browser used. It isn't...
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