Skip to content

Commit

Permalink
Updated parseOptions function
Browse files Browse the repository at this point in the history
Added new regex pattern that removes the tag from the beginning of the line
  • Loading branch information
justinkwork authored Jul 17, 2020
1 parent 923ddfe commit b12f55a
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 @@ -1592,4 +1593,4 @@ function tbxDatePicker (targetEle, settings) {
$(this).parents(".form-group").removeClass('has-error');
}
});
}
}

0 comments on commit b12f55a

Please sign in to comment.