mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-09 20:24:03 +00:00
Separate with comma views, likes, dislikes
This commit is contained in:
@@ -320,3 +320,7 @@ def template_comments(root)
|
||||
|
||||
return html
|
||||
end
|
||||
|
||||
def number_with_separator(number)
|
||||
number.to_s.reverse.gsub(/(\d{3})(?=\d)/, "\\1,").reverse
|
||||
end
|
||||
|
Reference in New Issue
Block a user