@alwaysblank/denden
    Preparing search index...

    Function getAffix

    • Given a string str in the form of word* or *word return the search term and whether it is a suffix or not.

      Terms such as * or *or will fail because they can't be reduced to a single affix.

      Parameters

      • str: string

      Returns false | { isSuffix: boolean; term: string }

      An object with the term and isSuffix properties, or boolean false if no valid search term can be found.