aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngMock
diff options
context:
space:
mode:
authorGlenn Goodrich2013-05-13 14:16:03 +0100
committerPete Bacon Darwin2013-05-14 20:01:15 +0100
commit53061363c7aa1ab9085273d269c6f04ac2162336 (patch)
tree78668ddd52737e4527ecf8559198309b48aa0fb9 /src/ngMock
parentc32a859bdb93699cc080f9affed4bcff63005a64 (diff)
downloadangular.js-53061363c7aa1ab9085273d269c6f04ac2162336.tar.bz2
feat($resource): collapse empty suffix parameters correctly
Previously only repeated `/` delimiters were collapsed into a single `/`. Now, the sequence `/.` at the end of the template, i.e. only followed by a sequence of word characters, is collapsed into a single `.`. This makes it easier to support suffixes on resource URLs. For example, given a resource template of `/some/path/:id.:format`, if the `:id` is `""` but format `"json"` then the URL is now `/some/path.json`, rather than `/some/path/.json`. BREAKING CHANGE: A `/` followed by a `.`, in the last segment of the URL template is now collapsed into a single `.` delimiter. For example: `users/.json` will become `users.json`. If your server relied upon this sequence then it will no longer work. In this case you can now escape the `/.` sequence with `/\.`
Diffstat (limited to 'src/ngMock')
0 files changed, 0 insertions, 0 deletions