From 9d28d804f74116926d90a096051a231d49870edd Mon Sep 17 00:00:00 2001 From: Selichio Date: Fri, 13 Apr 2018 23:14:40 +0200 Subject: [PATCH] Update include-through.js --- include-through.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include-through.js b/include-through.js index bdfcd2d..0f0dfcb 100644 --- a/include-through.js +++ b/include-through.js @@ -31,7 +31,7 @@ module.exports = function(Model, options) { function controller(ctx, unused, next) { if (ctx.methodString.indexOf('prototype.__get__') !== -1) { // the original version - var relationName = ctx.methodString.match(/__([a-z\d]+)$/)[1]; + var relationName = ctx.methodString.match(/__([a-zA-Z]+)$/)[1]; var partialResult = JSON.parse(JSON.stringify(ctx.result)); injectIncludes(ctx, partialResult, relationName).then(function(partialResult) { ctx.result = partialResult;