diff options
author | Teddy Wing | 2017-07-30 02:27:54 +0200 |
---|---|---|
committer | Teddy Wing | 2017-07-30 02:27:54 +0200 |
commit | 55fed7804d686fed83d9265b7f574f9b5b9d6d3e (patch) | |
tree | 597e0ec6808cc3e71f4ad1ba28b8ecb701c4ee6b | |
parent | 08d566f3a28370d2f63aa81ef27b405d59f6ddc0 (diff) | |
download | sorbot-55fed7804d686fed83d9265b7f574f9b5b9d6d3e.tar.bz2 |
Restrict Git SHA regex to full SHAs
Only match SHAs if they're the full 40 characters long. This will become
important later when we have an actual chat bot and we don't want to
match on partial SHAs.
-rw-r--r-- | src/Lib.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,4 +11,4 @@ someFunc rex :: Bool -rex = "75ac7b18a009ffe7a77a17a61d95c01395f36b44" =~ "^[0-9a-f]{5,40}$" +rex = "75ac7b18a009ffe7a77a17a61d95c01395f36b44" =~ "^[0-9a-f]{40}$" |