From a4dd1690a0afaaa5cd6580e4f82da71fa686bce5 Mon Sep 17 00:00:00 2001 From: lambtho12 Date: Sun, 12 Jun 2022 15:56:33 +0200 Subject: [PATCH] fix(tags): spaces after brackets (closes #142) Signed-off-by: Thomas Lambert --- lua/taglinks/tagutils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/taglinks/tagutils.lua b/lua/taglinks/tagutils.lua index e986d8e..3ae7823 100644 --- a/lua/taglinks/tagutils.lua +++ b/lua/taglinks/tagutils.lua @@ -5,7 +5,7 @@ local hashtag_re = "(^|\\s|'|\")((?!(#[a-fA-F0-9]{3})(\\W|$)|(#[a-fA-F0-9]{6})(\\W|$))#[a-zA-ZÀ-ÿ]+[a-zA-ZÀ-ÿ0-9/\\-_]*)" local colon_re = "(^|\\s):[a-zA-ZÀ-ÿ]+[a-zA-ZÀ-ÿ0-9/\\-_]*:" local yaml_re = - "(^|\\s)tags:\\s*\\[([a-zA-ZÀ-ÿ]+[a-zA-ZÀ-ÿ0-9/\\-_]*(,\\s)*)*]" + "(^|\\s)tags:\\s*\\[\\s*([a-zA-ZÀ-ÿ]+[a-zA-ZÀ-ÿ0-9/\\-_]*(,\\s)*)*\\s*]" local function command_find_all_tags(opts) opts = opts or {}