How can I set minimum character for custom link

How can I set the Minimum character for the custom link?
I want no one to create a custom link with less than 5 characters.

See Possible With A Plugin · YOURLS/YOURLS Wiki · GitHub

I wrote a small plugin to add this feature: GitHub - gehwissenlos/yourls-limit-keyword-length

It’s great!
Thanks for your help.

@gehwissenlos can you get it listed on GitHub - YOURLS/awesome-yourls: 🎉 A curated list of awesome things related to YOURLS ? (maybe with an explanation on what it differs from the original plugin)