Skip to content

Commit 43361ba

Browse files
fix(filters): Fix parsing dates in tags filter
1 parent 7f975b1 commit 43361ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lua/orgmode/files/elements/search.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,9 @@ function PropertyMatch:parse(input)
390390
end
391391

392392
-- Date property
393-
date_str, input = parse_pattern(input, '"(<[^>]+>)"')
393+
date_str, input = parse_pattern(input, '"<[^>]+>"')
394394
if date_str then
395+
date_str = date_str:sub(2, -2)
395396
---@type string?, OrgDate?
396397
local date_content, date_value
397398
if date_str == '<today>' then
@@ -407,7 +408,7 @@ function PropertyMatch:parse(input)
407408
else
408409
date_content = date_str:match('^<([^>]+)>$')
409410
if date_content then
410-
date_value = Date.from_string(date_str)
411+
date_value = Date.from_string(date_content)
411412
end
412413
end
413414
end

0 commit comments

Comments
 (0)