Skip to content

Commit

Permalink
Merge pull request #49 from RhubarbPHP/hotfix/ViewIndexRegEx
Browse files Browse the repository at this point in the history
Change getViewIndex regex to accept wider range of characters.
  • Loading branch information
aparnhamGCD authored Feb 20, 2018
2 parents 134fab8 + 739eb47 commit 3be76c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 1.4.1

* Fixed RegEx in Viewbridge getViewIndex

### 1.4.0

* Fixed: client event handler scope is no longer a function
Expand Down
2 changes: 1 addition & 1 deletion src/Views/ViewBridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ ViewBridge.prototype.attachDomChangeEventHandler = function (triggerChangeEvent)
};

ViewBridge.prototype.getViewIndex = function () {
var pattern = /\((\d+)\)$/;
var pattern = /\(([^\)]+)\)$/;

var match = pattern.exec(this.viewNode.id);

Expand Down

0 comments on commit 3be76c6

Please sign in to comment.