Skip to content

Commit f7420e2

Browse files
committed
remove formatstring
1 parent a1552d3 commit f7420e2

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

packages/uui-input/lib/uui-input.element.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,6 @@ export class UUIInputElement extends UUIFormControlMixin(
248248
});
249249
}
250250

251-
formatString(str: string, ...values: (string | number)[]): string {
252-
return str.replace(
253-
/{(\d+)}/g,
254-
(_, index) => values[index]?.toString() ?? '',
255-
);
256-
}
257-
258251
#onKeyDown(e: KeyboardEvent): void {
259252
if (this.type !== 'color' && e.key == 'Enter') {
260253
this.submit();

packages/uui-textarea/lib/uui-textarea.element.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,6 @@ export class UUITextareaElement extends UUIFormControlMixin(LitElement, '') {
201201
}
202202
}
203203

204-
formatString(str: string, ...values: (string | number)[]): string {
205-
return str.replace(
206-
/{(\d+)}/g,
207-
(_, index) => values[index]?.toString() ?? '',
208-
);
209-
}
210-
211204
/**
212205
* This method enables <label for="..."> to focus the select
213206
*/

0 commit comments

Comments
 (0)