From 83c5bac1c4905fd8d621fbaff197d8cefd12922e Mon Sep 17 00:00:00 2001 From: Jonas Kattendick Date: Tue, 14 Nov 2023 17:13:45 +0100 Subject: [PATCH] fix: function name typo --- agenda | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/agenda b/agenda index a27ea20..6458fa7 100644 --- a/agenda +++ b/agenda @@ -140,12 +140,12 @@ __edit() { local base ext slug file if [ "$opt_b" = "yes" ]; then - base="0000-$(___slugify "$*")" + base="0000-$(__slugify "$*")" else base=$(date -d "$*" +%F) fi ext=$opt_e - slug=$(___slugify "$opt_t") + slug=$(__slugify "$opt_t") file="$AGENDA_DIR/$slug/$base.$ext" # Existing files may overwrite the `-e` option. @@ -234,7 +234,7 @@ __list() { date=$(date -d "$*" +%F) until=$(date -d "$opt_u" +%F) if [ -n "$opt_t" ]; then - slug=$(slugify "$opt_t") + slug=$(__slugify "$opt_t") dir="$AGENDA_DIR/$slug" else dir="$AGENDA_DIR" @@ -323,7 +323,7 @@ __agenda_create() { } # https://stackoverflow.com/a/49035906 -___slugify() { +__slugify() { echo "$1" \ | iconv -c -t ascii//TRANSLIT \ | sed -E "s/[~^]+//g" \