mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 17:37:00 +00:00
docfix/to checkShortString
This commit is contained in:
parent
0cacf43fee
commit
2272631bc5
@ -900,7 +900,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
|
||||
}
|
||||
}
|
||||
|
||||
/** only A-Z, a-z, 0-9, -, _, ., and max length <= 16 */
|
||||
/** only A-Z, a-z, 0-9, -, _, ., and max length <= 16. NOTE: This function requires at least ONE character (+ in the regx). If you want to accept zero characters use checkOptionalShortString. */
|
||||
def checkShortString(value:String): String ={
|
||||
val valueLength = value.length
|
||||
val regex = """^([A-Za-z0-9\-._]+)$""".r
|
||||
|
||||
Loading…
Reference in New Issue
Block a user