]> source.dussan.org Git - jquery.git/commitdiff
Ignore case of script tags to make sure they're removed. Fixes #5668. Thanks to Motty...
authorDave Methvin <dave.methvin@gmail.com>
Thu, 17 Dec 2009 02:13:50 +0000 (10:13 +0800)
committerJohn Resig <jeresig@gmail.com>
Thu, 17 Dec 2009 20:06:54 +0000 (04:06 +0800)
src/ajax.js

index 49c7df0a6d261a5707c565d05401365a857ec17b..edb5c54beeb1d6501021113a3edff030f34cb22b 100644 (file)
@@ -1,5 +1,5 @@
 var jsc = now(),
-       rscript = /<script(.|\s)*?\/script>/g,
+       rscript = /<script(.|\s)*?\/script>/gi,
        rselectTextarea = /select|textarea/i,
        rinput = /color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,
        jsre = /=\?(&|$)/,