We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 956a70d commit 5d0a319Copy full SHA for 5d0a319
src/main/java/com/factsmission/psps/server/Launcher.java
@@ -86,16 +86,20 @@ private static GraphNode setEnvVarConfig(GraphNode orig) {
86
87
private static String removeQuotes(String string) {
88
int start, end;
89
- if (string.charAt(0) == '\'') {
+ if (isQuote(string.charAt(0))) {
90
start = 1;
91
} else {
92
start = 0;
93
}
94
- if (string.charAt(string.length()-1) == '\'') {
+ if (isQuote(string.charAt(string.length()-1))) {
95
end = string.length()-1;
96
97
end = string.length();
98
99
return string.substring(start, end);
100
101
+
102
+ private static boolean isQuote(char c) {
103
+ return (c == '\'') || (c == '\"');
104
+ }
105
0 commit comments