mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-25 01:52:35 +02:00
* Revert #1343 as OneDrive API is now fixed in relation to handling '%' within filenames
This commit is contained in:
parent
1203aebeb7
commit
94cc6ee3d6
|
@ -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])(?:[.].+)?$`
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue