mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-02 22:55:53 +00:00
Merge pull request #1195 from daniel-beck/JENKINS-22670
[FIXED JENKINS-22670] Less aggressive word breaking
This commit is contained in:
commit
a7eb8b7eb3
2 files changed
+5
-3
No files matched your search
@@ -1830,7 +1830,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