Skip to content

Commit adfcbd3

Browse files
committed
fail
1 parent e3e6495 commit adfcbd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generators/src/main/java/com/algolia/codegen/cts/tests/ParametersWithDataType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private Map<String, Object> traverseParams(
145145
}
146146

147147
testOutput.put("key", paramName);
148-
testOutput.put("useAnonymousKey", !paramName.matches("(.*)_[0-9]$") && depth != 0);
148+
testOutput.put("useAnonymousKey", !paramName.matches("(.*)_[0-9]+$") && depth != 0);
149149
testOutput.put("parent", parent);
150150
testOutput.put("isRoot", "".equals(parent));
151151
testOutput.put("objectName", getObjectNameForLanguage(baseType));

0 commit comments

Comments
 (0)