From cf72b87f08cdc6d427de6f7f93888c4399f69031 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Sat, 3 Feb 2018 15:32:05 -0800 Subject: [PATCH] Lowercase too --- pages/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/editor.js b/pages/editor.js index 3353519..dd6fd22 100644 --- a/pages/editor.js +++ b/pages/editor.js @@ -32,7 +32,7 @@ import { getState, saveState } from '../lib/util' const removeQueryString = str => { const qI = str.indexOf('?') - return (qI >= 0 ? str.substr(0, qI) : str).replace(/(?:.|\s)*<\/script>/g, '') + return (qI >= 0 ? str.substr(0, qI) : str).replace(/(?:.|\s)*<\/script>/gi, '') } class Editor extends React.Component {