Skip to content

Commit

Permalink
Merge pull request #10 from justinkwork/justinkwork-patch-1
Browse files Browse the repository at this point in the history
Updated parseOptions function
  • Loading branch information
doyle-johnpaul authored Jul 17, 2020
2 parents 5862777 + b12f55a commit fa565ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_ROToolbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ function transformRO() {

function parseOptions(controlName, control) {
var properties = "{}";
var regExp = /({[^}]+})/;
var rex = controlName + "(.*)";
var regExp = new RegExp(rex);
var matches = regExp.exec(control.text());
if (matches && matches[1])
properties = matches[1];
Expand Down Expand Up @@ -1646,4 +1647,4 @@ function tbxDatePicker (targetEle, settings) {
$(this).parents(".form-group").removeClass('has-error');
}
});
}
}

0 comments on commit fa565ae

Please sign in to comment.