Skip to content

Commit 3925e9b

Browse files
tenfyzhongianding1
authored andcommitted
match case
1 parent 801d79f commit 3925e9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoload/leetcode.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,13 +1299,13 @@ endfunction
12991299

13001300
function! s:UpdateSubmitState(result)
13011301
let state = '?'
1302-
if a:result['state'] == 'Accepted'
1302+
if a:result['state'] ==# 'Accepted'
13031303
let state = 'X'
13041304
endif
13051305
let buffers = filter(range(1, bufnr('$')), 'buflisted(v:val)')
13061306
for b in buffers
13071307
let name = bufname(b)
1308-
if name !~ 'leetcode:\/\/\/problems'
1308+
if name !~# 'leetcode:\/\/\/problems'
13091309
continue
13101310
endif
13111311

@@ -1315,7 +1315,7 @@ function! s:UpdateSubmitState(result)
13151315
endif
13161316

13171317
for problem in problems
1318-
if problem['title'] == a:result['title']
1318+
if problem['title'] ==# a:result['title']
13191319
let problem['state'] = state
13201320
break
13211321
endif

0 commit comments

Comments
 (0)