We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38b9ee7 commit 2eacec6Copy full SHA for 2eacec6
src/lib/search.h
@@ -62,10 +62,15 @@ class SearchParams {
62
void setSearchTerms(const std::string & terms);
63
void setChangeDetection(bool detection_on, bool only_big) { change_detection_ = detection_on; only_large_changes_ = only_big; }
64
void setIncludeRefs(bool include_crs, bool include_drs) { include_crs_ = include_crs; include_drs_ = include_drs; }
65
- void setCaseSensitive(bool sensitive) { case_sensitive_ = sensitive; }
66
- void setUseRegex(bool use_regex) {
+ void setCaseSensitive(bool sensitive) {
+ case_sensitive_ = sensitive;
67
+ if(use_regex_) {
68
+ buildRegex();
69
+ }
70
71
+ void setUseRegex(bool use_regex) {
72
regex_fail_ = false;
- use_regex_ = use_regex;
73
+ use_regex_ = use_regex;
74
if(use_regex_) {
75
buildRegex();
76
}
0 commit comments