Skip to content

Commit

Permalink
fix(elementTransformer) matchTransformer now doesn't throw if route i…
Browse files Browse the repository at this point in the history
…s undefined
  • Loading branch information
bostrom committed Jan 5, 2017
1 parent 7fd668b commit fb242ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/restangular.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@
var matchTransformers = config.matchTransformers;
if (matchTransformers) {
_.each(matchTransformers, function(transformer) {
if (route.match(transformer.regexp)) {
if (transformer.regexp.test(route)) {
changedElem = transformer.transformer(isCollection, changedElem);
}
});
Expand Down

0 comments on commit fb242ae

Please sign in to comment.