diff options
Diffstat (limited to 'src/api/sanitization.js')
-rw-r--r-- | src/api/sanitization.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/api/sanitization.js b/src/api/sanitization.js deleted file mode 100644 index 95c8810..0000000 --- a/src/api/sanitization.js +++ /dev/null @@ -1,14 +0,0 @@ -function sanitizeRepoName(dirty) -{ - const valid_repo_name = /^[a-zA-Z0-9\.\-_]+$/; - return valid_repo_name.test(dirty); -} - -function sanitizeCommitID(dirty) -{ - const valid_commit_id = /^[a-fA-F0-9]{40}$/; - return valid_commit_id.test(dirty); -} - -module.exports.sanitizeRepoName = sanitizeRepoName; -module.exports.sanitizeCommitID = sanitizeCommitID;
\ No newline at end of file |