Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 2a33ee6

Browse files
committed
Added $ to the ng-repeat directive comment regex.
1 parent 80503c6 commit 2a33ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angular-datatables.renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function dtNGRenderer($log, $q, $compile, $timeout, DTRenderer, DTRendererServic
176176
var _expression = _$tableElem[1];
177177
// Find the resources from the comment <!-- ngRepeat: item in items --> displayed by angular in the DOM
178178
// This regexp is inspired by the one used in the "ngRepeat" directive
179-
var _match = _expression.match(/^\s*.+?\s+in\s+([a-zA-Z0-9\.-_]*)\s*/m);
179+
var _match = _expression.match(/^\s*.+?\s+in\s+([a-zA-Z0-9\.-_$]*)\s*/m);
180180

181181
if (!_match) {
182182
throw new Error('Expected expression in form of "_item_ in _collection_[ track by _id_]" but got "{0}".', _expression);

0 commit comments

Comments
 (0)