mirror of
https://github.com/opdavies/toggle-checkbox.nvim.git
synced 2025-02-08 18:55:02 +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 checked_character = "x"
|
||||||
|
|
||||||
|
local line_contains_a_checked_checkbox = function(line)
|
||||||
|
return string.find(line, "[" .. checked_character .. "]")
|
||||||
|
end
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
M.check = function(line)
|
M.check = function(line)
|
||||||
|
|
Loading…
Reference in a new issue