Skip to content

look ahead same patterns as its own when concatenation#78

Merged
namusyaka merged 1 commit intosinatra:masterfrom
namusyaka:native-concat-look-ahead-parts
Jan 1, 2018
Merged

look ahead same patterns as its own when concatenation#78
namusyaka merged 1 commit intosinatra:masterfrom
namusyaka:native-concat-look-ahead-parts

Conversation

@namusyaka
Copy link
Member

The meaning of the following two expressions is different, but it's unexpected behavior.

Mustermann.new("/a") + Mustermann.new("/b") + Mustermann.new(/c/)
Mustermann.new("/a") + (Mustermann.new("/b") + Mustermann.new(/c/))

The differencet leads to occur a bug on sinatra-namespace.
This commit fixes sinatra/sinatra#1361

@namusyaka
Copy link
Member Author

@rkh I'd like you to carefully review this change.

@namusyaka namusyaka requested a review from rkh November 12, 2017 10:32
The meaning of the following two expressions is different, but it's unexpected behavior.

  Mustermann.new("/a") + Mustermann.new("/b") + Mustermann.new(/c/)
  Mustermann.new("/a") + (Mustermann.new("/b") + Mustermann.new(/c/))

The differencet leads to occur a bug on sinatra-namespace.
This commit fixes sinatra/sinatra#1361
@namusyaka namusyaka force-pushed the native-concat-look-ahead-parts branch from 7ae678b to 887fa38 Compare November 12, 2017 23:12
@namusyaka
Copy link
Member Author

I've force-pushed to simplify the code.

Copy link
Member

@rkh rkh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, sorry for the late reply.

@namusyaka namusyaka merged commit 1620bd5 into sinatra:master Jan 1, 2018
@namusyaka namusyaka deleted the native-concat-look-ahead-parts branch January 1, 2018 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nested namespace with optional url parts do not work in sinatra => 2.0

2 participants