Updated for release 4.28
This commit is contained in:
parent
7b2af44b43
commit
9456af2cf4
|
@ -45,18 +45,18 @@ public class Sha1 {
|
||||||
|
|
||||||
// Bug
|
// Bug
|
||||||
//
|
//
|
||||||
RE regex = new RE("[a-z]");
|
// RE regex = new RE("[a-z]");
|
||||||
|
// for (int i = 0; i < len; i++) {
|
||||||
|
// String chars = "" + filestring.charAt(i);
|
||||||
|
// boolean optioned = regex.match(chars);
|
||||||
|
|
||||||
|
// Fix
|
||||||
|
Pattern p = Pattern.compile("[a-z]");
|
||||||
|
|
||||||
for (int i = 0; i < len; i++) {
|
for (int i = 0; i < len; i++) {
|
||||||
String chars = "" + filestring.charAt(i);
|
String chars = "" + filestring.charAt(i);
|
||||||
boolean optioned = regex.match(chars);
|
Matcher m = p.matcher(chars);
|
||||||
|
boolean optioned = m.matches();
|
||||||
// Fix
|
|
||||||
// Pattern p = Pattern.compile("[a-z]");
|
|
||||||
//
|
|
||||||
// for (int i = 0; i < len; i++) {
|
|
||||||
// String chars = "" + filestring.charAt(i);
|
|
||||||
// Matcher m = p.matcher(chars);
|
|
||||||
// boolean optioned = m.matches();
|
|
||||||
|
|
||||||
if (optioned) {
|
if (optioned) {
|
||||||
counter++;
|
counter++;
|
||||||
|
|
|
@ -219,25 +219,25 @@ public class Transformations {
|
||||||
|
|
||||||
//Bug RE
|
//Bug RE
|
||||||
//
|
//
|
||||||
RE regexp = new RE("[^\\\\]\"");
|
//RE regexp = new RE("[^\\\\]\"");
|
||||||
boolean matching = regexp.match(phrase);
|
//boolean matching = regexp.match(phrase);
|
||||||
|
|
||||||
if (matching) {
|
//if (matching) {
|
||||||
int i0 = regexp.getParenStart(0);
|
// int i0 = regexp.getParenStart(0);
|
||||||
quoted = phrase.substring(0, i0 + 1).trim();
|
// quoted = phrase.substring(0, i0 + 1).trim();
|
||||||
phrase = phrase.substring(i0 + 2).trim();
|
// phrase = phrase.substring(i0 + 2).trim();
|
||||||
}
|
//}
|
||||||
|
|
||||||
//Fix
|
//Fix
|
||||||
//Pattern p = Pattern.compile("[^\\\\]\"");
|
Pattern p = Pattern.compile("[^\\\\]\"");
|
||||||
//Matcher m = p.matcher(phrase);
|
Matcher m = p.matcher(phrase);
|
||||||
//boolean matching = m.matches();
|
boolean matching = m.matches();
|
||||||
//
|
|
||||||
//if (matching) {
|
if (matching) {
|
||||||
// int i0 = m.start();
|
int i0 = m.start();
|
||||||
// quoted = phrase.substring(0, i0 + 1).trim();
|
quoted = phrase.substring(0, i0 + 1).trim();
|
||||||
// phrase = phrase.substring(i0 + 2).trim();
|
phrase = phrase.substring(i0 + 2).trim();
|
||||||
//}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (phrase.startsWith(delimiter))
|
if (phrase.startsWith(delimiter))
|
||||||
|
|
Loading…
Reference in New Issue