diff options
| author | Joe Carstairs <me@joeac.net> | 2026-04-25 09:40:55 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-04-25 09:41:07 +0100 |
| commit | ec7a9d3419fb6c7843a476e47ec77d5a3a18a504 (patch) | |
| tree | 4d7868add036c8bb13ee0a3396faa4326cfbd2b1 /capsule/build_loglog.bash | |
| parent | 69a1ffb7b925ca1d60471ea5941738f154c95fde (diff) | |
microlog appends .n to dates when multiple entries for the same date
Diffstat (limited to 'capsule/build_loglog.bash')
| -rw-r--r-- | capsule/build_loglog.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/capsule/build_loglog.bash b/capsule/build_loglog.bash index e4bf8a6..0d50b5d 100644 --- a/capsule/build_loglog.bash +++ b/capsule/build_loglog.bash @@ -23,11 +23,11 @@ read_log_to_tmp() CURRENT_POST_FILENAME="" while read line; do if [[ -z "$CURRENT_POST_FILENAME" ]]; then - if [[ "$line" =~ (\#+)\ *([0-9]{4}-[0-9]{2}-[0-9]{2})\ * ]]; then + if [[ "$line" =~ (\#+)\ *([0-9]{4}-[0-9]{2}-[0-9]{2})(\.[0-9]+)?\ * ]]; then CURRENT_POST_HEADING="${BASH_REMATCH[1]}" DATE="${BASH_REMATCH[2]}" CURRENT_POST_FILENAME="$(new_filename $DATE)" - elif [[ "$line" =~ \=\>\ +([^\ ]+)\ +([0-9]{4}-[0-9]{2}-[0-9]{2})\ +(.*) ]]; then + elif [[ "$line" =~ \=\>\ +([^\ ]+)\ +([0-9]{4}-[0-9]{2}-[0-9]{2})(\.[0-9]+)?\ +(.*) ]]; then HREF="${BASH_REMATCH[1]}" DATE="${BASH_REMATCH[2]}" NAME="${BASH_REMATCH[3]}" |
