mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
json: fix 12 years old typo
This commit is contained in:
@@ -20,11 +20,11 @@ public class JsonNamesValidator implements NamesValidator {
|
||||
}
|
||||
@Override
|
||||
public synchronized boolean isIdentifier(@NotNull String name, final Project project) {
|
||||
if (!StringUtil.startsWithChar(name,'\'') && !StringUtil.startsWithChar(name,'\"')) {
|
||||
if (!StringUtil.startsWithChar(name,'\'') && !StringUtil.startsWithChar(name,'"')) {
|
||||
name = "\"" + name;
|
||||
}
|
||||
|
||||
if (!StringUtil.endsWithChar(name,'"') && !StringUtil.endsWithChar(name,'\"')) {
|
||||
if (!StringUtil.endsWithChar(name,'"') && !StringUtil.endsWithChar(name,'\'')) {
|
||||
name += "\"";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user