Skip to content

add option for word-boundary based match #15

@igalic

Description

@igalic

i realized the feature that i most use in anicode[1] is grep's word-boundaries feature to limit the amount of characters it matches…

$ anicode dog

matches all DOGRA characters[2]

whereas '\bdog\b' matches…

$ anicode '\bdog\b'
1) ⺨   CJK RADICAL DOG
2) ⽝   KANGXI RADICAL DOG
3) 🌭   HOT DOG
4) 🐕   DOG
5) 🐶   DOG FACE

which, most of the time, is what i want.

That's the equivalent of passing -w to grep, so perhaps we should expose this option

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions