fix(sp): illegial => illegal 🙏

This commit is contained in:
Ben Gotow 2016-01-12 14:39:16 -08:00
parent 329c647181
commit 7bbcbbe29a
2 changed files with 2 additions and 2 deletions

View file

@ -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) ->

View file

@ -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