Prevent hyphens in db-safe inputs

This commit is contained in:
rijkvanzanten
2020-11-03 19:21:20 -05:00
parent baa62027ad
commit 0abc9bcc31

View File

@@ -162,7 +162,7 @@ export default defineComponent({
}
if (props.dbSafe === true) {
const dbSafeCharacters = 'abcdefghijklmnopqrstuvwxyz01234567890-_~ '.split('');
const dbSafeCharacters = 'abcdefghijklmnopqrstuvwxyz01234567890_ '.split('');
const isAllowed = dbSafeCharacters.includes(key) || systemKeys.includes(key);