g.wrapString is removing the last character if the character before it is one of the canSplitAfter characters, eg . - or ,
This happens no matter how wide the wrap width is. For example -
g.wrapString('test.a', 100) returns test. and not test.a
Multiple characters after the split character work fine (g.wrapString('test.aa', 100) returns test.aa) as do spaces (g.wrapString('test a', 100) returns test a)
g.wrapString is removing the last character if the character before it is one of the canSplitAfter characters, eg . - or , This happens no matter how wide the wrap width is. For example -
g.wrapString('test.a', 100)
returnstest.
and nottest.a
Multiple characters after the split character work fine (
g.wrapString('test.aa', 100)
returnstest.aa
) as do spaces (g.wrapString('test a', 100)
returnstest a
)