Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Make sure regexp is performed against a string. #29

Merged
merged 1 commit into from

2 participants

@pyr

Make sure regexp is performed against a string. This helps the rare case where keyword params already exist at this point.

@pyr pyr Make sure regexp is performed against a string. This helps the rare c…
…ase where keyword params already exist at this point.
ff4a757
@weavejester weavejester merged commit bcaef85 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 23, 2011
  1. @pyr

    Make sure regexp is performed against a string. This helps the rare c…

    pyr authored
    …ase where keyword params already exist at this point.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  ring-core/src/ring/middleware/nested_params.clj
View
2  ring-core/src/ring/middleware/nested_params.clj
@@ -6,7 +6,7 @@
\"foo[bar][][baz]\"
=> [\"foo\" \"bar\" \"\" \"baz\"]"
[param-name]
- (let [[_ k ks] (re-matches #"(.*?)((?:\[.*?\])*)" param-name)
+ (let [[_ k ks] (re-matches #"(.*?)((?:\[.*?\])*)" (name param-name))
keys (if ks (map second (re-seq #"\[(.*?)\]" ks)))]
(cons k keys)))
Something went wrong with that request. Please try again.