mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-12-28 02:34:36 +01:00
commit
955cad3c96
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@
|
||||||
# Two escape it again in the regex parser, so \\\\ is \
|
# Two escape it again in the regex parser, so \\\\ is \
|
||||||
# Then anything but " or n is replaced with the first capture group (anything but " or n)
|
# Then anything but " or n is replaced with the first capture group (anything but " or n)
|
||||||
# Test in repl: re.sub("\\\\([^\"n])", "\\1", "\\t < removed slash, t stays and > stays \\n \\\"")
|
# Test in repl: re.sub("\\\\([^\"n])", "\\1", "\\t < removed slash, t stays and > stays \\n \\\"")
|
||||||
re.sub("\\\\([^\"n])", "\\1", text)
|
text = re.sub("\\\\([^\"n])", "\\1", text)
|
||||||
try:
|
try:
|
||||||
text = text.replace("\"id\": 0,", "\"id\": 0,\n\t\t\"submitted_by\": \""+submission.author.name+"\",")
|
text = text.replace("\"id\": 0,", "\"id\": 0,\n\t\t\"submitted_by\": \""+submission.author.name+"\",")
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|
Loading…
Reference in a new issue