DataHarmonizer
DataHarmonizer copied to clipboard
Regular expressions in guidance popup or sidebar can be parsed as markup links
The "guidance" help display text includes a variety of field(slot) information pieces such as "Regular expression validator:" The regex field.pattern is shown to users for e.g. a field value like "coding_name" pattern: ^a-z+$ ) However a regular expression might contain bracketed text and then parenthesized text ... , and this text is being parsed by the markup engine as a link to display. Need a way to turn off markup engine when displaying regex pattern sequences.
See DataHarmonizer.js getCommentDict(field) {)
if (field.pattern) {
guidance.push(
i18next.t('reference_guide_msg_pattern_regex') + '<br>' + field.pattern
);
}