mirror of
https://github.com/HighCapable/Gropify.git
synced 2025-12-12 20:46:52 +08:00
fix: allow blank names in GropifyConfig validation
This commit is contained in:
@@ -546,7 +546,7 @@ open class GropifyConfigureExtension internal constructor() {
|
|||||||
*/
|
*/
|
||||||
internal fun build(settings: Settings): GropifyConfig {
|
internal fun build(settings: Settings): GropifyConfig {
|
||||||
fun String.checkingStartWithLetter(description: String) {
|
fun String.checkingStartWithLetter(description: String) {
|
||||||
Gropify.require(isStartsWithLetter()) {
|
Gropify.require(isBlank() || isStartsWithLetter()) {
|
||||||
"$description name \"$this\" must start with a letter."
|
"$description name \"$this\" must start with a letter."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user