Closed stupxd closed 4 months ago
Okay, seems to be a non issue, I guess, as regex patches don't create a new line ever (as seen in this example)
[[patches]]
[patches.regex]
target = "main.lua"
pattern = '(?<indent>[\t ]*)_n\,_a\,_b\,_c\,_d\,_e\,_f = name\,a\,b\,c\,d\,e\,f'
position = "before"
payload = "-- Regex patch test"
line_prepend = '$indent'
[[patches]]
[patches.regex]
target = "main.lua"
pattern = '[\t ]*-- Regex patch test'
position = "before"
payload = "-- Regex patch test but extra!"
line_prepend = '$indent'
If you have 2 patches like this
You will get a result like this
I would expect 2nd patch to be on a new line