go-search-replace icon indicating copy to clipboard operation
go-search-replace copied to clipboard

Replace does not work for serialized data if the string does not end with a new line

Open sjinks opened this issue 1 year ago • 0 comments

To reproduce:

php -r 'echo serialize("aaaaabbbbbbbbbbaaaaa");' > test.txt
cat test.txt | ./go-search-replace bbbbbbbbbb ccccc

Expected result:

s:15:"aaaaacccccaaaaa";

Actual result: empty output

sjinks avatar Dec 10 '22 21:12 sjinks