diff --git a/lib/utilities.bash b/lib/utilities.bash index 3ceda5f1..52c48776 100644 --- a/lib/utilities.bash +++ b/lib/utilities.bash @@ -11,7 +11,7 @@ function _bash-it-get-component-name-from-path() { # filename without path filename="${1##*/}" # filename without path or priority - filename="${filename##*${BASH_IT_LOAD_PRIORITY_SEPARATOR?}}" + filename="${filename##*"${BASH_IT_LOAD_PRIORITY_SEPARATOR?}"}" # filename without path, priority or extension echo "${filename%.*.bash}" }