Span method should not be match cased
HosseinArabbeigi opened this issue ยท 5 comments
Hello There!
Thanks for amazing library! very helpful ๐
I have a problem with span method, its shouldn't be match cased, for example when i want to bold apple it should bold all cases of apple, like Apple, APPLE, AppLe, aPPLLE, ...
Thanks.
Good idea! It could be easily solved with the flag ignoreCase
.
Nice, i will be free in next 15 days and add this feature.
No worries. I just added it to the 1.2.0 version. Keep in mind, this update was not idiomatic kotlin, because this library was created a long time ago for kotlinless environments. You could need some magic depending on the used kotlin version (you probably use):
.span("bar", ignoreCase = true, spans = *arrayOf(bold()))
I am planning to rewrite using kotlin as a first-class citizen in 2.0 version, which will have a more pleasant API.
Thanks a lot @neworld, such a fast you are! :)
And about version two that's great news!