Skip to content

Commit 5dc0fd8

Browse files
authored
Merge pull request rails#53862 from p8/guides/fix-console-prompt-cleanup
Update prompt_regexp for console code examples in guides
2 parents 474c407 + b4f964c commit 5dc0fd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/rails_guides/markdown/renderer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def clipboard_content(code, language)
8888
when "bash"
8989
/^\$ /
9090
when "irb"
91-
/^irb.*?> /
91+
/^(irb.*?|\w+\(\w+\))> /
9292
end
9393

9494
if prompt_regexp

0 commit comments

Comments
 (0)