test(file-print): extend booking document regression
This commit is contained in:
@@ -105,7 +105,9 @@ public class BusinessFileStorage {
|
||||
normalized = normalized.substring(normalized.lastIndexOf('/') + 1)
|
||||
.replaceAll("[\\p{Cntrl}]", "").trim();
|
||||
if (normalized.isBlank()) return "attachment";
|
||||
return normalized.length() <= 255 ? normalized : normalized.substring(normalized.length() - 255);
|
||||
int codePoints = normalized.codePointCount(0, normalized.length());
|
||||
if (codePoints <= 255) return normalized;
|
||||
return normalized.substring(normalized.offsetByCodePoints(0, codePoints - 255));
|
||||
}
|
||||
|
||||
private static String sha256(Path path) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user