Allowing newlines in regexps
This commit is contained in:
parent
4195a101a2
commit
ca0e6fdfa9
@ -59,7 +59,7 @@ export default class Regexper {
|
||||
|
||||
this.setState('is-loading');
|
||||
|
||||
this.renderRegexp(expression.replace(/[\r\n]/g, ''))
|
||||
this.renderRegexp(expression.replace(/\n/g, '\\n'))
|
||||
.then(() => {
|
||||
this.setState('has-results');
|
||||
this.updateLinks();
|
||||
|
Loading…
Reference in New Issue
Block a user