mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
[FIXED JENKINS-22670] Less aggressive word breaking
This commit is contained in:
1 parent
dcfeaf3c2a
commit
35b0094137
2 files changed
+5
-3
No files matched your search
@@ -1834,7 +1834,7 @@ public class Functions {
|
||||
public static String breakableString(final String plain) {
|
||||
|
||||
return plain.replaceAll("([\\p{Punct}&&[^;]]+\\w)", "<wbr>$1")
|
||||
.replaceAll("([^\\p{Punct}\\s-]{10})(?=[^\\p{Punct}\\s-]{3})", "$1<wbr>")
|
||||
.replaceAll("([^\\p{Punct}\\s-]{20})(?=[^\\p{Punct}\\s-]{10})", "$1<wbr>")
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user