Skip to content

Commit 1cc206b

Browse files
scripts/wrong-filename: add exceptions for .2 and .3
1 parent 345b558 commit 1cc206b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/wrong-filename.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set -e
1717
# Iterate through all Markdown files in the 'pages' directories
1818
find pages* -name '*.md' -type f | while read -r path; do
1919
# Extract the expected command name from the filename
20-
COMMAND_NAME_FILE=$(basename "$path" | head -c-4 | sed 's/\.fish//' | sed 's/\.js//' | sed 's/\.1//' | tr '-' ' ' | tr '[:upper:]' '[:lower:]')
20+
COMMAND_NAME_FILE=$(basename "$path" | head -c-4 | sed 's/\.fish//' | sed 's/\.js//' | sed 's/\.1//' | sed 's/\.2//' | sed 's/\.3//' | tr '-' ' ' | tr '[:upper:]' '[:lower:]')
2121

2222
# Extract the command name from the first line of the Markdown file
2323
COMMAND_NAME_PAGE=$(head -n1 "$path" | tail -c+3 | sed 's/--//' | tr '-' ' ' | tr '[:upper:]' '[:lower:]')

0 commit comments

Comments
 (0)