Interestingly it appears this check happens clientside so a super-knowledgeable user could bypass the check by using the browser console to empty the “bad words” array.
It's common for the same checks to happen client-side (for user convenience and good error messages) and server-side (for the actual security/validation).