Given a string str in the form of word* or *word return the search term and whether it is a suffix or not.
str
word*
*word
Terms such as * or *or will fail because they can't be reduced to a single affix.
*
*or
An object with the term and isSuffix properties, or boolean false if no valid search term can be found.
term
isSuffix
false
Given a string
strin the form ofword*or*wordreturn the search term and whether it is a suffix or not.Terms such as
*or*orwill fail because they can't be reduced to a single affix.