From d84cd484d9219d4b8de542165d3c2c2c103b3b9c Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sat, 1 Mar 2025 01:15:30 -0600 Subject: [PATCH] fix: Allow 3 letter lang codes --- folderify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folderify.sh b/folderify.sh index 7bf0252..ef9042c 100644 --- a/folderify.sh +++ b/folderify.sh @@ -14,7 +14,7 @@ process_file () { else mkdir "$without_ext" mv "$filename" "$without_ext/" - find . -type f -regextype posix-egrep -iregex "\./$without_ext(\.[a-z]{2})?\.srt" \ + find . -type f -regextype posix-egrep -iregex "\./$without_ext(\.[a-z]{2,3})?\.srt" \ -exec mv "{}" "$without_ext/" \; fi }