You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ji...@apache.org on 2024/12/27 03:22:58 UTC
(ambari) 02/02: AMBARI-26269: Fix regex pattern flag position in ambari_jinja2 filters #3917
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 <to...@redoop.com>
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 <to...@gmail.com>
---
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: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org