File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -218,10 +218,10 @@ def to_html text
218
218
when s . scan ( /\. \. \. (\. ?)/ ) then
219
219
html << s [ 1 ] << encoded [ :ellipsis ]
220
220
after_word = nil
221
- when s . scan ( /\( c\) / ) then
221
+ when s . scan ( /\( c\) /i ) then
222
222
html << encoded [ :copyright ]
223
223
after_word = nil
224
- when s . scan ( /\( r\) / ) then
224
+ when s . scan ( /\( r\) /i ) then
225
225
html << encoded [ :trademark ]
226
226
after_word = nil
227
227
when s . scan ( /---/ ) then
Original file line number Diff line number Diff line change @@ -495,6 +495,7 @@ def test_to_html_br
495
495
496
496
def test_to_html_copyright
497
497
assert_equal '©' , to_html ( '(c)' )
498
+ assert_equal '©' , to_html ( '(C)' )
498
499
end
499
500
500
501
def test_to_html_dash
@@ -549,6 +550,7 @@ def test_to_html_html_tag
549
550
550
551
def test_to_html_registered_trademark
551
552
assert_equal '®' , to_html ( '(r)' )
553
+ assert_equal '®' , to_html ( '(R)' )
552
554
end
553
555
554
556
def test_to_html_tt_tag
You can’t perform that action at this time.
0 commit comments