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.

Dash in paths not recognized as separators

See original GitHub issue

I had this kind of routes working with original FlowRouter: /@:username/:storyId-:storySlug?.

Now, the second part is considered to be a unique block :storyId-:storySlug? according to this regex:

https://github.com/VeliovGroup/flow-router/blob/110a27945417f9fbc45a6262d7245a9335d1c704/client/router.js#L8

Removing the \- makes it work again: https://regex101.com/r/CadP4l/2.

Is it something done on purpose? Is there any other recommended way of defining routes?

Thanks.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
nicoopratcommented, Oct 18, 2017

Yes, the override is working. Didn’t see any bug. Thanks again!

0reactions
dr-dimitrucommented, Oct 18, 2017

@nicooprat does it work for you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best Practice: Working with Paths in Python - Part 1 - b.telligent
A solution from Python is os.sep or os.path.sep. Both return the path separator of the respective system. They are functionally identical, but the...
Read more >
Routes with Dash `-` Instead of Underscore `_` in Ruby on Rails
You can use named routes. It will allow using '-' as word seperators. In routes.rb,
Read more >
Params with separator breaking docs · Issue #100 - GitHub
I'm trying to do a route like the one specified in the Fastify docs with two params between a single set of slashes...
Read more >
Maximum Path Length Limitation - Win32 apps | Microsoft Learn
A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating ...
Read more >
Usage of dash (-) in place of a filename - Unix Stack Exchange
The kernel does not recognise - as special so any system calls referring to - as a filename will use - literally as...
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