You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2025/05/21 21:24:53 UTC
(streampipes) branch add-reactive-forms-fix created (now b73159ad02)
This is an automated email from the ASF dual-hosted git repository.
riemer pushed a change to branch add-reactive-forms-fix
in repository https://gitbox.apache.org/repos/asf/streampipes.git
at b73159ad02 Revert "Resolve merge conflicts"
This branch includes the following new commits:
new b73159ad02 Revert "Resolve merge conflicts"
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(streampipes) 01/01: Revert "Resolve merge conflicts"
Posted by ri...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch add-reactive-forms-fix
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit b73159ad0243633f27796e6c6c256dbdf6b77713
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Wed May 21 23:22:26 2025 +0200
Revert "Resolve merge conflicts"
This reverts commit 3603ff1ce6564c0b55caa4390d7badacfa8c7f90, reversing
changes made to 7592ba63af09d95f02f84484e6540b9d404eee63.
---
.../core-ui/static-properties/input.validator.ts | 21 ---------------------
1 file changed, 21 deletions(-)
diff --git a/ui/src/app/core-ui/static-properties/input.validator.ts b/ui/src/app/core-ui/static-properties/input.validator.ts
index 91e30b8744..a728d4a52e 100644
--- a/ui/src/app/core-ui/static-properties/input.validator.ts
+++ b/ui/src/app/core-ui/static-properties/input.validator.ts
@@ -64,24 +64,3 @@ export function checkForDuplicatesValidator(
return isDuplicate ? { forbiddenName: { value: control.value } } : null;
};
}
-
-export function ValidateName(): ValidatorFn {
- return (control: AbstractControl): ValidationErrors | null => {
- const value = control.value;
-
- if (value == null) {
- return null;
- }
-
- const trimmed = value.trim();
-
- if (trimmed.length === 0) {
- return { whiteSpaceOnly: { value } };
- }
-
- const regex = /^[a-zA-Z0-9 _-]+$/;
- const valid = regex.test(trimmed);
-
- return valid ? null : { invalidName: { value } };
- };
-}