mirror of
https://github.com/opdavies/toggle-checkbox.nvim.git
synced 2025-02-02 08:07:31 +00:00
feat: determine if a line contains a checked box
This commit is contained in:
parent
6151b3c0e2
commit
805aeab265
|
@ -1,5 +1,9 @@
|
|||
local checked_character = "x"
|
||||
|
||||
local line_contains_a_checked_checkbox = function(line)
|
||||
return string.find(line, "[" .. checked_character .. "]")
|
||||
end
|
||||
|
||||
local M = {}
|
||||
|
||||
M.check = function(line)
|
||||
|
|
Loading…
Reference in a new issue