Skip to content

How to search for square brackets and underscores? #125

Closed Answered by mikegoatly
h0lg asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @h0lg - always nice to hear from you!

TL;DR:

Try setting SplitOnPunctuation to false.


By default LIFTI will treat some characters as "split" characters:

public virtual bool IsSplitCharacter(char character)
{
    return
        // Split when the character is well known as a Unicode separator or control character
        char.IsSeparator(character) || char.IsControl(character) || (
            (
                // Split if we are splitting on punctuation and the character is a punctuation character
                (this.Options.SplitOnPunctuation == true && char.IsPunctuation(character)) ||
                // Or the character is in the list of additional split characters
                t…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by h0lg
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants