Permalink
Browse files

More whitespace allowed in regex

  • Loading branch information...
1 parent 8569081 commit 4f63e5858e557eee454b927d85b3822e7cfd2e68 @kamens kamens committed Apr 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 khan-exercise.js
View
@@ -2541,7 +2541,7 @@ var Khan = (function() {
// into a jQuery object. IE8 will attempt to fetch these external
// scripts otherwise.
// See https://github.com/Khan/khan-exercises/issues/10957
- data = data.replace( /<script\ssrc=([^<])*<\/script>/, "" );
+ data = data.replace( /<script(\s)+src=([^<])*<\/script>/, "" );
newContents = $(data);

2 comments on commit 4f63e58

Owner

sophiebits replied Apr 10, 2012

You don't need the parens, but lgtm.

Contributor

kamens replied Apr 10, 2012

Please sign in to comment.