enrich commit mentions by internal links e. g. "repoNamespace/repoName@commitId"

This commit is contained in:
Eduard Heimbuch
2020-06-19 11:50:58 +02:00
parent caf97d41ed
commit 0eeddd5103
11 changed files with 252 additions and 14 deletions

View File

@@ -22,7 +22,7 @@
* SOFTWARE.
*/
const nameRegex = /^[A-Za-z0-9\.\-_][A-Za-z0-9\.\-_@]*$/;
export const nameRegex = /^[A-Za-z0-9\.\-_][A-Za-z0-9\.\-_@]*$/;
export const isNameValid = (name: string) => {
return nameRegex.test(name);