From 2a33ee69b9bb0eee018ff84611d26fb8b63c77b9 Mon Sep 17 00:00:00 2001 From: Jared Lobberecht Date: Tue, 1 Nov 2016 13:47:51 -0500 Subject: [PATCH] Added $ to the ng-repeat directive comment regex. --- src/angular-datatables.renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/angular-datatables.renderer.js b/src/angular-datatables.renderer.js index 120f953e1..fcec1b13c 100644 --- a/src/angular-datatables.renderer.js +++ b/src/angular-datatables.renderer.js @@ -176,7 +176,7 @@ function dtNGRenderer($log, $q, $compile, $timeout, DTRenderer, DTRendererServic var _expression = _$tableElem[1]; // Find the resources from the comment displayed by angular in the DOM // This regexp is inspired by the one used in the "ngRepeat" directive - var _match = _expression.match(/^\s*.+?\s+in\s+([a-zA-Z0-9\.-_]*)\s*/m); + var _match = _expression.match(/^\s*.+?\s+in\s+([a-zA-Z0-9\.-_$]*)\s*/m); if (!_match) { throw new Error('Expected expression in form of "_item_ in _collection_[ track by _id_]" but got "{0}".', _expression);