Skip to content

Commit e1b19b5

Browse files
committed
Merge pull request #169 from minudika/master
[CEP-1427] : regex updated to accept dot and hyphen.
2 parents 10d1771 + d2e2780 commit e1b19b5

File tree

1 file changed

+1
-1
lines changed
  • components/event-stream/org.wso2.carbon.event.stream.ui/src/main/resources/web/eventstream/js

1 file changed

+1
-1
lines changed

components/event-stream/org.wso2.carbon.event.stream.ui/src/main/resources/web/eventstream/js/event_stream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ function addStreamAttribute2(dataType, name, type) {
560560
}
561561

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

0 commit comments

Comments
 (0)