search-and-replace
search-and-replace copied to clipboard
Doesn't count spaces as difference between search terms
Describe the bug When searching for a url that has a trailing space after the domain, so as to replace it with a valid url that does not have a trailing space, it sees the search term as not being any different from the replace term.
To Reproduce Steps to reproduce the behavior:
- Create a post and insert an image and then invalidate the url by adding a space after .com i.e //mysite.com /wp-content/media/....
- Go to 'Search & Replace'
- Click on 'Search for'
- Type in: '//mysite.com /'
- Click on 'Replace with'
- Type in: '//mysite.com/'
- Select (prefix)_posts table.
- Perform dry run
Expected behavior Correctly determine urls w/ space do not match urls without space (i.e. %20%).