Fix EcmaVersion.fromString() which caused translator to default to EcmaScript v5 in IDE
This commit is contained in:
@@ -30,7 +30,7 @@ public enum EcmaVersion {
|
||||
|
||||
@NotNull
|
||||
public static EcmaVersion fromString(@Nullable String target) {
|
||||
return StringUtil.compareVersionNumbers(target, "5") >= 0 ? v5 : v3;
|
||||
return StringUtil.compareVersionNumbers(target, "v5") >= 0 ? v5 : v3;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user