mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-4985] Fixed code smell in regex
This commit is contained in:
committed by
Jatin_Chugh
parent
f937cbf2f5
commit
f62f74b098
+1
-1
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user