Fix #1210 - Fix a Windows path issue which broke TSLint
This commit is contained in:
@@ -287,9 +287,9 @@ Execute(The tslint handler should not report no-implicit-dependencies errors):
|
||||
Execute(The tslint handler should set filename keys for temporary files):
|
||||
" The temporay filename below is hacked into being a relative path so we can
|
||||
" test that we resolve the temporary filename first.
|
||||
let b:relative_to_root = substitute(expand('%:p'), '\v[^/\\]*([/\\])[^/\\]*', has('win32') ? '..\' : '../', 'g')
|
||||
let b:relative_to_root = substitute(expand('%:p'), '\v[^/\\]*([/\\])[^/\\]*', '../', 'g')
|
||||
let b:tempname_suffix = substitute(tempname(), '^\v([A-Z]:)?[/\\]', '', '')
|
||||
let b:relative_tempname = b:relative_to_root . b:tempname_suffix
|
||||
let b:relative_tempname = substitute(b:relative_to_root . b:tempname_suffix, '\\', '/', 'g')
|
||||
|
||||
AssertEqual
|
||||
\ [
|
||||
|
||||
Reference in New Issue
Block a user