Revert #1343 as OneDrive API is now fixed in relation to handling '%' within filenames (#1386)

* Revert #1343 as OneDrive API is now fixed in relation to handling '%' within filenames
This commit is contained in:
abraunegg 2021-04-06 20:34:03 +10:00 committed by GitHub
parent 1203aebeb7
commit 94cc6ee3d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,7 +205,7 @@ bool isValidName(string path)
// Leading whitespace and trailing whitespace/dot // Leading whitespace and trailing whitespace/dot
`^\s.*|^.*[\s\.]$|` ~ `^\s.*|^.*[\s\.]$|` ~
// Invalid characters // Invalid characters
`.*[<>:"\|\?*/\\%].*|` ~ `.*[<>:"\|\?*/\\].*|` ~
// Reserved device name and trailing .~ // Reserved device name and trailing .~
`(?:^CON|^PRN|^AUX|^NUL|^COM[0-9]|^LPT[0-9])(?:[.].+)?$` `(?:^CON|^PRN|^AUX|^NUL|^COM[0-9]|^LPT[0-9])(?:[.].+)?$`
); );