mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Fix] 修复引号包括的参数值尾部多余的引号没有过滤的问题;
This commit is contained in:
parent
3333f4c5c5
commit
64303dc6b6
@ -89,13 +89,13 @@ public class CQPluginMain extends CQPlugin {
|
|||||||
int startIndex = 0;
|
int startIndex = 0;
|
||||||
int endIndex = arg.length();
|
int endIndex = arg.length();
|
||||||
if(arg.startsWith("\"")) {
|
if(arg.startsWith("\"")) {
|
||||||
while(arg.indexOf("\"") == startIndex) {
|
while(arg.indexOf("\"", startIndex) == startIndex) {
|
||||||
startIndex++;
|
startIndex++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(arg.endsWith("\"")) {
|
if(arg.endsWith("\"")) {
|
||||||
while(arg.lastIndexOf("\"") == endIndex - 1) {
|
while(arg.charAt(endIndex - 1) == '\"') {
|
||||||
endIndex--;
|
endIndex--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user