Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubySymbol.java
Original file line number Diff line number Diff line change
@@ -261,7 +261,7 @@ public boolean validClassVariableName() {
index == 2 && (!encoding.isDigit(codepoint)) && (encoding.isAlnum(codepoint) || !Encoding.isAscii(codepoint) || codepoint == '_') ||
index > 2 && (encoding.isAlnum(codepoint) || !Encoding.isAscii(codepoint) || codepoint == '_'));

return valid && getBytes().length() >= 2; // FIXME: good enough on length check? Trying to avoid counter.
return valid && getBytes().length() >= 3; // FIXME: good enough on length check? Trying to avoid counter.
}


0 comments on commit d1a0bbf

Please sign in to comment.