Improve readability of example conditional tags

This commit is contained in:
Ivar Masvie Brekkå 2024-07-13 16:34:11 +02:00
parent bf2ca0a4ee
commit 8bcb9c2298

View File

@ -17,8 +17,9 @@ local function parse_conditional_access(way, key)
return nil
end
-- Examples of conditional tags: "no @ (2018 May 22-2018 Oct 7)
-- or "no @ 2018 Jun 01-2018 Jul 23"
-- Examples of conditional tags:
-- "no @ (2018 May 22-2018 Oct 7)" or
-- "no @ 2018 Jun 01 - 2018 Jul 23"
local condition, time_range = conditional:match("([^@]+)@(.+)")
if not condition or not time_range then
return nil