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

regular expression does not seem to work well #487

Open
rpf5573 opened this issue Jun 20, 2018 · 0 comments
Open

regular expression does not seem to work well #487

rpf5573 opened this issue Jun 20, 2018 · 0 comments

Comments

@rpf5573
Copy link
Contributor

rpf5573 commented Jun 20, 2018

class-editor.php - function pre_get() : 250

anspress use this code
$this->value = preg_replace_callback( '/<img\s+src="([^"]+)"[^>]+>/i', [ $this, 'image_process' ], $value );

This regular expression does not seem to work.
I'm not good at regular expression, and that code did work 2weeks ago...but my test show that it doesn't work.

Here is my test.

Check please!

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