Today I learned about the built-in Abbrev
module in #ruby :
https://alexwlchan.net/til/2024/find-shortest-prefix-ruby/
It can be used to find the shortest unambiguous abbreviation of a string from a list of words.
=> More informations about this toot | View the thread | More toots from mretka@infosec.exchange
=> View ruby tag This content has been proxied by September (3851b).Proxy Information
text/gemini