Add missing underscores

This commit is contained in:
PepperCode1 2024-01-04 15:00:11 -08:00
parent 4bcc190b4e
commit 4953b0620c

View File

@ -152,8 +152,8 @@ public class LayoutBuilderImpl implements LayoutBuilder {
}
String lowerCaseName = name.toLowerCase(Locale.ROOT);
if (lowerCaseName.startsWith("gl") || lowerCaseName.startsWith("flw")) {
throw new IllegalStateException("Element at index " + i + " has invalid name '" + name + "'! Names must not start with 'gl' or 'flw' (case-insensitive).");
if (lowerCaseName.startsWith("gl_") || lowerCaseName.startsWith("flw_")) {
throw new IllegalStateException("Element at index " + i + " has invalid name '" + name + "'! Names must not start with 'gl_' or 'flw_' (case-insensitive).");
}
if (name.length() > Layout.MAX_ELEMENT_NAME_LENGTH) {