We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98c92e4 commit 36f8e3cCopy full SHA for 36f8e3c
in2lambda/json_convert/json_convert.py
@@ -2,6 +2,7 @@
2
3
import json
4
import os
5
+import re
6
import shutil
7
import zipfile
8
from copy import deepcopy
@@ -97,7 +98,7 @@ def converter(
97
98
99
# Output file
100
filename = (
- "question_" + str(i).zfill(3) + "_" + output["title"].replace(" ", "_")
101
+ "question_" + str(i).zfill(3) + "_" + re.sub(r'[^\w\-_.]', '_', output['title'].strip())
102
)
103
104
# write questions into directory
0 commit comments