Merge pull request #4534 from RollingStar/patch-3

Sort and comment "replace"
This commit is contained in:
Adrian Sampson 2022-10-31 09:50:58 -07:00 committed by GitHub
commit e201dd4fe5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,14 +40,24 @@ ignore: [".*", "*~", "System Volume Information", "lost+found"]
ignore_hidden: yes
replace:
# Replace bad characters with _
# prohibited in many filesystem paths
'[<>:\?\*\|]': _
# double quotation mark "
'\"': _
# path separators: \ or /
'[\\/]': _
# starting and closing periods
'^\.': _
'[\x00-\x1f]': _
'[<>:"\?\*\|]': _
'\.$': _
# control characters
'[\x00-\x1f]': _
# dash at the start of a filename (causes command line ambiguity)
'^-': _
# Replace bad characters with nothing
# starting and closing whitespace
'\s+$': ''
'^\s+': ''
'^-': _
path_sep_replace: _
drive_sep_replace: _
asciify_paths: false