Allowing newlines in regexps
This commit is contained in:
1 parent
4195a101a2
commit
ca0e6fdfa9
1 file changed
+1
-1
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user