refactor: simplify regex string

This commit is contained in:
Gauthier Roebroeck 2025-07-16 11:24:18 +08:00
parent 65c8575c0e
commit c955f2da0f

View file

@ -31,7 +31,7 @@ class SettingsUpdateDto {
isSet[prop.name] = true isSet[prop.name] = true
} }
@get:Pattern(regexp = "^\\/[\\w-\\/]*[a-zA-Z0-9]\$") @get:Pattern(regexp = "^/[\\w-/]*[a-zA-Z0-9]$")
var serverContextPath: String? var serverContextPath: String?
by Delegates.observable(null) { prop, _, _ -> by Delegates.observable(null) { prop, _, _ ->
isSet[prop.name] = true isSet[prop.name] = true