Skip to content

Commit 6abd185

Browse files
committed
fix: weird code block corruption (#58)
This issue was produced by the wrong replacement with regex.
1 parent 75055e7 commit 6abd185

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/jekyll-spaceship/cores/processor.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,8 @@ def post_exclude(content)
193193
match = @exclusion_store.pop
194194
id = @exclusion_store.size
195195
content = content.sub(
196-
"<!JEKYLL@#{object_id}@#{id}>",
197-
match.gsub(/(\\\d)/,'\\\\\1')
198-
)
196+
"<!JEKYLL@#{object_id}@#{id}>"
197+
) { match }
199198
end
200199
@exclusion_store = []
201200
content

0 commit comments

Comments
 (0)