Skip to content

Commit

Permalink
allow dots and hyphens in comp id
Browse files Browse the repository at this point in the history
  • Loading branch information
F-Node-Karlsruhe committed Jan 3, 2023
1 parent ee67e57 commit b161263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/views/Verify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export default {
},
getCredCompId(type, id) {
const cleanString = id.replace(/^[^a-z]+|[^\w:.-]+/gi, "-").toString();
const cleanString = id.replace(/^[^a-z]+|[^\w:]+/gi, "-").toString();
return type + '-' + cleanString.substr(cleanString.length - 5, cleanString.length);
},
async fetchData() {
Expand Down

0 comments on commit b161263

Please sign in to comment.