|
@@ -27,6 +27,8 @@ public class CaseNoTrim extends UDF {
|
|
|
return null;
|
|
|
}
|
|
|
val = year_pat.matcher(val).replaceAll("\\($1\\)");
|
|
|
+ val = val.replace("(", "(")
|
|
|
+ .replace(")", ")");
|
|
|
|
|
|
Matcher matcher = pattern.matcher(val);
|
|
|
return matcher.matches() ? matcher.replaceAll("$1") : null;
|