Skip to content

Commit 3be76c6

Browse files
authored
Merge pull request #49 from RhubarbPHP/hotfix/ViewIndexRegEx
Change getViewIndex regex to accept wider range of characters.
2 parents 134fab8 + 739eb47 commit 3be76c6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
### 1.4.1
4+
5+
* Fixed RegEx in Viewbridge getViewIndex
6+
37
### 1.4.0
48

59
* Fixed: client event handler scope is no longer a function

src/Views/ViewBridge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ ViewBridge.prototype.attachDomChangeEventHandler = function (triggerChangeEvent)
172172
};
173173

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

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

0 commit comments

Comments
 (0)