mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-08 09:53:47 -05:00
Prefer single quoted strings
This commit is contained in:
@@ -1906,7 +1906,7 @@ function! s:CanCommentLine(forceNested, lineNum) abort
|
||||
|
||||
" make sure we don't comment lines that are just spaces or tabs or empty,
|
||||
" unless configured otherwise
|
||||
if g:NERDCommentEmptyLines ==# 0 && theLine =~# "^\s*$"
|
||||
if g:NERDCommentEmptyLines ==# 0 && theLine =~# '^\s*$'
|
||||
return 0
|
||||
endif
|
||||
|
||||
@@ -1973,7 +1973,7 @@ function! s:CanToggleCommentLine(forceNested, lineNum) abort
|
||||
|
||||
" make sure we don't comment lines that are just spaces or tabs or empty,
|
||||
" unless configured otherwise
|
||||
if g:NERDCommentEmptyLines ==# 0 && theLine =~# "^\s*$"
|
||||
if g:NERDCommentEmptyLines ==# 0 && theLine =~# '^\s*$'
|
||||
return 0
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user