Problem/Motivation

While setting up a email, i had the subject of the email set a multi token string. This resulted in using the default value. Sample String value:

[webform_submission:user] - [webform_submission:values:site:raw] - [webform_submission:values:issue_summary]

The mapping logic detected this string to match the site field despite expecting the raw value of the token replaced string.

Proposed resolution

Pin the regex to the start and end of the string.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

richgerdes created an issue. See original summary.

richgerdes’s picture

Status: Active » Needs review
FileSize
743 bytes

Attached file addeds "^" and "$" to regex so it only matches exact tokens, not tokens in strings.

  • jrockowitz committed 1d04da1 on 8.x-5.x authored by richgerdes
    Issue #2934723 by richgerdes: Regex in Email handler matches tokens in...
jrockowitz’s picture

Status: Needs review » Fixed

Thanks

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.