Browse Source

[SCEditor] the regexp to find the bbcode should be case insensitive because that could (and will :P) happen

Signed-off-by: emanuele <emanuele45@gmail.com>
emanuele 12 years ago
parent
commit
b0f3079160
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Themes/default/scripts/jquery.sceditor.bbcode.js

+ 2 - 2
Themes/default/scripts/jquery.sceditor.bbcode.js

@@ -504,8 +504,8 @@
 
 			var	oldText, replaceBBCodeFunc,
 // Previous				bbcodeRegex = /\[([^\[\s=]*?)(?:([\s=][^\[]*?))?\]((?:[\s\S(?!=\[\\\1)](?!\[\1))*?)\[\/(\1)\]/g,
-				bbcodeRegex = /\[([^\[\s=]+)(?:([\s=][^\[\]]+))?\]((?:[\s\S](?!\[\1))*?)\[\/(\1)\]/g,
-				atribsRegex = /(\S+)=((?:(?:(["'])(?:\\\3|[^\3])*?\3))|(?:[^'"\s]+))/g;
+				bbcodeRegex = /\[([^\[\s=]+)(?:([\s=][^\[\]]+))?\]((?:[\s\S](?!\[\1))*?)\[\/(\1)\]/gi,
+				atribsRegex = /(\S+)=((?:(?:(["'])(?:\\\3|[^\3])*?\3))|(?:[^'"\s]+))/gi;
 
 			replaceBBCodeFunc = function(str, bbcode, attrs, content)
 			{