You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the filename fullpath has dots in it appears to me that ${1%%.*}.html will strip too early(?). For example: building a blog in local github directory named anything/yourname.github.io/ and trying to edit fileone.html in there. If I am correct, the result would be anything/yourname.html (so will get a "Can't edit post" error message), since matched on first dot. If just trying to strip whatever the file extension is, then seems to me should be ${1%.*}.html. Same throughout that edit() function (timestamps etc).
i.e. should be "shortest part of $Pattern that matches the back end of $var" if simply wanting to strip the filename extension.
The text was updated successfully, but these errors were encountered:
If the filename fullpath has dots in it appears to me that
${1%%.*}.html
will strip too early(?). For example: building a blog in local github directory named anything/yourname.github.io/ and trying to edit fileone.html in there. If I am correct, the result would be anything/yourname.html (so will get a "Can't edit post" error message), since matched on first dot. If just trying to strip whatever the file extension is, then seems to me should be${1%.*}.html
. Same throughout that edit() function (timestamps etc).i.e. should be "shortest part of $Pattern that matches the back end of $var" if simply wanting to strip the filename extension.
The text was updated successfully, but these errors were encountered: