mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2025-02-28 16:31:44 -05:00
Re-encoding of input string rather than force encoding. This is safer/more valid
Signed-off-by: Brandon Mathis <brandon@imathis.com>
This commit is contained in:
parent
dd5f3d3fef
commit
19320018b2
@ -10,7 +10,7 @@ module BacktickCodeBlock
|
||||
@lang = nil
|
||||
@url = nil
|
||||
@title = nil
|
||||
input.force_encoding('UTF-8')
|
||||
input.encode!("UTF-8")
|
||||
input.gsub(/^`{3} *([^\n]+)?\n(.+?)\n`{3}/m) do
|
||||
@options = $1 || ''
|
||||
str = $2
|
||||
|
Loading…
x
Reference in New Issue
Block a user