mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 07:36:12 +08:00
fix(sp): illegial => illegal 🙏
This commit is contained in:
parent
33d7cf5973
commit
cc2537b141
2 changed files with 2 additions and 2 deletions
|
@ -128,7 +128,7 @@ FileDownloadStore = Reflux.createStore
|
|||
pathForFile: (file) ->
|
||||
return undefined unless file
|
||||
|
||||
filesafeName = file.displayName().replace(RegExpUtils.illegialPathCharactersRegexp(), '-')
|
||||
filesafeName = file.displayName().replace(RegExpUtils.illegalPathCharactersRegexp(), '-')
|
||||
path.join(@_downloadDirectory, file.id, filesafeName)
|
||||
|
||||
downloadDataForFile: (fileId) ->
|
||||
|
|
|
@ -33,7 +33,7 @@ RegExpUtils =
|
|||
# https://regex101.com/r/pZ6zF0/1
|
||||
functionArgs: -> /\(\s*([^)]+?)\s*\)/
|
||||
|
||||
illegialPathCharactersRegexp: ->
|
||||
illegalPathCharactersRegexp: ->
|
||||
#https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
|
||||
/[\\\/:|?*><"]/g
|
||||
|
||||
|
|
Loading…
Reference in a new issue