Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/conf/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"github.com/bluenviron/mediamtx/internal/logger"
)

var rePathName = regexp.MustCompile(`^[0-9a-zA-Z_\-/\.~]+$`)
var rePathName = regexp.MustCompile(`^[0-9a-zA-Z_\-/\.~:]+$`)

// IsValidPathName checks whether the path name is valid.
func IsValidPathName(name string) error {
Expand All @@ -31,7 +31,7 @@
}

if !rePathName.MatchString(name) {
return fmt.Errorf("can contain only alphanumeric characters, underscore, dot, tilde, minus or slash")
return fmt.Errorf("can contain only alphanumeric characters, underscore, dot, tilde, minus, slash, colon")

Check warning on line 34 in internal/conf/path.go

View check run for this annotation

Codecov / codecov/patch

internal/conf/path.go#L34

Added line #L34 was not covered by tests
}

return nil
Expand Down
Loading