go-search-replace
go-search-replace copied to clipboard
Replace does not work for serialized data if the string does not end with a new line
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