Skip to content

Commit 2da12f7

Browse files
committed
Committing the fix for regex validation issue
1 parent 4568d62 commit 2da12f7

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)