Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
36534668
Commit
36534668
authored
Aug 06, 2014
by
Sébastien Gross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change name from re_escape to regex_escape to fit existing function names.
parent
c1e40852
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/ansible/plugins/filter/core.py
+2
-2
No files found.
lib/ansible/plugins/filter/core.py
View file @
36534668
...
@@ -222,7 +222,7 @@ def version_compare(value, version, operator='eq', strict=False):
...
@@ -222,7 +222,7 @@ def version_compare(value, version, operator='eq', strict=False):
except
Exception
,
e
:
except
Exception
,
e
:
raise
errors
.
AnsibleFilterError
(
'Version comparison:
%
s'
%
e
)
raise
errors
.
AnsibleFilterError
(
'Version comparison:
%
s'
%
e
)
def
re_escape
(
string
):
def
re
gex
_escape
(
string
):
'''Escape all regular expressions special characters from STRING.'''
'''Escape all regular expressions special characters from STRING.'''
return
re
.
escape
(
string
)
return
re
.
escape
(
string
)
...
@@ -360,7 +360,7 @@ class FilterModule(object):
...
@@ -360,7 +360,7 @@ class FilterModule(object):
'search'
:
search
,
'search'
:
search
,
'regex'
:
regex
,
'regex'
:
regex
,
'regex_replace'
:
regex_replace
,
'regex_replace'
:
regex_replace
,
're
_escape'
:
re
_escape
,
're
gex_escape'
:
regex
_escape
,
# ? : ;
# ? : ;
'ternary'
:
ternary
,
'ternary'
:
ternary
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment