mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Removed regex compilation
This commit is contained in:
parent
f29815b49b
commit
d3e8679e05
@ -1763,8 +1763,7 @@ def _set_line_indent(src, line, indent):
|
||||
|
||||
|
||||
def _get_eol(line):
|
||||
compiled = re.compile('((?<!\r)\n|\r(?!\n)|\r\n)$')
|
||||
match = compiled.search(line)
|
||||
match = re.search('((?<!\r)\n|\r(?!\n)|\r\n)$', line)
|
||||
return match and match.group() or ''
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user