Skip to content

Commit 5d0a319

Browse files
committed
allowing renderers to be between double quotes
1 parent 956a70d commit 5d0a319

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/java/com/factsmission/psps/server/Launcher.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,20 @@ private static GraphNode setEnvVarConfig(GraphNode orig) {
8686

8787
private static String removeQuotes(String string) {
8888
int start, end;
89-
if (string.charAt(0) == '\'') {
89+
if (isQuote(string.charAt(0))) {
9090
start = 1;
9191
} else {
9292
start = 0;
9393
}
94-
if (string.charAt(string.length()-1) == '\'') {
94+
if (isQuote(string.charAt(string.length()-1))) {
9595
end = string.length()-1;
9696
} else {
9797
end = string.length();
9898
}
9999
return string.substring(start, end);
100100
}
101+
102+
private static boolean isQuote(char c) {
103+
return (c == '\'') || (c == '\"');
104+
}
101105
}

0 commit comments

Comments
 (0)