fix(sp): illegial => illegal 🙏

This commit is contained in:
Ben Gotow 2016-01-12 14:39:16 -08:00
parent 33d7cf5973
commit cc2537b141
2 changed files with 2 additions and 2 deletions

View file

@ -128,7 +128,7 @@ FileDownloadStore = Reflux.createStore
pathForFile: (file) -> pathForFile: (file) ->
return undefined unless file return undefined unless file
filesafeName = file.displayName().replace(RegExpUtils.illegialPathCharactersRegexp(), '-') filesafeName = file.displayName().replace(RegExpUtils.illegalPathCharactersRegexp(), '-')
path.join(@_downloadDirectory, file.id, filesafeName) path.join(@_downloadDirectory, file.id, filesafeName)
downloadDataForFile: (fileId) -> downloadDataForFile: (fileId) ->

View file

@ -33,7 +33,7 @@ RegExpUtils =
# https://regex101.com/r/pZ6zF0/1 # https://regex101.com/r/pZ6zF0/1
functionArgs: -> /\(\s*([^)]+?)\s*\)/ functionArgs: -> /\(\s*([^)]+?)\s*\)/
illegialPathCharactersRegexp: -> illegalPathCharactersRegexp: ->
#https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx #https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
/[\\\/:|?*><"]/g /[\\\/:|?*><"]/g