Skip to content

Commit

Permalink
run format
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale Nguyen committed Sep 24, 2023
1 parent eda9a22 commit 9585ec4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/components/inputnumber/inputnumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,12 @@ export class InputNumber implements OnInit, AfterContentInit, OnChanges, Control
}

private getSelectedText() {
return window?.getSelection()?.toString().replaceAll(/[^0-9']/g, '') || '';
return (
window
?.getSelection()
?.toString()
.replaceAll(/[^0-9']/g, '') || ''
);
}

onPaste(event: ClipboardEvent) {
Expand Down

0 comments on commit 9585ec4

Please sign in to comment.