Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sjinks opened this issue Dec 10, 2022 · 0 comments

Comments

@sjinks
Copy link
Member

sjinks commented Dec 10, 2022

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 sjinks changed the title Replace does not work for serialized data if the string does not end with new line Replace does not work for serialized data if the string does not end with a new line Dec 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant