Improve readability of example conditional tags
This commit is contained in:
parent
bf2ca0a4ee
commit
8bcb9c2298
@ -17,8 +17,9 @@ local function parse_conditional_access(way, key)
|
|||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Examples of conditional tags: "no @ (2018 May 22-2018 Oct 7)
|
-- Examples of conditional tags:
|
||||||
-- or "no @ 2018 Jun 01-2018 Jul 23"
|
-- "no @ (2018 May 22-2018 Oct 7)" or
|
||||||
|
-- "no @ 2018 Jun 01 - 2018 Jul 23"
|
||||||
local condition, time_range = conditional:match("([^@]+)@(.+)")
|
local condition, time_range = conditional:match("([^@]+)@(.+)")
|
||||||
if not condition or not time_range then
|
if not condition or not time_range then
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user