Skip to content

Commit 8e3e0e5

Browse files
committed
Change to correct hyphen
1 parent 3141e6b commit 8e3e0e5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.idea/.name

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Arma3ModstingGenerator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
def sanitize_filename(name):
1111
sanitized_name = unescape(name) # Decode HTML entities like & to &
12-
sanitized_name = re.sub(invalid_chars, '_', sanitized_name)
12+
sanitized_name = re.sub(invalid_chars, '-', sanitized_name)
1313
return sanitized_name
1414

1515

Arma3ModstingGeneratorWebApp.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ <h3>Sanitized Mods:</h3>
7373
function sanitizeFilename(name) {
7474
const invalidChars = /[<>:"/\\|?*]/g;
7575
const unescapedName = name.replace(/&amp;/g, '&');
76-
return unescapedName.replace(invalidChars, '_');
76+
return unescapedName.replace(invalidChars, '-');
7777
}
7878

7979
function processFile(content) {

0 commit comments

Comments
 (0)