MCPcopy
hub / github.com/refined-github/refined-github / replace

Method replace

source/github-helpers/search-query.ts:121–124  ·  view source on GitHub ↗
(searchValue: string | RegExp, replaceValue: string)

Source from the content-addressed store, hash-verified

119 }
120
121 replace(searchValue: string | RegExp, replaceValue: string): this {
122 this.set(this.get().replace(searchValue, replaceValue));
123 return this;
124 }
125
126 remove(...queryPartsToRemove: string[]): this {
127 this.queryParts = this.getQueryParts().filter(queryPart => !queryPartsToRemove.includes(queryPart));

Callers 15

entryFileNamesFunction · 0.80
selectors.test.tsFile · 0.80
v4uncachedFunction · 0.80
replacePrCommitLinkFunction · 0.80
replacePrCompareLinkFunction · 0.80
replaceDiscussionLinkFunction · 0.80
getCurrentBranchFromFeedFunction · 0.80
getCommentAuthorFunction · 0.80
getUserAvatarFunction · 0.80
getTokenInfoFunction · 0.80
hrefMethod · 0.80

Calls 2

setMethod · 0.95
getMethod · 0.95

Tested by 3

replacePrCommitLinkFunction · 0.64
replacePrCompareLinkFunction · 0.64
replaceDiscussionLinkFunction · 0.64