Skip to content

Commit 03d4537

Browse files
committed
parse param
1 parent 31cd071 commit 03d4537

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/tang/intellij/lua/debugger/app/LuaAppRunConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import com.intellij.openapi.util.SystemInfoRt;
3232
import com.intellij.openapi.util.WriteExternalException;
3333
import com.intellij.openapi.vfs.VirtualFile;
34+
import com.intellij.util.execution.ParametersListUtil;
3435
import com.tang.intellij.lua.debugger.DebuggerType;
3536
import com.tang.intellij.lua.debugger.IRemoteConfiguration;
3637
import com.tang.intellij.lua.debugger.LuaCommandLineState;
@@ -152,7 +153,7 @@ public String getParameters() {
152153
public String[] getParametersArray() {
153154
ArrayList<String> list = new ArrayList<>();
154155
if (params != null && !params.isEmpty()) {
155-
String[] strings = params.split("\\s+");
156+
String[] strings = ParametersListUtil.parseToArray(params);
156157
list.addAll(Arrays.asList(strings));
157158
}
158159
if (file != null && !file.isEmpty()) {

0 commit comments

Comments
 (0)