mirror of
https://github.com/mii443/rbot.git
synced 2025-08-22 23:55:28 +00:00
5 lines
88 B
Ruby
5 lines
88 B
Ruby
class String
|
|
def with_comma
|
|
self.gsub(/(\d)(?=\d{3}+$)/, '\\1,')
|
|
end
|
|
end |