diff options
author | Leon Rische <leon.rische@me.com> | 2020-11-08 03:38:53 +0100 |
---|---|---|
committer | Leon Rische <leon.rische@me.com> | 2020-11-08 03:38:53 +0100 |
commit | 5faf8ca128df183916b994e28eeab996bc1291f6 (patch) | |
tree | 4a48c43de2ec8a47347b5c1c8f1f9a71094f657f /awk/index.awk | |
parent | ef8378da9eaf65952a5d23e61cb982423ec6ba81 (diff) |
Match lowercase file keywords
Diffstat (limited to 'awk/index.awk')
-rw-r--r-- | awk/index.awk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/awk/index.awk b/awk/index.awk index 29c982c..638fb70 100644 --- a/awk/index.awk +++ b/awk/index.awk @@ -44,17 +44,17 @@ ENDFILE { ## File Tags -match($0, /^#\+FILETAGS:[ \t]+(.*)/, a) { +match($0, /^#\+(FILETAGS|filetags):[ \t]+(.*)/, a) { # Combine tags to handle multiple FILETAGS lines - parent_tags[0] = combine_tags(a[1], parent_tags[0]); + parent_tags[0] = combine_tags(a[2], parent_tags[0]); next; } ## File Title -match($0, /^#\+TITLE:[ \t]+(.*)/, a) { +match($0, /^#\+(TITLE|title):[ \t]+(.*)/, a) { # Combine tags to handle multiple FILETAGS lines - file_title = a[1] + file_title = a[2] next; } |