Skip to content

Commit dfcb540

Browse files
committed
Fix dotfile extension bug
1 parent 3f2bee3 commit dfcb540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ open_note() {
175175
OLDIFS=$IFS; IFS=','
176176
for file in $buffer; do
177177
note_path=$file
178-
ext_check=$(echo $note_path | grep -e '\.[a-z]')
178+
ext_check=$(echo ${note_path:1:-1} | grep -e '\.[a-z]')
179179
if [[ -z ${ext_check} ]]; then
180180
note_path="$note_path$file_ext"
181181
fi

0 commit comments

Comments
 (0)