Skip to content

Commit

Permalink
Add validation for dot character in course run (#403)
Browse files Browse the repository at this point in the history
Co-authored-by: Taimoor  Ahmed <[email protected]>
  • Loading branch information
taimoor-ahmed-1 and Taimoor Ahmed authored Aug 10, 2023
1 parent ab169b0 commit 664340c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/static/common/js/components/utils/view_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
return gettext('Please do not use any spaces in this field.');
}
} else {
if (item !== encodeURIComponent(item) || item.match(/[!'()*]/)) {
if (item !== encodeURIComponent(item) || item.match(/[!'.()*]/)) {
return gettext('Please do not use any spaces or special characters in this field.');
}
}
Expand Down

0 comments on commit 664340c

Please sign in to comment.