Allowing newlines in regexps

This commit is contained in:
Jeff Avallone 2014-12-16 10:01:17 -05:00
parent 4195a101a2
commit ca0e6fdfa9

View File

@ -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();