Renamed module 'api' to 'client-api'
This commit is contained in:
parent
5e7976ed97
commit
0381fac93c
@ -10,7 +10,7 @@ configurations {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(":api")
|
||||
implementation project(":client-api")
|
||||
developmentOnly("org.springframework.boot:spring-boot-devtools")
|
||||
implementation 'org.springframework.boot:spring-boot-starter-aop'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-security'
|
||||
|
||||
@ -5,14 +5,14 @@ public class ValidateIdentifier {
|
||||
private ValidateIdentifier() {}
|
||||
|
||||
public static boolean forNode(String nodeId) {
|
||||
return nodeId.matches("^[a-z\\d-]+$");
|
||||
return nodeId.matches("^(?!-)[a-z\\d-]{0,31}[a-z\\d](?!-)$");
|
||||
}
|
||||
|
||||
public static boolean forRoom(String roomId) {
|
||||
return roomId.matches("^[a-z\\d-]+$");
|
||||
return roomId.matches("^(?!-)[a-z\\d-]{0,31}[a-z\\d](?!-)$");
|
||||
}
|
||||
|
||||
public static boolean forUser(String username) {
|
||||
return username.matches("^[aA-zZ\\d-.\\s:@_;]+$");
|
||||
return username.matches("^[aA-zZ\\d-.\\s:@_;]{1,64}$");
|
||||
}
|
||||
}
|
||||
@ -27,7 +27,7 @@ vaadin {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(":api")
|
||||
implementation project(":client-api")
|
||||
|
||||
implementation 'com.vaadin:vaadin-spring-boot-starter'
|
||||
compileOnly 'org.projectlombok:lombok'
|
||||
|
||||
@ -3,4 +3,5 @@ rootProject.name = 'RoomPicker'
|
||||
include 'app'
|
||||
include 'control-panel'
|
||||
include 'api'
|
||||
include 'client-api'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user