SkillAgentSearch skills...

Fuzzyhash

A fuzzy weird hash that can store string or ... regexs?

Install / Use

/learn @joshbuddy/Fuzzyhash
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

= Fuzzy Hash

This is useful when you want to have a lookup table that can either contain strings or regexes. For instance, you might want a catch all for certain regexes that perform a certain logic.

hash = FuzzyHash.new hash[/^\d+$/] = 'number' hash[/.*/] = 'something' hash['chunky'] = 'bacon' hash['foo'] = 'vader'

hash['foo'] << 'vader' hash['food'] << 'something' hash['123'] << 'number'

Related Skills

View on GitHub
GitHub Stars16
CategoryDevelopment
Updated6y ago
Forks0

Languages

Ruby

Security Score

60/100

Audited on Aug 13, 2019

No findings