The regex filter lets you restrict when Coreply fetches suggestions, so suggestions are only fetched when the current typing text matches a pattern. This reduces unnecessary API calls.
| Setting | Description |
|---|---|
| Enable Regex Filter | Toggle to turn the filter on or off |
| Typing Regex Pattern | A regex tested against the full current typing text |
The regex is tested with containsMatchIn.
^.*[\s.!?,;:]$
Matches any string that ends with whitespace or these punctuation characters: ., !, ?, ,, ;, :. So that suggestions are fetched only after the user finishes a word (types a space) or ends a sentence by typing one of these punctuation characters.
\s$
Fetches suggestions only when the user has typed a space, indicating the end of a word.
[.!?]$
Fetches suggestions only when a sentence has been completed with ., !, or ?.
^.{10,}
Fetches suggestions only when the user has typed at least 10 characters.
Just uncheck Enable Regex Filter — the regex setting has no effect when disabled.
$ to match the end of the current typing^ to match the beginning