diff --git a/client/src/components/RoomsCreate.vue b/client/src/components/RoomsCreate.vue index fa8aa1c..aedff85 100644 --- a/client/src/components/RoomsCreate.vue +++ b/client/src/components/RoomsCreate.vue @@ -218,7 +218,7 @@ label="Host path" :value="host_path" @input="$set(data.mounts, index, { host_path: $event, container_path })" - :rules="[ rules.absolutePath, rules.withoutColon ]" + :rules="[ rules.absolutePath ]" autocomplete="off" > @@ -228,7 +228,7 @@ label="Container path" :value="container_path" @input="$set(data.mounts, index, { host_path, container_path: $event})" - :rules="[ rules.absolutePath, rules.withoutColon ]" + :rules="[ rules.absolutePath ]" autocomplete="off" > @@ -315,9 +315,6 @@ export default class RoomsCreate extends Vue { }, absolutePath(val: string) { return val[0] !== "/" ? 'Must be absolute path, starting with /.' : true - }, - withoutColon(val: string) { - return val && /:$/.test(val) ? 'Cannnot contain : character.' : true } } diff --git a/internal/config/room.go b/internal/config/room.go index 1cae9e7..e308fe3 100644 --- a/internal/config/room.go +++ b/internal/config/room.go @@ -141,10 +141,6 @@ func (s *Room) Set() { if !filepath.IsAbs(s.InstanceData) { log.Panic().Msg("invalid `instance.data`, must be an absolute path") } - - if strings.Contains(s.InstanceData, ":") { - log.Panic().Msg("invalid `instance.data`, cannot contain : character") - } } else { log.Warn().Msg("missing `instance.data`, container mounts are unavailable") }