mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Got rid of crazy user name split
instead decorate with <wbr> to hint on best spot to split
This commit is contained in:
@@ -192,13 +192,13 @@ test("updateRelativeAge", function(){
|
||||
|
||||
test("breakUp", function(){
|
||||
|
||||
var b = function(s){ return Discourse.Formatter.breakUp(s,5); };
|
||||
var b = function(s){ return Discourse.Formatter.breakUp(s); };
|
||||
|
||||
equal(b("hello"), "hello");
|
||||
equal(b("helloworld"), "hello world");
|
||||
equal(b("HeMans"), "He Mans");
|
||||
equal(b("he_man"), "he_ man");
|
||||
equal(b("he11111"), "he 11111");
|
||||
equal(b("HRCBob"), "HRC Bob");
|
||||
equal(b("helloworld"), "helloworld");
|
||||
equal(b("HeMans11"), "He<wbr>Mans<wbr>11");
|
||||
equal(b("he_man"), "he_<wbr>man");
|
||||
equal(b("he11111"), "he<wbr>11111");
|
||||
equal(b("HRCBob"), "HRC<wbr>Bob");
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user