Commit 5f21b5ee authored by Rachana's avatar Rachana

Merge branch 'mongokit' of https://github.com/gnowledge/gstudio into course_player

parents 2be64ad1 843abc5c
......@@ -258,7 +258,10 @@ i.remove-tag{
if(textValue.length < 1){ return false; }
if(textValue.match(/[^A-Za-z0-9\-\ ]/g))
// re expression containing special characters
var re = /[.*+=~`<>;:'"_?^${}()!%\^|[\]\\\/#]/g;
if(re.test(textValue))
{ // having special characters
$('#tags_error').removeClass("hide");
return false;
......
......@@ -980,7 +980,10 @@ $(document).ready(function(){
if(textValue.length < 1){ return false; }
if(textValue.match(/[^A-Za-z0-9\-\ ]/g))
// re expression containing special characters
var re = /[.*+=~`<>;:'"_?^${}()!%\^|[\]\\\/#]/g;
if(re.test(textValue))
{ // having special characters
$('#tags_error').removeClass("hide");
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment