aboutsummaryrefslogtreecommitdiff
path: root/plugins/code_block.rb
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/code_block.rb')
-rw-r--r--plugins/code_block.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/code_block.rb b/plugins/code_block.rb
index f2ae3e55..c70e181e 100644
--- a/plugins/code_block.rb
+++ b/plugins/code_block.rb
@@ -56,9 +56,9 @@ module Jekyll
@caption = nil
@filetype = nil
@highlight = true
- if markup =~ /\s*lang:([\w-]+)/i
+ if markup =~ /\s*lang:(\S+)/i
@filetype = $1
- markup = markup.sub(/\s*lang:([\w-]+)/i,'')
+ markup = markup.sub(/\s*lang:(\S+)/i,'')
end
if markup =~ CaptionUrlTitle
@file = $1