Updated loading states and error states accross app
This commit is contained in:
@@ -21,7 +21,7 @@ const randomChars = () => {
|
||||
|
||||
export function parseRTSPUrl(url: string) {
|
||||
const regex = /rtsp:\/\/([^:]+):([^@]+)@([^:/]+):?(\d+)?(\/.*)?/;
|
||||
const match = url.match(regex);
|
||||
const match = url?.match(regex);
|
||||
|
||||
if (!match) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user