Permalink
Browse files

Better regexp check for :UnicodeName

  • Loading branch information...
1 parent 82a2a08 commit 1c5e73ecd0b33b222737fa738e5afce172350ba1 @chrisbra committed Dec 5, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/unicode.vim
@@ -423,7 +423,7 @@ fu! unicode#GetUniChar(...) "{{{2
return
endif
let type=''
- if exists("a:2") && !empty(a:2) && a:2 !~? 'd\%[igraph]\|r\%[egex]\|n\%[ame]\|h\%[tml]\|v\%[alue]'
+ if exists("a:2") && !empty(a:2) && a:2 !~? '^\(d\%[igraph]\|r\%[egex]\|n\%[ame]\|h\%[tml]\|v\%[alue]\)$'
call <sid>WarningMsg("No item (digraph/html/name/regex/value) specified")
return
elseif exists("a:2")

0 comments on commit 1c5e73e

Please sign in to comment.