Skip to content

Commit 30ddc7b

Browse files
committed
sanitize titles - experimental tag
1 parent 42ec919 commit 30ddc7b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/docs/filters/react/entries_react_dev.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ module Docs
22
class React
33
class EntriesReactDevFilter < Docs::EntriesFilter
44
def get_name
5-
at_css('article h1').content
5+
canary_copy = '- This feature is available in the latest Canary'
6+
name = at_css('article h1').content
7+
return name.sub(canary_copy, ' (experimental)')
68
end
79

810
def get_type

0 commit comments

Comments
 (0)