Ensure paths are trimmed

This commit is contained in:
mtkennerly 2022-08-20 02:54:47 +08:00
parent faf32b040a
commit ec0a463a50
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
2 changed files with 2 additions and 2 deletions

View file

@ -153718,7 +153718,7 @@ Dynasty Warriors 9:
os: windows os: windows
store: steam store: steam
registry: registry:
'HKEY_CURRENT_USER/Software/KoeiTecmo/Dynasty Warriors 9 Empires for Steam ': HKEY_CURRENT_USER/Software/KoeiTecmo/Dynasty Warriors 9 Empires for Steam:
tags: tags:
- config - config
steam: steam:

View file

@ -324,7 +324,7 @@ function parsePath(path: string): [string, PathType] {
path = path.slice(0, path.length - 2); path = path.slice(0, path.length - 2);
} }
return [path, pathType]; return [path.trim(), pathType];
} }
export function pathIsTooBroad(path: string): boolean { export function pathIsTooBroad(path: string): boolean {