From 36534668f0eaed60be087ba1dd0197b522a6a18a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gross?= Date: Wed, 6 Aug 2014 11:11:44 +0200 Subject: [PATCH] Change name from re_escape to regex_escape to fit existing function names. --- lib/ansible/plugins/filter/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/filter/core.py b/lib/ansible/plugins/filter/core.py index a4f16e907d..b8b506e508 100644 --- a/lib/ansible/plugins/filter/core.py +++ b/lib/ansible/plugins/filter/core.py @@ -222,7 +222,7 @@ def version_compare(value, version, operator='eq', strict=False): except Exception, e: raise errors.AnsibleFilterError('Version comparison: %s' % e) -def re_escape(string): +def regex_escape(string): '''Escape all regular expressions special characters from STRING.''' return re.escape(string) @@ -360,7 +360,7 @@ class FilterModule(object): 'search': search, 'regex': regex, 'regex_replace': regex_replace, - 're_escape': re_escape, + 'regex_escape': regex_escape, # ? : ; 'ternary': ternary,