Skip to content

Commit dac690b

Browse files
committed
Revert "Fix single character variable"
This reverts commit e670916.
1 parent e670916 commit dac690b

File tree

2 files changed

+3
-44
lines changed

2 files changed

+3
-44
lines changed

cloudinary-core/src/main/java/com/cloudinary/utils/StringUtils.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,9 @@ public static String mergeToSingleUnderscore(String s) {
277277
*/
278278
public static boolean isVariable(String s) {
279279
if (s == null ||
280-
s.length() < 2 ||
281-
!s.startsWith("$")) {
280+
s.length() < 3 ||
281+
!s.startsWith("$") ||
282+
!Character.isLetter(s.charAt(1))) {
282283
return false;
283284
}
284285

cloudinary-core/src/test/java/com/cloudinary/transformation/VariableTest.java

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)