- refactored bearer form
- started refactoring Channel form
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user