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

Doesn't count spaces as difference between search terms

Open pingram3541 opened this issue 4 years ago • 0 comments

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:

  1. 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/....
  2. Go to 'Search & Replace'
  3. Click on 'Search for'
  4. Type in: '//mysite.com /'
  5. Click on 'Replace with'
  6. Type in: '//mysite.com/'
  7. Select (prefix)_posts table.
  8. Perform dry run

Expected behavior Correctly determine urls w/ space do not match urls without space (i.e. %20%).

pingram3541 avatar Jun 07 '21 20:06 pingram3541