Commit 843abc5c authored by Kedar A.'s avatar Kedar A. 💻

Tag to have unicode and not special characters resolved

parent e5f8a68b
......@@ -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