Skip to content

Commit 5038a74

Browse files
committed
FIX regex l-lin#100
1 parent 6827b85 commit 5038a74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/angular-datatables.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@
951951
var _this = this, expression = $elem.find('tbody').html(),
952952
// Find the resources from the comment <!-- ngRepeat: item in items --> displayed by angular in the DOM
953953
// This regexp is inspired by the one used in the "ngRepeat" directive
954-
match = expression.match(/^\s*.+\s+in\s+(\S*)\s*/), ngRepeatAttr = match[1];
954+
match = expression.match(/^\s*.+?\s+in\s+(\S*)\s*/), ngRepeatAttr = match[1];
955955
if (!match) {
956956
throw new Error('Expected expression in form of "_item_ in _collection_[ track by _id_]" but got "{0}".', expression);
957957
}

0 commit comments

Comments
 (0)