Skip to content

Commit

Permalink
Committing the fix for regex validation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanvive committed Jan 12, 2016
1 parent 4568d62 commit 2da12f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ function addStreamAttribute2(dataType, name, type) {
}

function isValidName(string){
var pattern = /^([a-z][A-Z]|_|\.|-)([a-z]|[A-Z]|[0-9]|_|\.|-)*$/i;
var pattern = /^([a-z]|[A-Z]|_|\.|-)([a-z]|[A-Z]|[0-9]|_|\.|-)*$/i;
return (pattern.test(string));
}

Expand Down

0 comments on commit 2da12f7

Please sign in to comment.