Bash: execute command related on input

Sometimes I erroneously copy & enter file name into terminal, for example, instead of youtube-dl <some-link> I trying to execute <some-link>

Just for now I wrote the script f like

case "$1"
    ...
    '*youtu.be*': youtube-dl "$1" ;;
    '*.html': links "$1" ;;
    ...
    else xdg-open "$1" ;;
esac

Is there any ability in the bash to replace <input> by <command> <input> depending on <input>?