Add support events to wyoming server

This commit is contained in:
Alex X
2025-04-22 16:39:06 +03:00
parent 545a105ba0
commit 518cae1476
6 changed files with 224 additions and 132 deletions

View File

@@ -7,11 +7,11 @@ import (
)
func TestMatchHost(t *testing.T) {
v, err := Run(`
v, err := Eval(`
let url = "rtsp://user:pass@192.168.1.123/cam/realmonitor?...";
let host = match(url, "//[^/]+")[0][2:];
host
`)
`, nil)
require.Nil(t, err)
require.Equal(t, "user:pass@192.168.1.123", v)
}