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
|
@NotNull
|
||||||
public static EcmaVersion fromString(@Nullable String target) {
|
public static EcmaVersion fromString(@Nullable String target) {
|
||||||
return StringUtil.compareVersionNumbers(target, "5") >= 0 ? v5 : v3;
|
return StringUtil.compareVersionNumbers(target, "v5") >= 0 ? v5 : v3;
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|||||||
Reference in New Issue
Block a user