mirror of
https://github.com/OMGeeky/andors-trail-utils.git
synced 2025-12-27 06:29:31 +01:00
fix regex for windows and linux compatibility
CRLF vs LF
This commit is contained in:
@@ -34,7 +34,7 @@ def remove_tileset_with_regex(content, tileset_name, tileset_first_gid):
|
||||
first_gid = tileset_first_gid
|
||||
name = tileset_name
|
||||
modified = re.sub(
|
||||
f' <[^<]*firstgid="{first_gid}"[^<]*({name})[\\S\\s]*?</tileset>\\n',
|
||||
f' <[^<]*firstgid="{first_gid}"[^<]*({name})[\\S\\s]*?</tileset>\\r?\\n',
|
||||
"",
|
||||
content,
|
||||
1,
|
||||
|
||||
Reference in New Issue
Block a user