|
@@ -565,9 +565,11 @@ public final class DocxProcessUtil {
|
|
tmpText = tmpText.replaceFirst("\\d{1,}\\.","");
|
|
tmpText = tmpText.replaceFirst("\\d{1,}\\.","");
|
|
text.setValue(tmpText);
|
|
text.setValue(tmpText);
|
|
} else if(tmpText.matches("^\\d{1,}$")){
|
|
} else if(tmpText.matches("^\\d{1,}$")){
|
|
- text.setValue("");
|
|
|
|
|
|
+ tmpText = tmpText.replaceFirst("\\d{1,}","");
|
|
|
|
+ text.setValue(tmpText);
|
|
} else if(tmpText.contains(".")){
|
|
} else if(tmpText.contains(".")){
|
|
- text.setValue("");
|
|
|
|
|
|
+ tmpText = tmpText.replaceFirst("\\.","");
|
|
|
|
+ text.setValue(tmpText);
|
|
return p;
|
|
return p;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -581,9 +583,11 @@ public final class DocxProcessUtil {
|
|
tmpText = tmpText.replaceFirst("[A-Z]\\.","");
|
|
tmpText = tmpText.replaceFirst("[A-Z]\\.","");
|
|
text.setValue(tmpText);
|
|
text.setValue(tmpText);
|
|
} else if(tmpText.matches("^[A-Z]$")){
|
|
} else if(tmpText.matches("^[A-Z]$")){
|
|
- text.setValue("");
|
|
|
|
|
|
+ tmpText = tmpText.replaceFirst("[A-Z]","");
|
|
|
|
+ text.setValue(tmpText);
|
|
} else if(tmpText.contains(".")){
|
|
} else if(tmpText.contains(".")){
|
|
- text.setValue("");
|
|
|
|
|
|
+ tmpText = tmpText.replaceFirst("\\.","");
|
|
|
|
+ text.setValue(tmpText);
|
|
return p;
|
|
return p;
|
|
}
|
|
}
|
|
|
|
|