mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Make Formatter::Util
extend itself for easier access
This commit is contained in:
parent
3d3626accc
commit
1b57e2cad5
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
module Ameba::Formatter
|
||||
module Util
|
||||
extend self
|
||||
|
||||
def deansify(message : String?) : String?
|
||||
message.try &.gsub(/\x1b[^m]*m/, "").presence
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue