fix a string bug
This commit is contained in:
parent
d6461db848
commit
757a84bfda
1 changed files with 6 additions and 4 deletions
10
ISBPL.java
10
ISBPL.java
|
@ -1723,8 +1723,9 @@ public class ISBPL {
|
|||
String w = word.toString();
|
||||
while(w.startsWith("(") && w.length() > 1)
|
||||
w = w.substring(1);
|
||||
while(w.endsWith(")") && w.length() > 1)
|
||||
w = w.substring(0, w.length() - 1);
|
||||
if(!w.startsWith("\""))
|
||||
while(w.endsWith(")") && w.length() > 1)
|
||||
w = w.substring(0, w.length() - 1);
|
||||
words.add(w);
|
||||
word = new StringBuilder();
|
||||
}
|
||||
|
@ -1735,8 +1736,9 @@ public class ISBPL {
|
|||
String w = word.toString();
|
||||
while(w.startsWith("(") && w.length() > 1)
|
||||
w = w.substring(1);
|
||||
while(w.endsWith(")") && w.length() > 1)
|
||||
w = w.substring(0, w.length() - 1);
|
||||
if(!w.startsWith("\""))
|
||||
while(w.endsWith(")") && w.length() > 1)
|
||||
w = w.substring(0, w.length() - 1);
|
||||
words.add(w);
|
||||
|
||||
ArrayList<String> cleanWords = new ArrayList<>();
|
||||
|
|
Loading…
Reference in a new issue