[ACS-4985] Fixed code smell in regex

This commit is contained in:
swapnil.verma
2023-07-27 11:14:48 +05:30
committed by Jatin_Chugh
parent f937cbf2f5
commit f62f74b098
@@ -198,6 +198,6 @@ export class SearchDateRangeAdvancedComponent implements OnInit, OnDestroy {
onLastDateValueChanged(event: Event) {
let value: string = event.target['value'];
event.target['value'] = value.replace(/[-.]*0*([1-9]*[0-9]*)/g, '$1');
event.target['value'] = value.replace(/[-.]*0*([1-9]*\d*)/g, '$1');
}
}