|
|
|
@ -219,25 +219,25 @@ public class Transformations {
|
|
|
|
|
|
|
|
|
|
//Bug RE
|
|
|
|
|
//
|
|
|
|
|
RE regexp = new RE("[^\\\\]\"");
|
|
|
|
|
boolean matching = regexp.match(phrase);
|
|
|
|
|
//RE regexp = new RE("[^\\\\]\"");
|
|
|
|
|
//boolean matching = regexp.match(phrase);
|
|
|
|
|
|
|
|
|
|
if (matching) {
|
|
|
|
|
int i0 = regexp.getParenStart(0);
|
|
|
|
|
quoted = phrase.substring(0, i0 + 1).trim();
|
|
|
|
|
phrase = phrase.substring(i0 + 2).trim();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//Fix
|
|
|
|
|
//Pattern p = Pattern.compile("[^\\\\]\"");
|
|
|
|
|
//Matcher m = p.matcher(phrase);
|
|
|
|
|
//boolean matching = m.matches();
|
|
|
|
|
//
|
|
|
|
|
//if (matching) {
|
|
|
|
|
// int i0 = m.start();
|
|
|
|
|
// quoted = phrase.substring(0, i0 + 1).trim();
|
|
|
|
|
// phrase = phrase.substring(i0 + 2).trim();
|
|
|
|
|
// int i0 = regexp.getParenStart(0);
|
|
|
|
|
// quoted = phrase.substring(0, i0 + 1).trim();
|
|
|
|
|
// phrase = phrase.substring(i0 + 2).trim();
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
//Fix
|
|
|
|
|
Pattern p = Pattern.compile("[^\\\\]\"");
|
|
|
|
|
Matcher m = p.matcher(phrase);
|
|
|
|
|
boolean matching = m.matches();
|
|
|
|
|
|
|
|
|
|
if (matching) {
|
|
|
|
|
int i0 = m.start();
|
|
|
|
|
quoted = phrase.substring(0, i0 + 1).trim();
|
|
|
|
|
phrase = phrase.substring(i0 + 2).trim();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (phrase.startsWith(delimiter))
|
|
|
|
|