vue-snotify
vue-snotify copied to clipboard
Rename Snotify's truncate filter
I've ran into 2 projects where they already have a custom truncate feature that is running into issues because Snotify overrides the filter. Wouldn't it be better to have Snotify's truncate be renamed into a namespace of some sort to prevent collisions? Or maybe we can check to see if a truncate method already exists as a filter?
I would like to vote for this as well. Another issue with the snotify supplied truncate function is that is does not check for invalid input, say a null value which will yield a runtime error.