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();
|
String w = word.toString();
|
||||||
while(w.startsWith("(") && w.length() > 1)
|
while(w.startsWith("(") && w.length() > 1)
|
||||||
w = w.substring(1);
|
w = w.substring(1);
|
||||||
while(w.endsWith(")") && w.length() > 1)
|
if(!w.startsWith("\""))
|
||||||
w = w.substring(0, w.length() - 1);
|
while(w.endsWith(")") && w.length() > 1)
|
||||||
|
w = w.substring(0, w.length() - 1);
|
||||||
words.add(w);
|
words.add(w);
|
||||||
word = new StringBuilder();
|
word = new StringBuilder();
|
||||||
}
|
}
|
||||||
|
@ -1735,8 +1736,9 @@ public class ISBPL {
|
||||||
String w = word.toString();
|
String w = word.toString();
|
||||||
while(w.startsWith("(") && w.length() > 1)
|
while(w.startsWith("(") && w.length() > 1)
|
||||||
w = w.substring(1);
|
w = w.substring(1);
|
||||||
while(w.endsWith(")") && w.length() > 1)
|
if(!w.startsWith("\""))
|
||||||
w = w.substring(0, w.length() - 1);
|
while(w.endsWith(")") && w.length() > 1)
|
||||||
|
w = w.substring(0, w.length() - 1);
|
||||||
words.add(w);
|
words.add(w);
|
||||||
|
|
||||||
ArrayList<String> cleanWords = new ArrayList<>();
|
ArrayList<String> cleanWords = new ArrayList<>();
|
||||||
|
|
Loading…
Add table
Reference in a new issue