andrew/aho_corasick
v0.1.1 ·
simple string function
Aho-corasick
Lightweight, type-safe aho-corasick implementation for development use. Includes add/build/query, tests (uses lune) and a tiny bench mark
Features
- Unicode friendly ( uses string.sub by default for safe luau strict typing )
- Payload values for patterns (any Lua value)
- Returns matches as
{index = <end_pos>, value = <payload>} - Simple, readable implementation suitable for embedding into bots/tools
- Lune tests and a short benchmark script included
Quick start
- Run Code on cmd :
pesde add andrew/aho_corasick
License
MIT