Skip to content
Snippets Groups Projects
Verified Commit 70ada387 authored by Sebastian Bergandy's avatar Sebastian Bergandy :keyboard:
Browse files

OZG-7473 extract regex to const

Based on CR comment.
parent beb977aa
No related branches found
No related tags found
1 merge request!104Administration: Neu hinzugefügte Felder für Statistik speichern
...@@ -111,5 +111,6 @@ export function getFieldPath(name: string, pathPrefix: string): string { ...@@ -111,5 +111,6 @@ export function getFieldPath(name: string, pathPrefix: string): string {
} }
export function _mapFormArrayElementNameToPath(name: string): string { export function _mapFormArrayElementNameToPath(name: string): string {
return name.replace(/\[(\d+?)]\./g, '.$1.'); const formArrayControlIndexCaptureGroup: RegExp = /\[(\d+?)]\./g;
return name.replace(formArrayControlIndexCaptureGroup, '.$1.');
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment