- refactored bearer form

- started refactoring Channel form
This commit is contained in:
2025-10-07 11:37:37 +01:00
parent 5e34590e5c
commit 3e564b933d
5 changed files with 238 additions and 117 deletions

View File

@@ -19,6 +19,17 @@ const randomChars = () => {
return letter;
};
export function cleanArray(str: string) {
const toArr = str?.split(",");
const cleaned = toArr?.map((el: string) => {
const test = el.replace(/[^0-9a-z]/gi, "");
return test;
});
return cleaned;
}
export function parseRTSPUrl(url: string) {
const regex = /rtsp:\/\/([^:]+):([^@]+)@([^:/]+):?(\d+)?(\/.*)?/;
const match = url?.match(regex);