This is an automated email from the ASF dual-hosted git repository. jialiang pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ambari.git
commit 77be49bda8ea10fa21a80c4e806431ceed7e67b8 Author: tongxiaojun <[email protected]> AuthorDate: Tue Dec 24 13:31:19 2024 +0800 AMBARI-26269: Fix regex pattern flag position in ambari_jinja2 filters #3917 * AMBARI-26269: Fix regex pattern flag position in ambari_jinja2 filters --------- Co-authored-by: tongxiaojun <[email protected]> --- ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/filters.py b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/filters.py index 4b93d5210b..01ba948176 100644 --- a/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/filters.py +++ b/ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/filters.py @@ -20,7 +20,7 @@ from ambari_jinja2.runtime import Undefined from ambari_jinja2.exceptions import FilterArgumentError, SecurityError -_word_re = re.compile(r"\w+(?u)") +_word_re = re.compile(r"(?u)\w+") def contextfilter(f): --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
