From ad06f98fbecf0a4382593dcbb2203ce25134da1f Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 11 Aug 2021 20:19:30 +1200 Subject: [PATCH] Permit parsing of related entity tokens This fixes the regex portion for related entities tokens eg. {participant.event_id.title} Note the reason for this originally is not needed but keeping the regex parts --- CRM/Utils/Token.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/CRM/Utils/Token.php b/CRM/Utils/Token.php index 6e9ea5b403..9c068c744b 100644 --- a/CRM/Utils/Token.php +++ b/CRM/Utils/Token.php @@ -182,16 +182,16 @@ class CRM_Utils_Token { } /** - * Get< the regex for token replacement + * Get the regex for token replacement * * @param string $token_type * A string indicating the the type of token to be used in the expression. * * @return string - * regular expression sutiable for using in preg_replace + * regular expression suitable for using in preg_replace */ - private static function tokenRegex($token_type) { - return '/(?