DataHarmonizer icon indicating copy to clipboard operation
DataHarmonizer copied to clipboard

Regular expressions in guidance popup or sidebar can be parsed as markup links

Open ddooley opened this issue 9 months ago • 0 comments

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
      );
    }

ddooley avatar Mar 25 '25 01:03 ddooley