MCPcopy Create free account
hub / github.com/DTStack/molecule / toggleRegex

Method toggleRegex

src/services/workbench/searchService.ts:170–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168 }
169
170 public toggleRegex() {
171 const { isRegex } = this.state;
172 const { SEARCH_REGULAR_EXPRESSION_COMMAND_ID } =
173 this.builtinService.getConstants();
174 if (SEARCH_REGULAR_EXPRESSION_COMMAND_ID) {
175 this.setState({
176 isRegex: !isRegex,
177 });
178 this.updateStatus(SEARCH_REGULAR_EXPRESSION_COMMAND_ID, !isRegex);
179 }
180 }
181
182 public togglePreserveCase() {
183 const { preserveCase } = this.state;

Callers 2

SearchControllerClass · 0.80

Calls 3

updateStatusMethod · 0.95
setStateMethod · 0.80
getConstantsMethod · 0.65

Tested by

no test coverage detected