Skip to content

Commit 7d963e7

Browse files
committed
Modified NotificationMeta field validator to accept . / : characters.
1 parent 21bf766 commit 7d963e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/static/js/subscription.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jQuery(document).ready(function() {
124124

125125
// Validating notificationMeta inputs
126126
this.notificationMeta.subscribe(function (notificationMeta) {
127-
if (!(/[a-z]|[A-Z]|[0-9]/.test(String(notificationMeta).slice(-1)))) {
127+
if (!(/[a-z]|[A-Z]|[0-9]|[\:\/\.]/.test(String(notificationMeta).slice(-1)))) {
128128
$.jGrowl("Only numbers and letters is valid to type in notificationMeta field.", {
129129
sticky : false,
130130
theme : 'Error'

0 commit comments

Comments
 (0)