WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit f3e60ea

Browse files
committed
Update Express documentation (5.2.1)
1 parent 16a9939 commit f3e60ea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/docs/filters/express/clean_html.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def call
3939

4040
css('pre > code').each do |node|
4141
node.parent['data-language'] = node['class'][/language-(\w+)/, 1] if node['class']
42+
node.parent['data-language'] ||= 'javascript'
4243
node.parent.content = node.parent.content
4344
end
4445

lib/docs/scrapers/express.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Express < UrlScraper
2828
HTML
2929

3030
version do
31-
self.release = '5.1.0'
31+
self.release = '5.2.1'
3232
self.root_path = '5x/api.html'
3333
end
3434

0 commit comments

Comments
 (0)