Skip to content

Commit 261fab8

Browse files
committed
Refactoring regular expression.
1 parent 2e5a27c commit 261fab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/ui-scroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ angular.module('ui.scroll', []).directive('uiScrollViewport', function () {
567567

568568
function link($scope, element, $attr, controllers, linker) {
569569

570-
var match = $attr.uiScroll.match(/^\s*(\w+)\s+in\s+([(\w|\$)\.]+)\s*$/);
570+
var match = $attr.uiScroll.match(/^\s*(\w+)\s+in\s+([\$\w\.]+)\s*$/);
571571

572572
if (!match) throw new Error('Expected uiScroll in form of \'_item_ in _datasource_\' but got \'' + $attr.uiScroll + '\'');
573573

0 commit comments

Comments
 (0)