From b12f55ae1f9a541d3f77f108491d7508c8b70406 Mon Sep 17 00:00:00 2001 From: Justin Workman <37841550+justinkwork@users.noreply.github.com> Date: Fri, 17 Jul 2020 10:57:18 -0500 Subject: [PATCH] Updated parseOptions function Added new regex pattern that removes the tag from the beginning of the line --- custom_ROToolbox.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_ROToolbox.js b/custom_ROToolbox.js index 188d2b6..a121ba7 100644 --- a/custom_ROToolbox.js +++ b/custom_ROToolbox.js @@ -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]; @@ -1592,4 +1593,4 @@ function tbxDatePicker (targetEle, settings) { $(this).parents(".form-group").removeClass('has-error'); } }); -} \ No newline at end of file +}