@@ -25,7 +25,7 @@ DEFAULT VALUES *nvim-autopairs-default-values*
2525 local disable_filetype = { "TelescopePrompt" }
2626 local disable_in_macro = false -- disable when recording or executing a macro
2727 local disable_in_visualblock = false -- disable when insert after visual block mode
28− local ignored_next_char = string.gsub([[ [%w%%%'%[%"%.] ]],"%s+", "")
28+ local ignored_next_char = [=[[%w%%%'%[%"%.]]=]
2929 local enable_moveright = true
3030 local enable_afterquote = true -- add bracket pairs after quote
3131 local enable_check_bracket_line = true --- check bracket in same line
@@ -328,7 +328,7 @@ FASTWRAP ~
328328 fast_wrap = {
329329 map = '<M-e>',
330330 chars = { '{', '[', '(', '"', "'" },
331− pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], '%s+', ''),
331+ pattern = [=[[%'%"%)%>%]%)%}%,]]=],
332332 end_key = '$',
333333 keys = 'qwertyuiopzxcvbnmasdfghjkl',
334334 check_comma = true,