Skip to content

Commit

Permalink
fix #440
Browse files Browse the repository at this point in the history
  • Loading branch information
name-snrl committed Mar 19, 2024
1 parent 797260f commit 5e7e75e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/nvim-autopairs/conds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ end
cond.before_regex = function(regex, length)
length = length or 1
if length < 0 then length = nil end
length = length and -length
---@param opts CondOpts
return function(opts)
log.debug('before_regex')
Expand Down Expand Up @@ -117,6 +118,7 @@ end
cond.not_before_regex = function(regex, length)
length = length or 1
if length < 0 then length = nil end
length = length and -length
---@param opts CondOpts
return function(opts)
log.debug('not_before_regex')
Expand Down

0 comments on commit 5e7e75e

Please sign in to comment.