johngodley / search-regex

Search Regex adds a powerful set of search and replace functions to WordPress that go beyond the standard searching capabilities, with full regex support.
https://searchregex.com
GNU General Public License v3.0
32 stars 8 forks source link

Exporting regex searches to CSV fails #151

Closed xjamesb closed 2 months ago

xjamesb commented 2 years ago

Summary

Exporting regex searches to CSV fails

Actual Behaviour

I actually get a .csv containing the text

[object Object]
[object Object]

Steps to reproduce

  1. search for a string for example "formidable id" in posts and pages with no flags and Action = "No action". Count the number of matches (60)
  2. change the action to "Export Matches" with the format "CSV"
  3. Click "Export Matches"
  4. Verify that the CSV file contains 60 rows (see earlier bug report for missing header row).
  5. Now change the search flag to Regex
  6. Click "Export Matches"
  7. I expect the CSV file to contain 60 rows, actually it contains the text [object Object]

Screenshot

Environment

Current

mtbluedog commented 3 months ago

Love this plugin and have been using it for years, but yes, exporting to CSV seems to be broken. I get an empty csv file with just [object Object] in it. Search parameters in screenshot.

regex pmg

johngodley commented 2 months ago

This will be fixed in the next version.

mtbluedog commented 2 months ago

Thanks!