diff options
| author | Teddy Wing | 2017-08-17 00:46:35 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-08-17 00:46:35 +0200 | 
| commit | 40f8f12e6a749ebd5c87df5675bf4b7c2118ccef (patch) | |
| tree | 02d5f6deb9a22faf4d145b2d6df841a01e0b51a4 /src/Plugin | |
| parent | f4028e21f8a138961927b8e794b349f209b00dc7 (diff) | |
| download | sorbot-40f8f12e6a749ebd5c87df5675bf4b7c2118ccef.tar.bz2 | |
Message: Add a function to get the `text` field as a string
Clean up some of the calls to get the `text` field by adding a function
that abstracts the call to `Data.Text(unpack)`.
Diffstat (limited to 'src/Plugin')
| -rw-r--r-- | src/Plugin/GitHubCommit.hs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/Plugin/GitHubCommit.hs b/src/Plugin/GitHubCommit.hs index ee694b4..187f016 100644 --- a/src/Plugin/GitHubCommit.hs +++ b/src/Plugin/GitHubCommit.hs @@ -36,7 +36,7 @@ gitHubCommitAction message = do              \Try `git remote set origin REPO_URL`."      respond ((RepoUrlRow r):_) =          Right $ r `T.append` "/commits/" `T.append` T.pack ( -            (T.unpack $ M.text message) =~ matchRegex gitHubCommit) +            M.textStr message =~ matchRegex gitHubCommit)  type Id = Int | 
