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.

Routes with underline on argument don't work

See original GitHub issue

An example:

This doesn’t work:

module.exports = router(
  del('/:my_id', myFunctionWithRoute),
  post('/*', notFoundFunction),
);

But this one does:

module.exports = router(
  del('/:myId', myFunctionWithRoute),
  post('/*', notFoundFunction),
);

Note the difference between my_id and myId.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
ernestofreyregcommented, May 19, 2017

Perhaps its possible to use https://www.npmjs.com/package/path-to-regexp instead?

0reactions
pedronauckcommented, Oct 23, 2017

Closed on release v3.0.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deleting underline in URL's [text-decoration: none; doesn't work]
I have already put text-decoration: none; . However it doesn't work. Here is a DEMO. HTML <a href="./index ...
Read more >
Can't underline in microsoft word - Google Groups
When I try ctrl+u, it doesn't underline. When I use the underline button, it does underline, but as soon as I close the...
Read more >
Why does underlined text not get wrapped once it hits the end ...
In text mode, the \underline command will enclose its argument in a horizontal box, which doesn't allow linebreaks.
Read more >
pygame.font — pygame v2.1.4 documentation
Enables the bold rendering of text. This is a fake stretching of the font that doesn't look good on many font types. If...
Read more >
Tutorial — fish-shell 3.5.1 documentation
A rich set of tab completions work “out of the box”. Press Tab and fish will attempt to complete the command, argument, or...
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