[Scummvm-git-logs] scummvm-web master -> 2c97fda11b44463299d8ad5db260daa58bdc8a5b
sev-
noreply at scummvm.org
Fri Jun 24 11:49:53 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .
Summary:
2c97fda11b Add DEL to escape characters
Commit: 2c97fda11b44463299d8ad5db260daa58bdc8a5b
https://github.com/scummvm/scummvm-web/commit/2c97fda11b44463299d8ad5db260daa58bdc8a5b
Author: eientei95 (einstein95 at users.noreply.github.com)
Date: 2022-06-24T13:49:50+02:00
Commit Message:
Add DEL to escape characters
Changed paths:
dumper-companion/src/encoding.ts
diff --git a/dumper-companion/src/encoding.ts b/dumper-companion/src/encoding.ts
index 3a6f69e7..afd78c78 100644
--- a/dumper-companion/src/encoding.ts
+++ b/dumper-companion/src/encoding.ts
@@ -49,7 +49,7 @@ export function escapeString(str: string): string {
if (ch == '\x81') {
// Escape the escape character
res += '\x81\x79';
- } else if ('<>:"/\\|?*'.includes(ch) || codePoint(ch) < 0x20) {
+ } else if ('<>:"/\\|?*\x7f'.includes(ch) || codePoint(ch) < 0x20) {
// Escape characters forbidden on Windows
// https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions
res += '\x81' + String.fromCodePoint(0x80 + codePoint(ch));
More information about the Scummvm-git-logs
mailing list