This is an automated email from the ASF dual-hosted git repository.
jialiang pushed a commit to branch upgrade/jdk-spring-dependencies
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to
refs/heads/upgrade/jdk-spring-dependencies by this push:
new 7d3aced7c5 AMBARI-26269: Fix regex pattern flag position in
ambari_jinja2 filters #3917
7d3aced7c5 is described below
commit 7d3aced7c589b52cf35c12a2b069468d5bde7d41
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 25674e99a9..0f3667e66b 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
@@ -19,7 +19,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]