aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2017-07-30 02:27:54 +0200
committerTeddy Wing2017-07-30 02:27:54 +0200
commit55fed7804d686fed83d9265b7f574f9b5b9d6d3e (patch)
tree597e0ec6808cc3e71f4ad1ba28b8ecb701c4ee6b /src
parent08d566f3a28370d2f63aa81ef27b405d59f6ddc0 (diff)
downloadsorbot-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.
Diffstat (limited to 'src')
-rw-r--r--src/Lib.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Lib.hs b/src/Lib.hs
index 3bc9579..ddbd41f 100644
--- a/src/Lib.hs
+++ b/src/Lib.hs
@@ -11,4 +11,4 @@ someFunc
rex :: Bool
-rex = "75ac7b18a009ffe7a77a17a61d95c01395f36b44" =~ "^[0-9a-f]{5,40}$"
+rex = "75ac7b18a009ffe7a77a17a61d95c01395f36b44" =~ "^[0-9a-f]{40}$"