diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e3a2a25..90528fc 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -74,9 +74,9 @@ module ApplicationHelper def render_youtube(content) # TODO: render only in text blocks, not in code/quotes/etc return content.gsub( - /\[yt:([a-zA-Z0-9\-_]+)\]/, + /\[yt:([a-zA-Z0-9\-_]+)(:(\d+))?\]/, "") end end \ No newline at end of file