We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
replaceAll()
1 parent 226d381 commit 45a4921Copy full SHA for 45a4921
index.d.ts
@@ -208,6 +208,10 @@ export default class MagicString {
208
* String replacement with RegExp or string.
209
*/
210
replace(regex: RegExp | string, replacement: string | ((substring: string, ...args: any[]) => string)): MagicString;
211
+ /**
212
+ * Same as `s.replace`, but replace all matched strings instead of just one.
213
+ */
214
+ replaceAll(regex: RegExp | string, replacement: string | ((substring: string, ...args: any[]) => string)): MagicString;
215
216
lastChar(): string;
217
lastLine(): string;
0 commit comments