Skip to content

Comments

Be more accurate in regexp parsing#1089

Closed
xsawyerx wants to merge 2 commits intomasterfrom
fix/accurate_split_regex
Closed

Be more accurate in regexp parsing#1089
xsawyerx wants to merge 2 commits intomasterfrom
fix/accurate_split_regex

Conversation

@xsawyerx
Copy link
Member

@xsawyerx xsawyerx commented Jan 1, 2016

The current regexp match in a route was checking for a comment
with single characters that compose the words "token", "splat",
and "megasplat". What we want is to match them exactly.

I'm assuming the brackets for character classes ("[]") were an
oversight.

Tests all still pass.

The current regexp match in a route was checking for a comment
with single characters that compose the words "token", "splat",
and "megasplat". What we want is to match them *exactly*.

I'm assuming the brackets for character classes ("[]") were an
oversight.

Tests all still pass.
@veryrusty
Copy link
Member

@xsawyerx++

I missed the '+' sign there. There's no reason for it since it
was for the character group brackets ("[]") which I just
removed.

Thanks, @veryrusty, for spotting it!
@veryrusty
Copy link
Member

👍

@veryrusty veryrusty added this to the 0.166000 milestone Jan 5, 2016
@veryrusty
Copy link
Member

Merged as 2ed1573.

@xsawyerx++ again 👯

@veryrusty veryrusty closed this Jan 5, 2016
@veryrusty veryrusty deleted the fix/accurate_split_regex branch January 5, 2016 11:49
xsawyerx added a commit that referenced this pull request Jan 12, 2016
    [ BUG FIXES ]
    * GH #1013, #1092: Remove race condition caused by caching available
      engines. (Sawyer X, Menno Blom, Russell Jenkins)
    * GH #1089: Exact macthing of route regex comments for tokens/splats.
      (Sawyer X)
    * GH #1079, #1082: Allow routes to return '0' as response content,
      and serializer hooks are called when default response content is
      to be returned. (Alberto Simões, Russell Jenkins)
    * GH #1093, 1095: Use a dynamic TT2 INCLUDE_PATH to allow relative
      views with relative includes; fixing regression introduced by #1037.
      (Russell Jenkins)
    * GH #1096, #1097: Return compatibility on Perl 5.8.x!
      (Peter Mottram - @SysPete)

    [ DOCUMENTATION ]
    * GH #1076: Typo in Dancer2::Core::Hook POD. (Jonathan Scott Duff)

    [ ENHANCEMENTS ]
    * GH #1074: Add sample session engine config to skeleton app.
      (Peter Mottram - @SysPete)
    * GH #1088: Return route objects when defining new routes.
      (Sawyer X)
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.

2 participants