diff --git a/src/main/java/com/jozufozu/flywheel/impl/layout/LayoutBuilderImpl.java b/src/main/java/com/jozufozu/flywheel/impl/layout/LayoutBuilderImpl.java index 5784b19f3..502fca4da 100644 --- a/src/main/java/com/jozufozu/flywheel/impl/layout/LayoutBuilderImpl.java +++ b/src/main/java/com/jozufozu/flywheel/impl/layout/LayoutBuilderImpl.java @@ -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) {