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

regular text replacement (without regex expression) discards '\' characters in articles #69

Closed RemiliaDevil closed 3 years ago

RemiliaDevil commented 3 years ago

Summary

I find that this plugin discards all characters '\' in the affected pages silently. All of my mathjax shortcodes are affected.

Steps to reproduce

  1. Create an article with regular texts containing '\' characters.
  2. Find and replace regular texts that do not contain any '\' characters.
  3. Although I do nothing related with '\' character, all the '\' characters disappear after the plugin's batch work

Environment

Chrome; OSX; search regex 2.4 ; wordpress 5.5.3; php 7.4 I have already reproduced the steps in a new-installed wordpress 5.5.3 environment without any other plugins and themes.

owenduffy commented 3 years ago

This is a really damaging bug if you use latex math expressions, I have just spent hours fixing the results of this bug.