regex standardizer fix
@@ -52,6 +52,9 @@ public class SimpleRegexReplacer implements StandardizationPolicy {
if (replace != null) {
this.replacement = replace;
}
+ else {
+ this.replacement="";
+ }
valid = true;
} catch (PatternSyntaxException e) {
@@ -64,6 +67,9 @@ public class SimpleRegexReplacer implements StandardizationPolicy {
if (!valid) {
return value;
}
+ if(replacement== null){
+ replacement = "";
+ }
return pattern.matcher(value).replaceAll(replacement);
}
