Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 256 Bytes

replace.md

File metadata and controls

25 lines (19 loc) · 256 Bytes

Examples for the replace filter

Original file

line1
line2

Output file

line1
add1
add2

Filter

addlines = "add1\nadd2\n"
filter_lines '/example/replace' do
 filters(replace: [/^line2$/, addlines])
end