Skip to content

Make isRegex not rely on errors#293

Merged
lorenzo merged 2 commits intomasterfrom
no-is-regex
Jan 4, 2017
Merged

Make isRegex not rely on errors#293
lorenzo merged 2 commits intomasterfrom
no-is-regex

Conversation

@markstory
Copy link
Copy Markdown
Member

Don't rely on errors to detect whether or not a pattern is a replacement. Also fix failing tests.

Refs cakephp/cakephp#9953

Don't use preg_match() errors to detect if a replacement is a regex
pattern. Instead require that patterns start with `/`

Refs cakephp/cakephp#9953
@markstory markstory added this to the 1.2.x milestone Jan 3, 2017
@lorenzo lorenzo merged commit f3a149a into master Jan 4, 2017
@ADmad ADmad deleted the no-is-regex branch January 4, 2017 08:10
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

Successfully merging this pull request may close these issues.

2 participants