branch: externals/org-modern commit f25040df96f7c9981872efcebe682419fb919e3b Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Use more restrictive tag regular expression (Fix #32) --- org-modern.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-modern.el b/org-modern.el index 094a559f95..8997282d0e 100644 --- a/org-modern.el +++ b/org-modern.el @@ -510,7 +510,7 @@ You can specify a font `:family'. The font families `Iosevka', `Hack' and (1 '(face nil display (space :width (3)))) (2 'org-modern-block-keyword append)))) (when org-modern-tag - '(("^\\*+.*?\\( \\)\\(:.*:\\)[ \t]*$" (0 (org-modern--tag))))) + '(("^\\*+.*?\\( \\)\\(:\\(?:[^ :]+:\\)+\\)[ \t]*$" (0 (org-modern--tag))))) (when (and org-modern-timestamp (not org-display-custom-times)) '(("\\(?:<\\|\\[\\)\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}\\(?: [[:word:]]+\\)?\\(?: [.+-]+[0-9ymwdh/]+\\)*\\)\\(\\(?: [0-9:-]+\\)?\\(?: [.+-]+[0-9ymwdh/]+\\)*\\)\\(?:>\\|\\]\\)" (0 (org-modern--timestamp)))