fix a string bug

This commit is contained in:
Daniella 2022-06-26 04:51:31 +02:00
parent d6461db848
commit 757a84bfda

View file

@ -1723,6 +1723,7 @@ public class ISBPL {
String w = word.toString();
while(w.startsWith("(") && w.length() > 1)
w = w.substring(1);
if(!w.startsWith("\""))
while(w.endsWith(")") && w.length() > 1)
w = w.substring(0, w.length() - 1);
words.add(w);
@ -1735,6 +1736,7 @@ public class ISBPL {
String w = word.toString();
while(w.startsWith("(") && w.length() > 1)
w = w.substring(1);
if(!w.startsWith("\""))
while(w.endsWith(")") && w.length() > 1)
w = w.substring(0, w.length() - 1);
words.add(w);