Skip to content

Find, verify, and analyze leaked credentials

[feat] - Replace regexp pkg w/ go-re2 in detectors (#2324)

ahrave44802a31db9
diff --git a/go.mod b/go.mod
index 374eafb40..0d260f798 100644
--- a/go.mod
+++ b/go.mod
@@ -204,6 +204,7 @@ require (
github.com/launchdarkly/go-semver v1.0.2 // indirect
github.com/launchdarkly/go-server-sdk-evaluation/v2 v2.0.2 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
+ github.com/magefile/mage v1.14.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
@@ -235,9 +236,11 @@ require (
github.com/sahilm/fuzzy v0.1.0 // indirect
github.com/sirupsen/logrus v1.9.1 // indirect
github.com/skeema/knownhosts v1.2.1 // indirect
+ github.com/tetratelabs/wazero v1.5.0 // indirect
github.com/therootcompany/xz v1.0.1 // indirect
github.com/ulikunitz/xz v0.5.11 // indirect
github.com/vbatts/tar-split v0.11.3 // indirect
+ github.com/wasilibs/go-re2 v1.4.1 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
github.com/xdg-go/scram v1.1.2 // indirect
diff --git a/go.sum b/go.sum
index 3a2baed76..5b0e993de 100644
--- a/go.sum
+++ b/go.sum
@@ -528,6 +528,8 @@ github.com/lrstanley/bubblezone v0.0.0-20230911164824-e3824f1adde9 h1:+7bxeCzFs4
github.com/lrstanley/bubblezone v0.0.0-20230911164824-e3824f1adde9/go.mod h1:v5lEwWaguF1o2MW/ucO0ZIA/IZymdBYJJ+2cMRLE7LU=
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
+github.com/magefile/mage v1.14.0 h1:6QDX3g6z1YvJ4olPhT1wksUcSa/V0a1B+pJb73fBjyo=
+github.com/magefile/mage v1.14.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=
github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
github.com/marusama/semaphore/v2 v2.5.0 h1:o/1QJD9DBYOWRnDhPwDVAXQn6mQYD0gZaS1Tpx6DJGM=
@@ -682,6 +684,8 @@ github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcU
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502 h1:34icjjmqJ2HPjrSuJYEkdZ+0ItmGQAQ75cRHIiftIyE=
github.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502/go.mod h1:p9lPsd+cx33L3H9nNoecRRxPssFKUwwI50I3pZ0yT+8=
+github.com/tetratelabs/wazero v1.5.0 h1:Yz3fZHivfDiZFUXnWMPUoiW7s8tC1sjdBtlJn08qYa0=
+github.com/tetratelabs/wazero v1.5.0/go.mod h1:0U0G41+ochRKoPKCJlh0jMg1CHkyfK8kDqiirMmKY8A=
github.com/therootcompany/xz v1.0.1 h1:CmOtsn1CbtmyYiusbfmhmkpAAETj0wBIH6kCYaX+xzw=
github.com/therootcompany/xz v1.0.1/go.mod h1:3K3UH1yCKgBneZYhuQUvJ9HPD19UEXEI0BWbMn8qNMY=
github.com/trufflesecurity/disk-buffer-reader v0.2.1 h1:K9nNpX3xeWT2E6YRjlcc1X5c1NjgV9JS5T9aw2FjA8Q=
@@ -694,6 +698,8 @@ github.com/ulikunitz/xz v0.5.11/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0o
github.com/urfave/cli v1.22.12/go.mod h1:sSBEIC79qR6OvcmsD4U3KABeOTxDqQtdDnaFuUN30b8=
github.com/vbatts/tar-split v0.11.3 h1:hLFqsOLQ1SsppQNTMpkpPXClLDfC2A3Zgy9OUU+RVck=
github.com/vbatts/tar-split v0.11.3/go.mod h1:9QlHN18E+fEH7RdG+QAJJcuya3rqT7eXSTY7wGrAokY=
+github.com/wasilibs/go-re2 v1.4.1 h1:E5+9O1M8UoGeqLB2A9omeoaWImqpuYDs9cKwvTJq/Oo=
+github.com/wasilibs/go-re2 v1.4.1/go.mod h1:ynB8eCwd9JsqUnsk8WlPDk6cEeme8BguZmnqOSURE4Y=
github.com/wsxiaoys/terminal v0.0.0-20160513160801-0940f3fc43a0 h1:3UeQBvD0TFrlVjOeLOBz+CPAI8dnbqNSVwUwRrkp7vQ=
github.com/wsxiaoys/terminal v0.0.0-20160513160801-0940f3fc43a0/go.mod h1:IXCdmsXIht47RaVFLEdVnh1t+pgYtTAhQGj73kz+2DM=
github.com/xanzy/go-gitlab v0.94.0 h1:GmBl2T5zqUHqyjkxFSvsT7CbelGdAH/dmBqUBqS+4BE=
diff --git a/pkg/detectors/abbysale/abbysale.go b/pkg/detectors/abbysale/abbysale.go
index f71dfd76b..7f816d40f 100644
--- a/pkg/detectors/abbysale/abbysale.go
+++ b/pkg/detectors/abbysale/abbysale.go
@@ -2,8 +2,8 @@ package abbysale
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/abstract/abstract.go b/pkg/detectors/abstract/abstract.go
index 5cdba22bb..0005e6326 100644
--- a/pkg/detectors/abstract/abstract.go
+++ b/pkg/detectors/abstract/abstract.go
@@ -3,8 +3,8 @@ package abstract
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/abuseipdb/abuseipdb.go b/pkg/detectors/abuseipdb/abuseipdb.go
index bcfda4826..dfb40ec6e 100644
--- a/pkg/detectors/abuseipdb/abuseipdb.go
+++ b/pkg/detectors/abuseipdb/abuseipdb.go
@@ -5,7 +5,7 @@ import (
"io"
"net/http"
// "log"
- "regexp"
+ regexp "github.com/wasilibs/go-re2"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/accuweather/accuweather.go b/pkg/detectors/accuweather/accuweather.go
index bf15c6d12..77ad25430 100644
--- a/pkg/detectors/accuweather/accuweather.go
+++ b/pkg/detectors/accuweather/accuweather.go
@@ -2,8 +2,8 @@ package accuweather
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/adafruitio/adafruitio.go b/pkg/detectors/adafruitio/adafruitio.go
index f0c3271b3..b699af6bd 100644
--- a/pkg/detectors/adafruitio/adafruitio.go
+++ b/pkg/detectors/adafruitio/adafruitio.go
@@ -2,8 +2,8 @@ package adafruitio
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/adobeio/adobeio.go b/pkg/detectors/adobeio/adobeio.go
index 2d9e24f1c..fae2111f7 100644
--- a/pkg/detectors/adobeio/adobeio.go
+++ b/pkg/detectors/adobeio/adobeio.go
@@ -2,8 +2,8 @@ package adobeio
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/adzuna/adzuna.go b/pkg/detectors/adzuna/adzuna.go
index b95862fc6..adf07c597 100644
--- a/pkg/detectors/adzuna/adzuna.go
+++ b/pkg/detectors/adzuna/adzuna.go
@@ -3,8 +3,8 @@ package adzuna
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/aeroworkflow/aeroworkflow.go b/pkg/detectors/aeroworkflow/aeroworkflow.go
index 7b905d760..ef534924a 100644
--- a/pkg/detectors/aeroworkflow/aeroworkflow.go
+++ b/pkg/detectors/aeroworkflow/aeroworkflow.go
@@ -2,8 +2,8 @@ package aeroworkflow
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/agora/agora.go b/pkg/detectors/agora/agora.go
index 07bb106e6..132274a17 100644
--- a/pkg/detectors/agora/agora.go
+++ b/pkg/detectors/agora/agora.go
@@ -2,8 +2,8 @@ package agora
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/aha/aha.go b/pkg/detectors/aha/aha.go
index 3007853d1..27659d21a 100644
--- a/pkg/detectors/aha/aha.go
+++ b/pkg/detectors/aha/aha.go
@@ -3,8 +3,8 @@ package aha
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go b/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go
index 97342081c..4fdd1bca7 100644
--- a/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go
+++ b/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey.go
@@ -2,8 +2,8 @@ package airbrakeprojectkey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go b/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go
index 06e260696..fc9b13f35 100644
--- a/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go
+++ b/pkg/detectors/airbrakeuserkey/airbrakeuserkey.go
@@ -2,8 +2,8 @@ package airbrakeuserkey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/airship/airship.go b/pkg/detectors/airship/airship.go
index 4ee0d00b1..70c32d54b 100644
--- a/pkg/detectors/airship/airship.go
+++ b/pkg/detectors/airship/airship.go
@@ -3,8 +3,8 @@ package airship
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/airtableapikey/airtableapikey.go b/pkg/detectors/airtableapikey/airtableapikey.go
index fea0d844c..1eaaf2032 100644
--- a/pkg/detectors/airtableapikey/airtableapikey.go
+++ b/pkg/detectors/airtableapikey/airtableapikey.go
@@ -4,8 +4,8 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/airvisual/airvisual.go b/pkg/detectors/airvisual/airvisual.go
index 4a4ccf46b..72d09348f 100644
--- a/pkg/detectors/airvisual/airvisual.go
+++ b/pkg/detectors/airvisual/airvisual.go
@@ -3,8 +3,8 @@ package airvisual
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/aiven/aiven.go b/pkg/detectors/aiven/aiven.go
index 9ed94729b..451ed8ad0 100644
--- a/pkg/detectors/aiven/aiven.go
+++ b/pkg/detectors/aiven/aiven.go
@@ -3,8 +3,8 @@ package aiven
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/alchemy/alchemy.go b/pkg/detectors/alchemy/alchemy.go
index 2e806bdbc..d9699dc0b 100644
--- a/pkg/detectors/alchemy/alchemy.go
+++ b/pkg/detectors/alchemy/alchemy.go
@@ -3,8 +3,8 @@ package alchemy
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/alconost/alconost.go b/pkg/detectors/alconost/alconost.go
index 9ce7746cd..99699c9f0 100644
--- a/pkg/detectors/alconost/alconost.go
+++ b/pkg/detectors/alconost/alconost.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/alegra/alegra.go b/pkg/detectors/alegra/alegra.go
index 681677f4c..8ef7c0b9c 100644
--- a/pkg/detectors/alegra/alegra.go
+++ b/pkg/detectors/alegra/alegra.go
@@ -2,8 +2,8 @@ package alegra
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/aletheiaapi/aletheiaapi.go b/pkg/detectors/aletheiaapi/aletheiaapi.go
index 7e3e987c7..c22eee4c8 100644
--- a/pkg/detectors/aletheiaapi/aletheiaapi.go
+++ b/pkg/detectors/aletheiaapi/aletheiaapi.go
@@ -2,8 +2,8 @@ package aletheiaapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/algoliaadminkey/algoliaadminkey.go b/pkg/detectors/algoliaadminkey/algoliaadminkey.go
index bd5c43507..49c15b3e3 100644
--- a/pkg/detectors/algoliaadminkey/algoliaadminkey.go
+++ b/pkg/detectors/algoliaadminkey/algoliaadminkey.go
@@ -2,8 +2,8 @@ package algoliaadminkey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/alibaba/alibaba.go b/pkg/detectors/alibaba/alibaba.go
index 3dd5ce0ef..2e03009aa 100644
--- a/pkg/detectors/alibaba/alibaba.go
+++ b/pkg/detectors/alibaba/alibaba.go
@@ -6,9 +6,9 @@ import (
"crypto/rand"
"crypto/sha1"
"encoding/base64"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
"net/url"
- "regexp"
"strconv"
"strings"
"time"
diff --git a/pkg/detectors/alienvault/alienvault.go b/pkg/detectors/alienvault/alienvault.go
index b1c434328..61a38ced5 100644
--- a/pkg/detectors/alienvault/alienvault.go
+++ b/pkg/detectors/alienvault/alienvault.go
@@ -2,8 +2,8 @@ package alienvault
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/allsports/allsports.go b/pkg/detectors/allsports/allsports.go
index 2250e7690..2fef074fb 100644
--- a/pkg/detectors/allsports/allsports.go
+++ b/pkg/detectors/allsports/allsports.go
@@ -5,7 +5,7 @@ import (
"io"
"net/http"
// "log"
- "regexp"
+ regexp "github.com/wasilibs/go-re2"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/amadeus/amadeus.go b/pkg/detectors/amadeus/amadeus.go
index 2682f154f..561dba6fa 100644
--- a/pkg/detectors/amadeus/amadeus.go
+++ b/pkg/detectors/amadeus/amadeus.go
@@ -2,9 +2,9 @@ package amadeus
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ambee/ambee.go b/pkg/detectors/ambee/ambee.go
index d35ee2d55..1441e6eb4 100644
--- a/pkg/detectors/ambee/ambee.go
+++ b/pkg/detectors/ambee/ambee.go
@@ -2,8 +2,8 @@ package ambee
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/amplitudeapikey/amplitudeapikey.go b/pkg/detectors/amplitudeapikey/amplitudeapikey.go
index c39de0da0..9cfcb725d 100644
--- a/pkg/detectors/amplitudeapikey/amplitudeapikey.go
+++ b/pkg/detectors/amplitudeapikey/amplitudeapikey.go
@@ -2,8 +2,8 @@ package amplitudeapikey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/anthropic/anthropic.go b/pkg/detectors/anthropic/anthropic.go
index bf4d74d57..53319dbed 100644
--- a/pkg/detectors/anthropic/anthropic.go
+++ b/pkg/detectors/anthropic/anthropic.go
@@ -5,8 +5,8 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/anypoint/anypoint.go b/pkg/detectors/anypoint/anypoint.go
index b501da673..826a15f5e 100644
--- a/pkg/detectors/anypoint/anypoint.go
+++ b/pkg/detectors/anypoint/anypoint.go
@@ -3,8 +3,8 @@ package anypoint
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/apacta/apacta.go b/pkg/detectors/apacta/apacta.go
index fea8c0ad2..7789c2044 100644
--- a/pkg/detectors/apacta/apacta.go
+++ b/pkg/detectors/apacta/apacta.go
@@ -3,8 +3,8 @@ package apacta
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/api2cart/api2cart.go b/pkg/detectors/api2cart/api2cart.go
index 013b830dc..dd3080963 100644
--- a/pkg/detectors/api2cart/api2cart.go
+++ b/pkg/detectors/api2cart/api2cart.go
@@ -4,9 +4,9 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/apideck/apideck.go b/pkg/detectors/apideck/apideck.go
index 5bac10c5d..03a6eb10f 100644
--- a/pkg/detectors/apideck/apideck.go
+++ b/pkg/detectors/apideck/apideck.go
@@ -3,8 +3,8 @@ package apideck
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/apiflash/apiflash.go b/pkg/detectors/apiflash/apiflash.go
index 65209b7c8..ed07a722a 100644
--- a/pkg/detectors/apiflash/apiflash.go
+++ b/pkg/detectors/apiflash/apiflash.go
@@ -3,8 +3,8 @@ package apiflash
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/apifonica/apifonica.go b/pkg/detectors/apifonica/apifonica.go
index e47e24b56..dbe1dcd55 100644
--- a/pkg/detectors/apifonica/apifonica.go
+++ b/pkg/detectors/apifonica/apifonica.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/apify/apify.go b/pkg/detectors/apify/apify.go
index e1e4361b4..d75b19800 100644
--- a/pkg/detectors/apify/apify.go
+++ b/pkg/detectors/apify/apify.go
@@ -2,8 +2,8 @@ package apify
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/apilayer/apilayer.go b/pkg/detectors/apilayer/apilayer.go
index a0c92f537..144510bb7 100644
--- a/pkg/detectors/apilayer/apilayer.go
+++ b/pkg/detectors/apilayer/apilayer.go
@@ -2,8 +2,8 @@ package apilayer
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/apimatic/apimatic.go b/pkg/detectors/apimatic/apimatic.go
index 2ea2e070c..ca37f0e2a 100644
--- a/pkg/detectors/apimatic/apimatic.go
+++ b/pkg/detectors/apimatic/apimatic.go
@@ -2,8 +2,8 @@ package apimatic
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/apiscience/apiscience.go b/pkg/detectors/apiscience/apiscience.go
index e26e2fd3f..c7308f8e5 100644
--- a/pkg/detectors/apiscience/apiscience.go
+++ b/pkg/detectors/apiscience/apiscience.go
@@ -3,8 +3,8 @@ package apiscience
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/apitemplate/apitemplate.go b/pkg/detectors/apitemplate/apitemplate.go
index d7e403edc..554f2fffb 100644
--- a/pkg/detectors/apitemplate/apitemplate.go
+++ b/pkg/detectors/apitemplate/apitemplate.go
@@ -2,8 +2,8 @@ package apitemplate
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/apollo/apollo.go b/pkg/detectors/apollo/apollo.go
index ef9664943..30ff0f0b1 100644
--- a/pkg/detectors/apollo/apollo.go
+++ b/pkg/detectors/apollo/apollo.go
@@ -3,8 +3,8 @@ package apollo
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/appcues/appcues.go b/pkg/detectors/appcues/appcues.go
index f3d168a54..687e1f0f5 100644
--- a/pkg/detectors/appcues/appcues.go
+++ b/pkg/detectors/appcues/appcues.go
@@ -3,8 +3,8 @@ package appcues
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/appfollow/appfollow.go b/pkg/detectors/appfollow/appfollow.go
index 7e3e37abf..d0bf67166 100644
--- a/pkg/detectors/appfollow/appfollow.go
+++ b/pkg/detectors/appfollow/appfollow.go
@@ -2,8 +2,8 @@ package appfollow
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/appointedd/appointedd.go b/pkg/detectors/appointedd/appointedd.go
index 2ce2c0378..6c6e3fe38 100644
--- a/pkg/detectors/appointedd/appointedd.go
+++ b/pkg/detectors/appointedd/appointedd.go
@@ -2,9 +2,9 @@ package appointedd
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/appoptics/appoptics.go b/pkg/detectors/appoptics/appoptics.go
index 90229a97c..3b623ffbf 100644
--- a/pkg/detectors/appoptics/appoptics.go
+++ b/pkg/detectors/appoptics/appoptics.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/appsynergy/appsynergy.go b/pkg/detectors/appsynergy/appsynergy.go
index 57284e241..210732e8a 100644
--- a/pkg/detectors/appsynergy/appsynergy.go
+++ b/pkg/detectors/appsynergy/appsynergy.go
@@ -3,8 +3,8 @@ package appsynergy
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/apptivo/apptivo.go b/pkg/detectors/apptivo/apptivo.go
index 0763e06a9..5a4362c0b 100644
--- a/pkg/detectors/apptivo/apptivo.go
+++ b/pkg/detectors/apptivo/apptivo.go
@@ -3,9 +3,9 @@ package apptivo
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/artifactory/artifactory.go b/pkg/detectors/artifactory/artifactory.go
index e0af41f4d..a5bf88994 100644
--- a/pkg/detectors/artifactory/artifactory.go
+++ b/pkg/detectors/artifactory/artifactory.go
@@ -2,8 +2,8 @@ package artifactory
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/artsy/artsy.go b/pkg/detectors/artsy/artsy.go
index 2cd90e019..d99a8a5c6 100644
--- a/pkg/detectors/artsy/artsy.go
+++ b/pkg/detectors/artsy/artsy.go
@@ -2,8 +2,8 @@ package artsy
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/asanaoauth/asanaoauth.go b/pkg/detectors/asanaoauth/asanaoauth.go
index e20c07f28..f6bb6dd17 100644
--- a/pkg/detectors/asanaoauth/asanaoauth.go
+++ b/pkg/detectors/asanaoauth/asanaoauth.go
@@ -3,8 +3,8 @@ package asanaoauth
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go b/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go
index de5a83d7f..0f220fbff 100644
--- a/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go
+++ b/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken.go
@@ -3,8 +3,8 @@ package asanapersonalaccesstoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/assemblyai/assemblyai.go b/pkg/detectors/assemblyai/assemblyai.go
index 0a55dc376..56715eea1 100644
--- a/pkg/detectors/assemblyai/assemblyai.go
+++ b/pkg/detectors/assemblyai/assemblyai.go
@@ -2,8 +2,8 @@ package assemblyai
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/atera/atera.go b/pkg/detectors/atera/atera.go
index 8b5d89da1..44f9b5c8b 100644
--- a/pkg/detectors/atera/atera.go
+++ b/pkg/detectors/atera/atera.go
@@ -2,8 +2,8 @@ package atera
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/audd/audd.go b/pkg/detectors/audd/audd.go
index 439ff4c17..a73673d79 100644
--- a/pkg/detectors/audd/audd.go
+++ b/pkg/detectors/audd/audd.go
@@ -3,9 +3,9 @@ package audd
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go b/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go
index 358ed1aea..657033025 100644
--- a/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go
+++ b/pkg/detectors/auth0managementapitoken/auth0managementapitoken.go
@@ -3,8 +3,8 @@ package auth0managementapitoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/auth0oauth/auth0oauth.go b/pkg/detectors/auth0oauth/auth0oauth.go
index d5db3ad6f..5694fb9f5 100644
--- a/pkg/detectors/auth0oauth/auth0oauth.go
+++ b/pkg/detectors/auth0oauth/auth0oauth.go
@@ -2,10 +2,10 @@ package auth0oauth
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
"net/url"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/autodesk/autodesk.go b/pkg/detectors/autodesk/autodesk.go
index a02ccbf8d..f40c75f23 100644
--- a/pkg/detectors/autodesk/autodesk.go
+++ b/pkg/detectors/autodesk/autodesk.go
@@ -3,8 +3,8 @@ package autodesk
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/autoklose/autoklose.go b/pkg/detectors/autoklose/autoklose.go
index 77f3f2ac2..cadbb030f 100644
--- a/pkg/detectors/autoklose/autoklose.go
+++ b/pkg/detectors/autoklose/autoklose.go
@@ -4,9 +4,9 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/autopilot/autopilot.go b/pkg/detectors/autopilot/autopilot.go
index bf14824e6..fca023681 100644
--- a/pkg/detectors/autopilot/autopilot.go
+++ b/pkg/detectors/autopilot/autopilot.go
@@ -2,8 +2,8 @@ package autopilot
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go b/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go
index 9bcda4010..60a8d77ce 100644
--- a/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go
+++ b/pkg/detectors/avazapersonalaccesstoken/avazapersonalaccesstoken.go
@@ -3,8 +3,8 @@ package avazapersonalaccesstoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/aviationstack/aviationstack.go b/pkg/detectors/aviationstack/aviationstack.go
index f2f251bca..bf4aabbe4 100644
--- a/pkg/detectors/aviationstack/aviationstack.go
+++ b/pkg/detectors/aviationstack/aviationstack.go
@@ -3,8 +3,8 @@ package aviationstack
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/aws/aws.go b/pkg/detectors/aws/aws.go
index b29cd8380..cd17dd249 100644
--- a/pkg/detectors/aws/aws.go
+++ b/pkg/detectors/aws/aws.go
@@ -8,10 +8,11 @@ import (
"encoding/json"
"fmt"
"net/http"
- "regexp"
"strings"
"time"
+ regexp "github.com/wasilibs/go-re2"
+
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
"github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"
diff --git a/pkg/detectors/awssessionkeys/awssessionkey.go b/pkg/detectors/awssessionkeys/awssessionkey.go
index 16e87bc7a..8d68e548a 100644
--- a/pkg/detectors/awssessionkeys/awssessionkey.go
+++ b/pkg/detectors/awssessionkeys/awssessionkey.go
@@ -7,8 +7,8 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/axonaut/axonaut.go b/pkg/detectors/axonaut/axonaut.go
index 4464f5982..4b6424eeb 100644
--- a/pkg/detectors/axonaut/axonaut.go
+++ b/pkg/detectors/axonaut/axonaut.go
@@ -2,8 +2,8 @@ package axonaut
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/aylien/aylien.go b/pkg/detectors/aylien/aylien.go
index cfa4407c9..af413b8d1 100644
--- a/pkg/detectors/aylien/aylien.go
+++ b/pkg/detectors/aylien/aylien.go
@@ -2,8 +2,8 @@ package aylien
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ayrshare/ayrshare.go b/pkg/detectors/ayrshare/ayrshare.go
index 2c013a232..b5e2a2c8a 100644
--- a/pkg/detectors/ayrshare/ayrshare.go
+++ b/pkg/detectors/ayrshare/ayrshare.go
@@ -3,8 +3,8 @@ package ayrshare
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/azure/azure.go b/pkg/detectors/azure/azure.go
index 67a54e371..c20a2f882 100644
--- a/pkg/detectors/azure/azure.go
+++ b/pkg/detectors/azure/azure.go
@@ -3,7 +3,7 @@ package azure
import (
"context"
"fmt"
- "regexp"
+ regexp "github.com/wasilibs/go-re2"
"strings"
"github.com/Azure/go-autorest/autorest/azure/auth"
diff --git a/pkg/detectors/azurebatch/azurebatch.go b/pkg/detectors/azurebatch/azurebatch.go
index 576fcd43a..5297ae693 100644
--- a/pkg/detectors/azurebatch/azurebatch.go
+++ b/pkg/detectors/azurebatch/azurebatch.go
@@ -6,8 +6,8 @@ import (
"crypto/sha256"
"encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/azurecontainerregistry/azurecontainerregistry.go b/pkg/detectors/azurecontainerregistry/azurecontainerregistry.go
index d29e81572..ae831c7f1 100644
--- a/pkg/detectors/azurecontainerregistry/azurecontainerregistry.go
+++ b/pkg/detectors/azurecontainerregistry/azurecontainerregistry.go
@@ -4,8 +4,8 @@ import (
"context"
"encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/azurestorage/azurestorage.go b/pkg/detectors/azurestorage/azurestorage.go
index b43be3d18..362fffd84 100644
--- a/pkg/detectors/azurestorage/azurestorage.go
+++ b/pkg/detectors/azurestorage/azurestorage.go
@@ -6,8 +6,8 @@ import (
"crypto/sha256"
"encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/azurestorage/azurestorage_test.go b/pkg/detectors/azurestorage/azurestorage_test.go
index b48844266..343f65390 100644
--- a/pkg/detectors/azurestorage/azurestorage_test.go
+++ b/pkg/detectors/azurestorage/azurestorage_test.go
@@ -6,7 +6,7 @@ package azurestorage
import (
"context"
"fmt"
- "regexp"
+ regexp "github.com/wasilibs/go-re2"
"strings"
"testing"
"time"
diff --git a/pkg/detectors/bannerbear/bannerbear.go b/pkg/detectors/bannerbear/bannerbear.go
index 3ab0ae88d..3c4e9a66f 100644
--- a/pkg/detectors/bannerbear/bannerbear.go
+++ b/pkg/detectors/bannerbear/bannerbear.go
@@ -3,8 +3,8 @@ package bannerbear
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/baremetrics/baremetrics.go b/pkg/detectors/baremetrics/baremetrics.go
index 9d29b6722..f30568096 100644
--- a/pkg/detectors/baremetrics/baremetrics.go
+++ b/pkg/detectors/baremetrics/baremetrics.go
@@ -3,8 +3,8 @@ package baremetrics
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/beamer/beamer.go b/pkg/detectors/beamer/beamer.go
index 30f7333d1..f6b8d5fa5 100644
--- a/pkg/detectors/beamer/beamer.go
+++ b/pkg/detectors/beamer/beamer.go
@@ -2,8 +2,8 @@ package beamer
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/beebole/beebole.go b/pkg/detectors/beebole/beebole.go
index f74642310..23936d10e 100644
--- a/pkg/detectors/beebole/beebole.go
+++ b/pkg/detectors/beebole/beebole.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/besnappy/besnappy.go b/pkg/detectors/besnappy/besnappy.go
index d51d93f4c..4ccedbc1b 100644
--- a/pkg/detectors/besnappy/besnappy.go
+++ b/pkg/detectors/besnappy/besnappy.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/besttime/besttime.go b/pkg/detectors/besttime/besttime.go
index e251de7c8..9afd781f7 100644
--- a/pkg/detectors/besttime/besttime.go
+++ b/pkg/detectors/besttime/besttime.go
@@ -2,9 +2,9 @@ package besttime
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/betterstack/betterstack.go b/pkg/detectors/betterstack/betterstack.go
index a95552b03..c38b6b67a 100644
--- a/pkg/detectors/betterstack/betterstack.go
+++ b/pkg/detectors/betterstack/betterstack.go
@@ -3,8 +3,8 @@ package betterstack
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/billomat/billomat.go b/pkg/detectors/billomat/billomat.go
index 8eb775620..5dd10e87f 100644
--- a/pkg/detectors/billomat/billomat.go
+++ b/pkg/detectors/billomat/billomat.go
@@ -3,8 +3,8 @@ package billomat
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/bitbar/bitbar.go b/pkg/detectors/bitbar/bitbar.go
index 4463fe035..1a93dded5 100644
--- a/pkg/detectors/bitbar/bitbar.go
+++ b/pkg/detectors/bitbar/bitbar.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/bitcoinaverage/bitcoinaverage.go b/pkg/detectors/bitcoinaverage/bitcoinaverage.go
index c278292a7..079f5a8bf 100644
--- a/pkg/detectors/bitcoinaverage/bitcoinaverage.go
+++ b/pkg/detectors/bitcoinaverage/bitcoinaverage.go
@@ -3,8 +3,8 @@ package bitcoinaverage
import (
"context"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/bitfinex/bitfinex.go b/pkg/detectors/bitfinex/bitfinex.go
index c53c9f07e..1c1145ffb 100644
--- a/pkg/detectors/bitfinex/bitfinex.go
+++ b/pkg/detectors/bitfinex/bitfinex.go
@@ -3,8 +3,8 @@ package bitfinex
import (
"context"
"flag"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/bitfinexcom/bitfinex-api-go/v2/rest"
diff --git a/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go b/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go
index 30ce2d1f2..136ce30e0 100644
--- a/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go
+++ b/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken.go
@@ -3,8 +3,8 @@ package bitlyaccesstoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/bitmex/bitmex.go b/pkg/detectors/bitmex/bitmex.go
index d83e8f4d4..a2fa65a6b 100644
--- a/pkg/detectors/bitmex/bitmex.go
+++ b/pkg/detectors/bitmex/bitmex.go
@@ -5,9 +5,9 @@ import (
"crypto/hmac"
"crypto/sha256"
"encoding/hex"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
"net/url"
- "regexp"
"strconv"
"strings"
"time"
diff --git a/pkg/detectors/blazemeter/blazemeter.go b/pkg/detectors/blazemeter/blazemeter.go
index de794b75f..8245e2b8f 100644
--- a/pkg/detectors/blazemeter/blazemeter.go
+++ b/pkg/detectors/blazemeter/blazemeter.go
@@ -3,8 +3,8 @@ package blazemeter
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/blitapp/blitapp.go b/pkg/detectors/blitapp/blitapp.go
index 430945870..f390a2587 100644
--- a/pkg/detectors/blitapp/blitapp.go
+++ b/pkg/detectors/blitapp/blitapp.go
@@ -2,8 +2,8 @@ package blitapp
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/blocknative/blocknative.go b/pkg/detectors/blocknative/blocknative.go
index 2da32a623..3da23aa8b 100644
--- a/pkg/detectors/blocknative/blocknative.go
+++ b/pkg/detectors/blocknative/blocknative.go
@@ -2,9 +2,9 @@ package blocknative
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/blogger/blogger.go b/pkg/detectors/blogger/blogger.go
index 7070b619b..2f3db1dfe 100644
--- a/pkg/detectors/blogger/blogger.go
+++ b/pkg/detectors/blogger/blogger.go
@@ -2,8 +2,8 @@ package blogger
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/bombbomb/bombbomb.go b/pkg/detectors/bombbomb/bombbomb.go
index e241e5433..cfee96adf 100644
--- a/pkg/detectors/bombbomb/bombbomb.go
+++ b/pkg/detectors/bombbomb/bombbomb.go
@@ -2,8 +2,8 @@ package bombbomb
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/boostnote/boostnote.go b/pkg/detectors/boostnote/boostnote.go
index 83fa99d05..b3a026f05 100644
--- a/pkg/detectors/boostnote/boostnote.go
+++ b/pkg/detectors/boostnote/boostnote.go
@@ -3,8 +3,8 @@ package boostnote
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/borgbase/borgbase.go b/pkg/detectors/borgbase/borgbase.go
index 8a0267409..eeb90c3cb 100644
--- a/pkg/detectors/borgbase/borgbase.go
+++ b/pkg/detectors/borgbase/borgbase.go
@@ -3,9 +3,9 @@ package borgbase
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/braintreepayments/braintreepayments.go b/pkg/detectors/braintreepayments/braintreepayments.go
index 8c79d4284..ffbb433c6 100644
--- a/pkg/detectors/braintreepayments/braintreepayments.go
+++ b/pkg/detectors/braintreepayments/braintreepayments.go
@@ -3,9 +3,9 @@ package braintreepayments
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/brandfetch/brandfetch.go b/pkg/detectors/brandfetch/brandfetch.go
index 606e7153c..fbcfb5705 100644
--- a/pkg/detectors/brandfetch/brandfetch.go
+++ b/pkg/detectors/brandfetch/brandfetch.go
@@ -2,8 +2,8 @@ package brandfetch
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/browserstack/browserstack.go b/pkg/detectors/browserstack/browserstack.go
index d0f1f52a4..7d31d0ebe 100644
--- a/pkg/detectors/browserstack/browserstack.go
+++ b/pkg/detectors/browserstack/browserstack.go
@@ -3,10 +3,10 @@ package browserstack
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
"net/http/cookiejar"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/browshot/browshot.go b/pkg/detectors/browshot/browshot.go
index 4bd7266ec..b58595a66 100644
--- a/pkg/detectors/browshot/browshot.go
+++ b/pkg/detectors/browshot/browshot.go
@@ -2,8 +2,8 @@ package browshot
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/bscscan/bscscan.go b/pkg/detectors/bscscan/bscscan.go
index ebd2718f9..83bc89b0a 100644
--- a/pkg/detectors/bscscan/bscscan.go
+++ b/pkg/detectors/bscscan/bscscan.go
@@ -2,9 +2,9 @@ package bscscan
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
@@ -55,22 +55,22 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
res, err := client.Do(req)
if err == nil {
defer res.Body.Close()
- bodyBytes, err := io.ReadAll(res.Body)
- if err != nil {
- continue
- }
- body := string(bodyBytes)
-
- if !strings.Contains(body, "NOTOK") {
- s1.Verified = true
- } else {
- // This function will check false positives for common test words, but also it will make sur>
- if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {
- continue
- }
- }
- }
- }
+ bodyBytes, err := io.ReadAll(res.Body)
+ if err != nil {
+ continue
+ }
+ body := string(bodyBytes)
+
+ if !strings.Contains(body, "NOTOK") {
+ s1.Verified = true
+ } else {
+ // This function will check false positives for common test words, but also it will make sur>
+ if detectors.IsKnownFalsePositive(resMatch, detectors.DefaultFalsePositives, true) {
+ continue
+ }
+ }
+ }
+ }
results = append(results, s1)
}
diff --git a/pkg/detectors/buddyns/buddyns.go b/pkg/detectors/buddyns/buddyns.go
index fbf4d206c..c3ff73ff9 100644
--- a/pkg/detectors/buddyns/buddyns.go
+++ b/pkg/detectors/buddyns/buddyns.go
@@ -3,8 +3,8 @@ package buddyns
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/budibase/budibase.go b/pkg/detectors/budibase/budibase.go
index 22186b03e..d5d7edb30 100644
--- a/pkg/detectors/budibase/budibase.go
+++ b/pkg/detectors/budibase/budibase.go
@@ -3,8 +3,8 @@ package budibase
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/bugherd/bugherd.go b/pkg/detectors/bugherd/bugherd.go
index f7c789cad..94b5e302a 100644
--- a/pkg/detectors/bugherd/bugherd.go
+++ b/pkg/detectors/bugherd/bugherd.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/bugsnag/bugsnag.go b/pkg/detectors/bugsnag/bugsnag.go
index 1c4f7a33d..4d1fba369 100644
--- a/pkg/detectors/bugsnag/bugsnag.go
+++ b/pkg/detectors/bugsnag/bugsnag.go
@@ -3,8 +3,8 @@ package bugsnag
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/buildkite/buildkite.go b/pkg/detectors/buildkite/buildkite.go
index d04c4c753..a8f0c3a9b 100644
--- a/pkg/detectors/buildkite/buildkite.go
+++ b/pkg/detectors/buildkite/buildkite.go
@@ -3,8 +3,8 @@ package buildkite
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/buildkitev2/buildkite.go b/pkg/detectors/buildkitev2/buildkite.go
index 8e5d4a783..4c97e7b7e 100644
--- a/pkg/detectors/buildkitev2/buildkite.go
+++ b/pkg/detectors/buildkitev2/buildkite.go
@@ -3,8 +3,8 @@ package buildkitev2
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/bulbul/bulbul.go b/pkg/detectors/bulbul/bulbul.go
index 81e37ca04..2a2d6c809 100644
--- a/pkg/detectors/bulbul/bulbul.go
+++ b/pkg/detectors/bulbul/bulbul.go
@@ -3,9 +3,9 @@ package bulbul
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/bulksms/bulksms.go b/pkg/detectors/bulksms/bulksms.go
index faf202736..7240b1da3 100644
--- a/pkg/detectors/bulksms/bulksms.go
+++ b/pkg/detectors/bulksms/bulksms.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/buttercms/buttercms.go b/pkg/detectors/buttercms/buttercms.go
index f6d83c2cc..abd813fb3 100644
--- a/pkg/detectors/buttercms/buttercms.go
+++ b/pkg/detectors/buttercms/buttercms.go
@@ -2,8 +2,8 @@ package buttercms
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/caflou/caflou.go b/pkg/detectors/caflou/caflou.go
index 8ff5c5e86..ccd28ccb4 100644
--- a/pkg/detectors/caflou/caflou.go
+++ b/pkg/detectors/caflou/caflou.go
@@ -3,8 +3,8 @@ package caflou
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/calendarific/calendarific.go b/pkg/detectors/calendarific/calendarific.go
index 26e704a0b..774685bb0 100644
--- a/pkg/detectors/calendarific/calendarific.go
+++ b/pkg/detectors/calendarific/calendarific.go
@@ -2,8 +2,8 @@ package calendarific
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/calendlyapikey/calendlyapikey.go b/pkg/detectors/calendlyapikey/calendlyapikey.go
index bdd92123d..730c24f9c 100644
--- a/pkg/detectors/calendlyapikey/calendlyapikey.go
+++ b/pkg/detectors/calendlyapikey/calendlyapikey.go
@@ -3,8 +3,8 @@ package calendlyapikey
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/calorieninja/calorieninja.go b/pkg/detectors/calorieninja/calorieninja.go
index 41f160823..d6bc61c10 100644
--- a/pkg/detectors/calorieninja/calorieninja.go
+++ b/pkg/detectors/calorieninja/calorieninja.go
@@ -2,8 +2,8 @@ package calorieninja
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/campayn/campayn.go b/pkg/detectors/campayn/campayn.go
index 3625a3078..1f66cc3bb 100644
--- a/pkg/detectors/campayn/campayn.go
+++ b/pkg/detectors/campayn/campayn.go
@@ -2,8 +2,8 @@ package campayn
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cannyio/cannyio.go b/pkg/detectors/cannyio/cannyio.go
index e1bfd845c..8abc2ea02 100644
--- a/pkg/detectors/cannyio/cannyio.go
+++ b/pkg/detectors/cannyio/cannyio.go
@@ -2,8 +2,8 @@ package cannyio
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/capsulecrm/capsulecrm.go b/pkg/detectors/capsulecrm/capsulecrm.go
index cb2e176c5..4a2a14b21 100644
--- a/pkg/detectors/capsulecrm/capsulecrm.go
+++ b/pkg/detectors/capsulecrm/capsulecrm.go
@@ -3,8 +3,8 @@ package capsulecrm
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/captaindata/captaindata.go b/pkg/detectors/captaindata/captaindata.go
index 308ddeeb2..d43012534 100644
--- a/pkg/detectors/captaindata/captaindata.go
+++ b/pkg/detectors/captaindata/captaindata.go
@@ -2,8 +2,8 @@ package captaindata
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/carboninterface/carboninterface.go b/pkg/detectors/carboninterface/carboninterface.go
index eb29a4ab4..cd70bc5bc 100644
--- a/pkg/detectors/carboninterface/carboninterface.go
+++ b/pkg/detectors/carboninterface/carboninterface.go
@@ -3,8 +3,8 @@ package carboninterface
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cashboard/cashboard.go b/pkg/detectors/cashboard/cashboard.go
index df7110d82..bc48620f8 100644
--- a/pkg/detectors/cashboard/cashboard.go
+++ b/pkg/detectors/cashboard/cashboard.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/caspio/caspio.go b/pkg/detectors/caspio/caspio.go
index 6be190135..c5d115e01 100644
--- a/pkg/detectors/caspio/caspio.go
+++ b/pkg/detectors/caspio/caspio.go
@@ -3,8 +3,8 @@ package caspio
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/censys/censys.go b/pkg/detectors/censys/censys.go
index f9a0234d6..766184f9b 100644
--- a/pkg/detectors/censys/censys.go
+++ b/pkg/detectors/censys/censys.go
@@ -2,8 +2,8 @@ package censys
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/centralstationcrm/centralstationcrm.go b/pkg/detectors/centralstationcrm/centralstationcrm.go
index 89b6b1f4f..4d033163a 100644
--- a/pkg/detectors/centralstationcrm/centralstationcrm.go
+++ b/pkg/detectors/centralstationcrm/centralstationcrm.go
@@ -2,8 +2,8 @@ package centralstationcrm
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cexio/cexio.go b/pkg/detectors/cexio/cexio.go
index baf4f29c1..bb4ec51e7 100644
--- a/pkg/detectors/cexio/cexio.go
+++ b/pkg/detectors/cexio/cexio.go
@@ -6,10 +6,10 @@ import (
"crypto/sha256"
"encoding/hex"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
"net/url"
- "regexp"
"strconv"
"strings"
"time"
diff --git a/pkg/detectors/chartmogul/chartmogul.go b/pkg/detectors/chartmogul/chartmogul.go
index 03baa481f..fd65f52cd 100644
--- a/pkg/detectors/chartmogul/chartmogul.go
+++ b/pkg/detectors/chartmogul/chartmogul.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/chatbot/chatbot.go b/pkg/detectors/chatbot/chatbot.go
index 458810e6d..fb3ceeb93 100644
--- a/pkg/detectors/chatbot/chatbot.go
+++ b/pkg/detectors/chatbot/chatbot.go
@@ -3,8 +3,8 @@ package chatbot
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/chatfule/chatfule.go b/pkg/detectors/chatfule/chatfule.go
index 1fc150119..15d18b01e 100644
--- a/pkg/detectors/chatfule/chatfule.go
+++ b/pkg/detectors/chatfule/chatfule.go
@@ -3,8 +3,8 @@ package chatfule
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/checio/checio.go b/pkg/detectors/checio/checio.go
index 690c88831..0b3a1823b 100644
--- a/pkg/detectors/checio/checio.go
+++ b/pkg/detectors/checio/checio.go
@@ -3,8 +3,8 @@ package checio
import (
"context"
// "log"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/checklyhq/checklyhq.go b/pkg/detectors/checklyhq/checklyhq.go
index ec89e87b6..e36e73537 100644
--- a/pkg/detectors/checklyhq/checklyhq.go
+++ b/pkg/detectors/checklyhq/checklyhq.go
@@ -3,8 +3,8 @@ package checklyhq
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/checkout/checkout.go b/pkg/detectors/checkout/checkout.go
index c845e2654..daa4eef90 100644
--- a/pkg/detectors/checkout/checkout.go
+++ b/pkg/detectors/checkout/checkout.go
@@ -2,8 +2,8 @@ package checkout
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/checkvist/checkvist.go b/pkg/detectors/checkvist/checkvist.go
index b2a4887be..8affe43e5 100644
--- a/pkg/detectors/checkvist/checkvist.go
+++ b/pkg/detectors/checkvist/checkvist.go
@@ -2,9 +2,9 @@ package checkvist
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
"net/url"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cicero/cicero.go b/pkg/detectors/cicero/cicero.go
index 6e317bf8a..8461aab26 100644
--- a/pkg/detectors/cicero/cicero.go
+++ b/pkg/detectors/cicero/cicero.go
@@ -3,8 +3,8 @@ package cicero
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/circleci/circleci.go b/pkg/detectors/circleci/circleci.go
index 8c8d77da7..22ab9cdce 100644
--- a/pkg/detectors/circleci/circleci.go
+++ b/pkg/detectors/circleci/circleci.go
@@ -2,8 +2,8 @@ package circleci
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
"github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"
diff --git a/pkg/detectors/clarifai/clarifai.go b/pkg/detectors/clarifai/clarifai.go
index 14ba35456..d019d8744 100644
--- a/pkg/detectors/clarifai/clarifai.go
+++ b/pkg/detectors/clarifai/clarifai.go
@@ -3,8 +3,8 @@ package clarifai
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/clearbit/clearbit.go b/pkg/detectors/clearbit/clearbit.go
index 6fcb7e8db..376f96cb0 100644
--- a/pkg/detectors/clearbit/clearbit.go
+++ b/pkg/detectors/clearbit/clearbit.go
@@ -3,8 +3,8 @@ package clearbit
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/clickhelp/clickhelp.go b/pkg/detectors/clickhelp/clickhelp.go
index 97f356175..6a92ae929 100644
--- a/pkg/detectors/clickhelp/clickhelp.go
+++ b/pkg/detectors/clickhelp/clickhelp.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/clicksendsms/clicksendsms.go b/pkg/detectors/clicksendsms/clicksendsms.go
index 45c050f43..365eaa154 100644
--- a/pkg/detectors/clicksendsms/clicksendsms.go
+++ b/pkg/detectors/clicksendsms/clicksendsms.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go b/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go
index 4ceed898d..156ee5f31 100644
--- a/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go
+++ b/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken.go
@@ -2,8 +2,8 @@ package clickuppersonaltoken
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cliengo/cliengo.go b/pkg/detectors/cliengo/cliengo.go
index 86ef11e80..2b43d6c27 100644
--- a/pkg/detectors/cliengo/cliengo.go
+++ b/pkg/detectors/cliengo/cliengo.go
@@ -2,8 +2,8 @@ package cliengo
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/clinchpad/clinchpad.go b/pkg/detectors/clinchpad/clinchpad.go
index 27c4c7552..a92b89537 100644
--- a/pkg/detectors/clinchpad/clinchpad.go
+++ b/pkg/detectors/clinchpad/clinchpad.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/clockify/clockify.go b/pkg/detectors/clockify/clockify.go
index bb7d21584..75a9bdb6d 100644
--- a/pkg/detectors/clockify/clockify.go
+++ b/pkg/detectors/clockify/clockify.go
@@ -2,8 +2,8 @@ package clockify
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/clockworksms/clockworksms.go b/pkg/detectors/clockworksms/clockworksms.go
index 643ab8511..c3a494607 100644
--- a/pkg/detectors/clockworksms/clockworksms.go
+++ b/pkg/detectors/clockworksms/clockworksms.go
@@ -2,8 +2,8 @@ package clockworksms
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/closecrm/close.go b/pkg/detectors/closecrm/close.go
index e55c56d5b..ee6c0ffda 100644
--- a/pkg/detectors/closecrm/close.go
+++ b/pkg/detectors/closecrm/close.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cloudconvert/cloudconvert.go b/pkg/detectors/cloudconvert/cloudconvert.go
index f454543c4..21121d7d0 100644
--- a/pkg/detectors/cloudconvert/cloudconvert.go
+++ b/pkg/detectors/cloudconvert/cloudconvert.go
@@ -3,8 +3,8 @@ package cloudconvert
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cloudelements/cloudelements.go b/pkg/detectors/cloudelements/cloudelements.go
index 4413783f5..e9f3dc960 100644
--- a/pkg/detectors/cloudelements/cloudelements.go
+++ b/pkg/detectors/cloudelements/cloudelements.go
@@ -3,8 +3,8 @@ package cloudelements
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go b/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go
index 3557ba86d..8eb2cb3d9 100644
--- a/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go
+++ b/pkg/detectors/cloudflareapitoken/cloudflareapitoken.go
@@ -3,8 +3,8 @@ package cloudflareapitoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cloudflarecakey/cloudflarecakey.go b/pkg/detectors/cloudflarecakey/cloudflarecakey.go
index f2d7783fd..bfd70ef56 100644
--- a/pkg/detectors/cloudflarecakey/cloudflarecakey.go
+++ b/pkg/detectors/cloudflarecakey/cloudflarecakey.go
@@ -4,8 +4,8 @@ import (
"context"
// "fmt"
// "log"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go b/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go
index c1798fc90..b0d6b46bd 100644
--- a/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go
+++ b/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey.go
@@ -2,8 +2,8 @@ package cloudflareglobalapikey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cloudimage/cloudimage.go b/pkg/detectors/cloudimage/cloudimage.go
index c097f0b58..7d48687f4 100644
--- a/pkg/detectors/cloudimage/cloudimage.go
+++ b/pkg/detectors/cloudimage/cloudimage.go
@@ -2,8 +2,8 @@ package cloudimage
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/cloudmersive/cloudmersive.go b/pkg/detectors/cloudmersive/cloudmersive.go
index 768b3c39e..6bfd4bc32 100644
--- a/pkg/detectors/cloudmersive/cloudmersive.go
+++ b/pkg/detectors/cloudmersive/cloudmersive.go
@@ -2,8 +2,8 @@ package cloudmersive
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cloudplan/cloudplan.go b/pkg/detectors/cloudplan/cloudplan.go
index df0db1769..3d0116658 100644
--- a/pkg/detectors/cloudplan/cloudplan.go
+++ b/pkg/detectors/cloudplan/cloudplan.go
@@ -2,8 +2,8 @@ package cloudplan
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cloudsmith/cloudsmith.go b/pkg/detectors/cloudsmith/cloudsmith.go
index 44d012555..efe2a0f9b 100644
--- a/pkg/detectors/cloudsmith/cloudsmith.go
+++ b/pkg/detectors/cloudsmith/cloudsmith.go
@@ -3,8 +3,8 @@ package cloudsmith
import (
"context"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cloverly/cloverly.go b/pkg/detectors/cloverly/cloverly.go
index 6736948e0..72ecab95c 100644
--- a/pkg/detectors/cloverly/cloverly.go
+++ b/pkg/detectors/cloverly/cloverly.go
@@ -3,8 +3,8 @@ package cloverly
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cloze/cloze.go b/pkg/detectors/cloze/cloze.go
index 06f18ed51..2fe6f62b0 100644
--- a/pkg/detectors/cloze/cloze.go
+++ b/pkg/detectors/cloze/cloze.go
@@ -2,9 +2,9 @@ package cloze
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
"net/url"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/clustdoc/clustdoc.go b/pkg/detectors/clustdoc/clustdoc.go
index 17bc35bab..8f9195cb4 100644
--- a/pkg/detectors/clustdoc/clustdoc.go
+++ b/pkg/detectors/clustdoc/clustdoc.go
@@ -3,8 +3,8 @@ package clustdoc
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/coda/coda.go b/pkg/detectors/coda/coda.go
index 109e7f56d..1ea12bcfc 100644
--- a/pkg/detectors/coda/coda.go
+++ b/pkg/detectors/coda/coda.go
@@ -3,8 +3,8 @@ package coda
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/codacy/codacy.go b/pkg/detectors/codacy/codacy.go
index d33f22bc8..4a2e7a469 100644
--- a/pkg/detectors/codacy/codacy.go
+++ b/pkg/detectors/codacy/codacy.go
@@ -2,8 +2,8 @@ package codacy
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/codeclimate/codeclimate.go b/pkg/detectors/codeclimate/codeclimate.go
index f5ee30fc5..d29c4d9e9 100644
--- a/pkg/detectors/codeclimate/codeclimate.go
+++ b/pkg/detectors/codeclimate/codeclimate.go
@@ -4,8 +4,8 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/codemagic/codemagic.go b/pkg/detectors/codemagic/codemagic.go
index bef4692f0..494ec04a9 100644
--- a/pkg/detectors/codemagic/codemagic.go
+++ b/pkg/detectors/codemagic/codemagic.go
@@ -2,8 +2,8 @@ package codemagic
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/codequiry/codequiry.go b/pkg/detectors/codequiry/codequiry.go
index 17ba6a076..c41587da7 100644
--- a/pkg/detectors/codequiry/codequiry.go
+++ b/pkg/detectors/codequiry/codequiry.go
@@ -2,8 +2,8 @@ package codequiry
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/coinapi/coinapi.go b/pkg/detectors/coinapi/coinapi.go
index 016652aca..8d192aec7 100644
--- a/pkg/detectors/coinapi/coinapi.go
+++ b/pkg/detectors/coinapi/coinapi.go
@@ -2,8 +2,8 @@ package coinapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/coinbase/coinbase.go b/pkg/detectors/coinbase/coinbase.go
index ab13f820a..d84482f55 100644
--- a/pkg/detectors/coinbase/coinbase.go
+++ b/pkg/detectors/coinbase/coinbase.go
@@ -3,8 +3,8 @@ package coinbase
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/coinbase_waas/coinbase_waas.go b/pkg/detectors/coinbase_waas/coinbase_waas.go
index 383ed8325..ac7ab6ddf 100644
--- a/pkg/detectors/coinbase_waas/coinbase_waas.go
+++ b/pkg/detectors/coinbase_waas/coinbase_waas.go
@@ -6,8 +6,8 @@ import (
"crypto/x509"
"encoding/pem"
"errors"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/coinbase/waas-client-library-go/auth"
diff --git a/pkg/detectors/coinlayer/coinlayer.go b/pkg/detectors/coinlayer/coinlayer.go
index 161f57144..e8316f3a5 100644
--- a/pkg/detectors/coinlayer/coinlayer.go
+++ b/pkg/detectors/coinlayer/coinlayer.go
@@ -3,9 +3,9 @@ package coinlayer
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/coinlib/coinlib.go b/pkg/detectors/coinlib/coinlib.go
index 6f8d33041..820f1aeb6 100644
--- a/pkg/detectors/coinlib/coinlib.go
+++ b/pkg/detectors/coinlib/coinlib.go
@@ -3,8 +3,8 @@ package coinlib
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/coinmarketcap/coinmarketcap.go b/pkg/detectors/coinmarketcap/coinmarketcap.go
index bb75a27b0..b79744852 100644
--- a/pkg/detectors/coinmarketcap/coinmarketcap.go
+++ b/pkg/detectors/coinmarketcap/coinmarketcap.go
@@ -2,8 +2,8 @@ package coinmarketcap
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/collect2/collect2.go b/pkg/detectors/collect2/collect2.go
index 79bcb0b38..6091e981c 100644
--- a/pkg/detectors/collect2/collect2.go
+++ b/pkg/detectors/collect2/collect2.go
@@ -3,8 +3,8 @@ package collect2
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/column/column.go b/pkg/detectors/column/column.go
index 4c2ea8403..044a0c13d 100644
--- a/pkg/detectors/column/column.go
+++ b/pkg/detectors/column/column.go
@@ -4,9 +4,9 @@ import (
"context"
"encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"log"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/commercejs/commercejs.go b/pkg/detectors/commercejs/commercejs.go
index e1347cfa2..edeb67af2 100644
--- a/pkg/detectors/commercejs/commercejs.go
+++ b/pkg/detectors/commercejs/commercejs.go
@@ -2,8 +2,8 @@ package commercejs
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/commodities/commodities.go b/pkg/detectors/commodities/commodities.go
index 527e19063..1b3e597c9 100644
--- a/pkg/detectors/commodities/commodities.go
+++ b/pkg/detectors/commodities/commodities.go
@@ -2,9 +2,9 @@ package commodities
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/companyhub/companyhub.go b/pkg/detectors/companyhub/companyhub.go
index b7621bc8c..97ce50a76 100644
--- a/pkg/detectors/companyhub/companyhub.go
+++ b/pkg/detectors/companyhub/companyhub.go
@@ -3,8 +3,8 @@ package companyhub
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/confluent/confluent.go b/pkg/detectors/confluent/confluent.go
index 0257c506c..ac460bd86 100644
--- a/pkg/detectors/confluent/confluent.go
+++ b/pkg/detectors/confluent/confluent.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go b/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go
index b15574738..8f12c530d 100644
--- a/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go
+++ b/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken.go
@@ -3,8 +3,8 @@ package contentfulpersonalaccesstoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/conversiontools/conversiontools.go b/pkg/detectors/conversiontools/conversiontools.go
index 64adf6ffe..87420df39 100644
--- a/pkg/detectors/conversiontools/conversiontools.go
+++ b/pkg/detectors/conversiontools/conversiontools.go
@@ -3,8 +3,8 @@ package conversiontools
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/convertapi/convertapi.go b/pkg/detectors/convertapi/convertapi.go
index 9513b6d62..1ead72a3b 100644
--- a/pkg/detectors/convertapi/convertapi.go
+++ b/pkg/detectors/convertapi/convertapi.go
@@ -3,8 +3,8 @@ package convertapi
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/convertkit/convertkit.go b/pkg/detectors/convertkit/convertkit.go
index 9f9dbbf2f..f22a89e20 100644
--- a/pkg/detectors/convertkit/convertkit.go
+++ b/pkg/detectors/convertkit/convertkit.go
@@ -2,8 +2,8 @@ package convertkit
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/convier/convier.go b/pkg/detectors/convier/convier.go
index a0d2732ce..e8dbb3b20 100644
--- a/pkg/detectors/convier/convier.go
+++ b/pkg/detectors/convier/convier.go
@@ -3,9 +3,9 @@ package convier
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/copper/copper.go b/pkg/detectors/copper/copper.go
index b25b23a0d..daa047f58 100644
--- a/pkg/detectors/copper/copper.go
+++ b/pkg/detectors/copper/copper.go
@@ -2,8 +2,8 @@ package copper
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/couchbase/couchbase.go b/pkg/detectors/couchbase/couchbase.go
index 09a1a4379..971876f9d 100644
--- a/pkg/detectors/couchbase/couchbase.go
+++ b/pkg/detectors/couchbase/couchbase.go
@@ -3,8 +3,8 @@ package couchbase
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"log"
- "regexp"
"strings"
"time"
"unicode"
@@ -26,7 +26,7 @@ var (
connectionStringPat = regexp.MustCompile(`\bcb\.[a-z0-9]+\.cloud\.couchbase\.com\b`)
usernamePat = `?()/\+=\s\n`
passwordPat = `^<>;.*&|£\n\s`
- //passwordPat = regexp.MustCompile(`(?i)(?:pass|pwd)(?:.|[\n\r]){0,15}(\b[^<>;.*&|£\n\s]{8,100}$)`)
+ // passwordPat = regexp.MustCompile(`(?i)(?:pass|pwd)(?:.|[\n\r]){0,15}(\b[^<>;.*&|£\n\s]{8,100}$)`)
// passwordPat = regexp.MustCompile(`(?im)(?:pass|pwd)\S{0,40}?[:=\s]{1,3}[ '"=]{0,1}([^:?()/\+=\s\n]{4,40})\b`)
)
diff --git a/pkg/detectors/countrylayer/countrylayer.go b/pkg/detectors/countrylayer/countrylayer.go
index 6726c0536..56efad482 100644
--- a/pkg/detectors/countrylayer/countrylayer.go
+++ b/pkg/detectors/countrylayer/countrylayer.go
@@ -3,8 +3,8 @@ package countrylayer
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/courier/courier.go b/pkg/detectors/courier/courier.go
index 84419ddf8..0519a0334 100644
--- a/pkg/detectors/courier/courier.go
+++ b/pkg/detectors/courier/courier.go
@@ -3,8 +3,8 @@ package courier
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/coveralls/coveralls.go b/pkg/detectors/coveralls/coveralls.go
index c03bfe6ed..05125b594 100644
--- a/pkg/detectors/coveralls/coveralls.go
+++ b/pkg/detectors/coveralls/coveralls.go
@@ -3,8 +3,8 @@ package coveralls
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/craftmypdf/craftmypdf.go b/pkg/detectors/craftmypdf/craftmypdf.go
index 894d40bb8..578ef865c 100644
--- a/pkg/detectors/craftmypdf/craftmypdf.go
+++ b/pkg/detectors/craftmypdf/craftmypdf.go
@@ -3,9 +3,10 @@ package craftmypdf
import (
"context"
"net/http"
- "regexp"
"strings"
+ regexp "github.com/wasilibs/go-re2"
+
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
"github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"
diff --git a/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go b/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go
index 46ca3d55e..2ac78f4c9 100644
--- a/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go
+++ b/pkg/detectors/crossbrowsertesting/crossbrowsertesting.go
@@ -2,8 +2,8 @@ package crossbrowsertesting
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/crowdin/crowdin.go b/pkg/detectors/crowdin/crowdin.go
index 1a742241d..57725aa05 100644
--- a/pkg/detectors/crowdin/crowdin.go
+++ b/pkg/detectors/crowdin/crowdin.go
@@ -3,8 +3,8 @@ package crowdin
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/cryptocompare/cryptocompare.go b/pkg/detectors/cryptocompare/cryptocompare.go
index b10bc5eb0..594fa661e 100644
--- a/pkg/detectors/cryptocompare/cryptocompare.go
+++ b/pkg/detectors/cryptocompare/cryptocompare.go
@@ -2,9 +2,9 @@ package cryptocompare
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/currencycloud/currencycloud.go b/pkg/detectors/currencycloud/currencycloud.go
index 66c0d433a..15f08f9cc 100644
--- a/pkg/detectors/currencycloud/currencycloud.go
+++ b/pkg/detectors/currencycloud/currencycloud.go
@@ -3,9 +3,9 @@ package currencycloud
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/currencyfreaks/currencyfreaks.go b/pkg/detectors/currencyfreaks/currencyfreaks.go
index d796d4ab4..7a3fead42 100644
--- a/pkg/detectors/currencyfreaks/currencyfreaks.go
+++ b/pkg/detectors/currencyfreaks/currencyfreaks.go
@@ -2,8 +2,8 @@ package currencyfreaks
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/currencylayer/currencylayer.go b/pkg/detectors/currencylayer/currencylayer.go
index 215dd737c..bf2ea0b50 100644
--- a/pkg/detectors/currencylayer/currencylayer.go
+++ b/pkg/detectors/currencylayer/currencylayer.go
@@ -3,9 +3,9 @@ package currencylayer
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/currencyscoop/currencyscoop.go b/pkg/detectors/currencyscoop/currencyscoop.go
index 8071d45c8..1ca905877 100644
--- a/pkg/detectors/currencyscoop/currencyscoop.go
+++ b/pkg/detectors/currencyscoop/currencyscoop.go
@@ -3,8 +3,8 @@ package currencyscoop
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/currentsapi/currentsapi.go b/pkg/detectors/currentsapi/currentsapi.go
index c3129989b..ae19160ae 100644
--- a/pkg/detectors/currentsapi/currentsapi.go
+++ b/pkg/detectors/currentsapi/currentsapi.go
@@ -2,8 +2,8 @@ package currentsapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/customerguru/customerguru.go b/pkg/detectors/customerguru/customerguru.go
index 4347b9a85..d27825643 100644
--- a/pkg/detectors/customerguru/customerguru.go
+++ b/pkg/detectors/customerguru/customerguru.go
@@ -2,8 +2,8 @@ package customerguru
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/customerio/customerio.go b/pkg/detectors/customerio/customerio.go
index 771d1260c..450ac8a70 100644
--- a/pkg/detectors/customerio/customerio.go
+++ b/pkg/detectors/customerio/customerio.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/d7network/d7network.go b/pkg/detectors/d7network/d7network.go
index a8d4608c9..722ab4981 100644
--- a/pkg/detectors/d7network/d7network.go
+++ b/pkg/detectors/d7network/d7network.go
@@ -2,8 +2,8 @@ package d7network
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/dailyco/dailyco.go b/pkg/detectors/dailyco/dailyco.go
index 77de08308..83cb3aebc 100644
--- a/pkg/detectors/dailyco/dailyco.go
+++ b/pkg/detectors/dailyco/dailyco.go
@@ -3,8 +3,8 @@ package dailyco
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/dandelion/dandelion.go b/pkg/detectors/dandelion/dandelion.go
index 973db3013..88ca74f4a 100644
--- a/pkg/detectors/dandelion/dandelion.go
+++ b/pkg/detectors/dandelion/dandelion.go
@@ -3,8 +3,8 @@ package dandelion
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/dareboost/dareboost.go b/pkg/detectors/dareboost/dareboost.go
index fbb130933..353cabb0a 100644
--- a/pkg/detectors/dareboost/dareboost.go
+++ b/pkg/detectors/dareboost/dareboost.go
@@ -2,9 +2,9 @@ package dareboost
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/databox/databox.go b/pkg/detectors/databox/databox.go
index 4c36b7644..5cc563771 100644
--- a/pkg/detectors/databox/databox.go
+++ b/pkg/detectors/databox/databox.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/databrickstoken/databrickstoken.go b/pkg/detectors/databrickstoken/databrickstoken.go
index 0429bdc74..a50c667b2 100644
--- a/pkg/detectors/databrickstoken/databrickstoken.go
+++ b/pkg/detectors/databrickstoken/databrickstoken.go
@@ -3,8 +3,8 @@ package databrickstoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/datadogtoken/datadogtoken.go b/pkg/detectors/datadogtoken/datadogtoken.go
index eeda41ae3..c588864a4 100644
--- a/pkg/detectors/datadogtoken/datadogtoken.go
+++ b/pkg/detectors/datadogtoken/datadogtoken.go
@@ -2,8 +2,8 @@ package datadogtoken
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/datagov/datagov.go b/pkg/detectors/datagov/datagov.go
index 2bc2c06cb..10bb08919 100644
--- a/pkg/detectors/datagov/datagov.go
+++ b/pkg/detectors/datagov/datagov.go
@@ -3,8 +3,8 @@ package datagov
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/debounce/debounce.go b/pkg/detectors/debounce/debounce.go
index f63e200ce..18100138c 100644
--- a/pkg/detectors/debounce/debounce.go
+++ b/pkg/detectors/debounce/debounce.go
@@ -2,8 +2,8 @@ package debounce
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/deepai/deepai.go b/pkg/detectors/deepai/deepai.go
index 390ddb451..39ba01597 100644
--- a/pkg/detectors/deepai/deepai.go
+++ b/pkg/detectors/deepai/deepai.go
@@ -3,10 +3,10 @@ package deepai
import (
"bytes"
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"mime/multipart"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/deepgram/deepgram.go b/pkg/detectors/deepgram/deepgram.go
index bdab52a9b..f7e3e5c7d 100644
--- a/pkg/detectors/deepgram/deepgram.go
+++ b/pkg/detectors/deepgram/deepgram.go
@@ -3,8 +3,8 @@ package deepgram
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/delighted/delighted.go b/pkg/detectors/delighted/delighted.go
index 5aad8cf9e..9a1444ba0 100644
--- a/pkg/detectors/delighted/delighted.go
+++ b/pkg/detectors/delighted/delighted.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/demio/demio.go b/pkg/detectors/demio/demio.go
index 22fce3ca2..e686ed77e 100644
--- a/pkg/detectors/demio/demio.go
+++ b/pkg/detectors/demio/demio.go
@@ -3,8 +3,8 @@ package demio
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/deno/denodeploy.go b/pkg/detectors/deno/denodeploy.go
index 5fc20bb45..8f8dd032a 100644
--- a/pkg/detectors/deno/denodeploy.go
+++ b/pkg/detectors/deno/denodeploy.go
@@ -4,9 +4,9 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/deputy/deputy.go b/pkg/detectors/deputy/deputy.go
index e9033c9cb..996c695a9 100644
--- a/pkg/detectors/deputy/deputy.go
+++ b/pkg/detectors/deputy/deputy.go
@@ -3,8 +3,8 @@ package deputy
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/detectify/detectify.go b/pkg/detectors/detectify/detectify.go
index d7896fdd8..23c25ca2a 100644
--- a/pkg/detectors/detectify/detectify.go
+++ b/pkg/detectors/detectify/detectify.go
@@ -2,8 +2,8 @@ package detectify
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/detectlanguage/detectlanguage.go b/pkg/detectors/detectlanguage/detectlanguage.go
index 881e8336a..06880fea6 100644
--- a/pkg/detectors/detectlanguage/detectlanguage.go
+++ b/pkg/detectors/detectlanguage/detectlanguage.go
@@ -3,8 +3,8 @@ package detectlanguage
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/dfuse/dfuse.go b/pkg/detectors/dfuse/dfuse.go
index 8b170f8ba..e19b8ced7 100644
--- a/pkg/detectors/dfuse/dfuse.go
+++ b/pkg/detectors/dfuse/dfuse.go
@@ -2,8 +2,8 @@ package dfuse
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/diffbot/diffbot.go b/pkg/detectors/diffbot/diffbot.go
index 47fb787f9..8fda47e5c 100644
--- a/pkg/detectors/diffbot/diffbot.go
+++ b/pkg/detectors/diffbot/diffbot.go
@@ -3,9 +3,9 @@ package diffbot
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/diggernaut/diggernaut.go b/pkg/detectors/diggernaut/diggernaut.go
index 4b48f029d..ae025a1e1 100644
--- a/pkg/detectors/diggernaut/diggernaut.go
+++ b/pkg/detectors/diggernaut/diggernaut.go
@@ -3,8 +3,8 @@ package diggernaut
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/digitaloceantoken/digitaloceantoken.go b/pkg/detectors/digitaloceantoken/digitaloceantoken.go
index 869bdd3e5..e5faca4b5 100644
--- a/pkg/detectors/digitaloceantoken/digitaloceantoken.go
+++ b/pkg/detectors/digitaloceantoken/digitaloceantoken.go
@@ -3,8 +3,8 @@ package digitaloceantoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/digitaloceanv2/digitaloceanv2.go b/pkg/detectors/digitaloceanv2/digitaloceanv2.go
index bc0dd5c10..152f938ab 100644
--- a/pkg/detectors/digitaloceanv2/digitaloceanv2.go
+++ b/pkg/detectors/digitaloceanv2/digitaloceanv2.go
@@ -3,9 +3,9 @@ package digitaloceanv2
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/discordbottoken/discordbottoken.go b/pkg/detectors/discordbottoken/discordbottoken.go
index d126e384c..1e85c5865 100644
--- a/pkg/detectors/discordbottoken/discordbottoken.go
+++ b/pkg/detectors/discordbottoken/discordbottoken.go
@@ -3,8 +3,8 @@ package discordbottoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/discordwebhook/discordwebhook.go b/pkg/detectors/discordwebhook/discordwebhook.go
index 2db4f57d3..899436324 100644
--- a/pkg/detectors/discordwebhook/discordwebhook.go
+++ b/pkg/detectors/discordwebhook/discordwebhook.go
@@ -2,8 +2,8 @@ package discordwebhook
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/disqus/disqus.go b/pkg/detectors/disqus/disqus.go
index 565753fed..70cda3e90 100644
--- a/pkg/detectors/disqus/disqus.go
+++ b/pkg/detectors/disqus/disqus.go
@@ -2,8 +2,8 @@ package disqus
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ditto/ditto.go b/pkg/detectors/ditto/ditto.go
index 5ade311d5..afdad473b 100644
--- a/pkg/detectors/ditto/ditto.go
+++ b/pkg/detectors/ditto/ditto.go
@@ -3,8 +3,8 @@ package ditto
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/dnscheck/dnscheck.go b/pkg/detectors/dnscheck/dnscheck.go
index 9abb45405..ed1161dfd 100644
--- a/pkg/detectors/dnscheck/dnscheck.go
+++ b/pkg/detectors/dnscheck/dnscheck.go
@@ -2,8 +2,8 @@ package dnscheck
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/dockerhub/dockerhub.go b/pkg/detectors/dockerhub/dockerhub.go
index d304e3d3d..7dd4713f9 100644
--- a/pkg/detectors/dockerhub/dockerhub.go
+++ b/pkg/detectors/dockerhub/dockerhub.go
@@ -3,9 +3,9 @@ package dockerhub
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/docparser/docparser.go b/pkg/detectors/docparser/docparser.go
index ce9a16fd5..bb8fc2860 100644
--- a/pkg/detectors/docparser/docparser.go
+++ b/pkg/detectors/docparser/docparser.go
@@ -3,8 +3,8 @@ package docparser
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/documo/documo.go b/pkg/detectors/documo/documo.go
index 7f0d0986b..3f98cca08 100644
--- a/pkg/detectors/documo/documo.go
+++ b/pkg/detectors/documo/documo.go
@@ -3,8 +3,8 @@ package documo
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/docusign/docusign.go b/pkg/detectors/docusign/docusign.go
index 92008dee4..78c4774e8 100644
--- a/pkg/detectors/docusign/docusign.go
+++ b/pkg/detectors/docusign/docusign.go
@@ -5,8 +5,8 @@ import (
"encoding/base64"
"fmt"
"github.com/go-errors/errors"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/doppler/doppler.go b/pkg/detectors/doppler/doppler.go
index 654a12322..1e27f1566 100644
--- a/pkg/detectors/doppler/doppler.go
+++ b/pkg/detectors/doppler/doppler.go
@@ -2,8 +2,8 @@ package doppler
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/dotmailer/dotmailer.go b/pkg/detectors/dotmailer/dotmailer.go
index 77c9bd0b9..205cea1aa 100644
--- a/pkg/detectors/dotmailer/dotmailer.go
+++ b/pkg/detectors/dotmailer/dotmailer.go
@@ -2,8 +2,8 @@ package dotmailer
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/dovico/dovico.go b/pkg/detectors/dovico/dovico.go
index 76d96816f..766c76db3 100644
--- a/pkg/detectors/dovico/dovico.go
+++ b/pkg/detectors/dovico/dovico.go
@@ -3,8 +3,8 @@ package dovico
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/dronahq/dronahq.go b/pkg/detectors/dronahq/dronahq.go
index dff7a25ff..0665aa4ed 100644
--- a/pkg/detectors/dronahq/dronahq.go
+++ b/pkg/detectors/dronahq/dronahq.go
@@ -3,8 +3,8 @@ package dronahq
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/droneci/droneci.go b/pkg/detectors/droneci/droneci.go
index 4bbcc18e6..3cd976c30 100644
--- a/pkg/detectors/droneci/droneci.go
+++ b/pkg/detectors/droneci/droneci.go
@@ -3,8 +3,8 @@ package droneci
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/dropbox/dropbox.go b/pkg/detectors/dropbox/dropbox.go
index 6bd92a494..6bdd2a0b3 100644
--- a/pkg/detectors/dropbox/dropbox.go
+++ b/pkg/detectors/dropbox/dropbox.go
@@ -3,8 +3,8 @@ package dropbox
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/duply/duply.go b/pkg/detectors/duply/duply.go
index 23ee96710..3ffd81a94 100644
--- a/pkg/detectors/duply/duply.go
+++ b/pkg/detectors/duply/duply.go
@@ -2,8 +2,8 @@ package duply
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/dwolla/dwolla.go b/pkg/detectors/dwolla/dwolla.go
index fb738289f..d67c74f1d 100644
--- a/pkg/detectors/dwolla/dwolla.go
+++ b/pkg/detectors/dwolla/dwolla.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/dynalist/dynalist.go b/pkg/detectors/dynalist/dynalist.go
index 1ba986802..7a2203774 100644
--- a/pkg/detectors/dynalist/dynalist.go
+++ b/pkg/detectors/dynalist/dynalist.go
@@ -3,9 +3,9 @@ package dynalist
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/dyspatch/dyspatch.go b/pkg/detectors/dyspatch/dyspatch.go
index 8f0783451..5547d2f44 100644
--- a/pkg/detectors/dyspatch/dyspatch.go
+++ b/pkg/detectors/dyspatch/dyspatch.go
@@ -3,9 +3,9 @@ package dyspatch
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go b/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go
index 3c3fd4e7b..47d1f5677 100644
--- a/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go
+++ b/pkg/detectors/eagleeyenetworks/eagleeyenetworks.go
@@ -3,8 +3,8 @@ package eagleeyenetworks
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/easyinsight/easyinsight.go b/pkg/detectors/easyinsight/easyinsight.go
index 7011dacd6..12ba7de62 100644
--- a/pkg/detectors/easyinsight/easyinsight.go
+++ b/pkg/detectors/easyinsight/easyinsight.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ecostruxureit/ecostruxureit.go b/pkg/detectors/ecostruxureit/ecostruxureit.go
index b4762cf53..2fa477667 100644
--- a/pkg/detectors/ecostruxureit/ecostruxureit.go
+++ b/pkg/detectors/ecostruxureit/ecostruxureit.go
@@ -3,8 +3,8 @@ package ecostruxureit
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/edamam/edamam.go b/pkg/detectors/edamam/edamam.go
index 65773b158..f1a30ad16 100644
--- a/pkg/detectors/edamam/edamam.go
+++ b/pkg/detectors/edamam/edamam.go
@@ -3,8 +3,8 @@ package edamam
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/edenai/edenai.go b/pkg/detectors/edenai/edenai.go
index 9301fe6c6..471514dfd 100644
--- a/pkg/detectors/edenai/edenai.go
+++ b/pkg/detectors/edenai/edenai.go
@@ -3,8 +3,8 @@ package edenai
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/eightxeight/eightxeight.go b/pkg/detectors/eightxeight/eightxeight.go
index 3e62e51f1..628942c4b 100644
--- a/pkg/detectors/eightxeight/eightxeight.go
+++ b/pkg/detectors/eightxeight/eightxeight.go
@@ -3,8 +3,8 @@ package eightxeight
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/elasticemail/elasticemail.go b/pkg/detectors/elasticemail/elasticemail.go
index 39289c95d..436cd94e7 100644
--- a/pkg/detectors/elasticemail/elasticemail.go
+++ b/pkg/detectors/elasticemail/elasticemail.go
@@ -3,9 +3,9 @@ package elasticemail
import (
"context"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/enablex/enablex.go b/pkg/detectors/enablex/enablex.go
index 324245079..13c8c2409 100644
--- a/pkg/detectors/enablex/enablex.go
+++ b/pkg/detectors/enablex/enablex.go
@@ -2,8 +2,8 @@ package enablex
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/enigma/enigma.go b/pkg/detectors/enigma/enigma.go
index b201d355d..729b44f48 100644
--- a/pkg/detectors/enigma/enigma.go
+++ b/pkg/detectors/enigma/enigma.go
@@ -2,8 +2,8 @@ package enigma
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/envoyapikey/envoyapikey.go b/pkg/detectors/envoyapikey/envoyapikey.go
index 263fb4427..b34d3493d 100644
--- a/pkg/detectors/envoyapikey/envoyapikey.go
+++ b/pkg/detectors/envoyapikey/envoyapikey.go
@@ -2,9 +2,9 @@ package envoyapikey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/etherscan/etherscan.go b/pkg/detectors/etherscan/etherscan.go
index b34a6fa9d..585d5bf69 100644
--- a/pkg/detectors/etherscan/etherscan.go
+++ b/pkg/detectors/etherscan/etherscan.go
@@ -2,9 +2,9 @@ package etherscan
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ethplorer/ethplorer.go b/pkg/detectors/ethplorer/ethplorer.go
index 93f3853c0..3c101d5b6 100644
--- a/pkg/detectors/ethplorer/ethplorer.go
+++ b/pkg/detectors/ethplorer/ethplorer.go
@@ -2,8 +2,8 @@ package ethplorer
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/etsyapikey/etsyapikey.go b/pkg/detectors/etsyapikey/etsyapikey.go
index f1a4d6e93..e71d82b50 100644
--- a/pkg/detectors/etsyapikey/etsyapikey.go
+++ b/pkg/detectors/etsyapikey/etsyapikey.go
@@ -2,8 +2,8 @@ package etsyapikey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/eventbrite/eventbrite.go b/pkg/detectors/eventbrite/eventbrite.go
index 43f2decc1..d81fe7e44 100644
--- a/pkg/detectors/eventbrite/eventbrite.go
+++ b/pkg/detectors/eventbrite/eventbrite.go
@@ -3,8 +3,8 @@ package eventbrite
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/everhour/everhour.go b/pkg/detectors/everhour/everhour.go
index 8d7876bad..1bb2f1461 100644
--- a/pkg/detectors/everhour/everhour.go
+++ b/pkg/detectors/everhour/everhour.go
@@ -2,8 +2,8 @@ package everhour
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/exchangerateapi/exchangerateapi.go b/pkg/detectors/exchangerateapi/exchangerateapi.go
index 39e7c1b68..b033c90af 100644
--- a/pkg/detectors/exchangerateapi/exchangerateapi.go
+++ b/pkg/detectors/exchangerateapi/exchangerateapi.go
@@ -3,8 +3,8 @@ package exchangerateapi
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/exchangeratesapi/exchangeratesapi.go b/pkg/detectors/exchangeratesapi/exchangeratesapi.go
index 3d8113779..2316b94dc 100644
--- a/pkg/detectors/exchangeratesapi/exchangeratesapi.go
+++ b/pkg/detectors/exchangeratesapi/exchangeratesapi.go
@@ -3,8 +3,8 @@ package exchangeratesapi
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/exportsdk/exportsdk.go b/pkg/detectors/exportsdk/exportsdk.go
index 024184f65..62ac8ddfa 100644
--- a/pkg/detectors/exportsdk/exportsdk.go
+++ b/pkg/detectors/exportsdk/exportsdk.go
@@ -2,8 +2,8 @@ package exportsdk
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/extractorapi/extractorapi.go b/pkg/detectors/extractorapi/extractorapi.go
index 922e0a98f..95e15c608 100644
--- a/pkg/detectors/extractorapi/extractorapi.go
+++ b/pkg/detectors/extractorapi/extractorapi.go
@@ -2,8 +2,8 @@ package extractorapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/facebookoauth/facebookoauth.go b/pkg/detectors/facebookoauth/facebookoauth.go
index 6fe5d2e80..194aa7d7f 100644
--- a/pkg/detectors/facebookoauth/facebookoauth.go
+++ b/pkg/detectors/facebookoauth/facebookoauth.go
@@ -3,8 +3,8 @@ package facebookoauth
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/faceplusplus/faceplusplus.go b/pkg/detectors/faceplusplus/faceplusplus.go
index d0163eaf5..24914f083 100644
--- a/pkg/detectors/faceplusplus/faceplusplus.go
+++ b/pkg/detectors/faceplusplus/faceplusplus.go
@@ -3,8 +3,8 @@ package faceplusplus
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/fastforex/fastforex.go b/pkg/detectors/fastforex/fastforex.go
index 6d05255b9..0c8b772f4 100644
--- a/pkg/detectors/fastforex/fastforex.go
+++ b/pkg/detectors/fastforex/fastforex.go
@@ -3,8 +3,8 @@ package fastforex
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go b/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go
index 9a2416a06..27a6da02c 100644
--- a/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go
+++ b/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken.go
@@ -4,9 +4,9 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/feedier/feedier.go b/pkg/detectors/feedier/feedier.go
index 94b41d598..099caea94 100644
--- a/pkg/detectors/feedier/feedier.go
+++ b/pkg/detectors/feedier/feedier.go
@@ -3,8 +3,8 @@ package feedier
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/fetchrss/fetchrss.go b/pkg/detectors/fetchrss/fetchrss.go
index 19490cfe2..8c3b3690f 100644
--- a/pkg/detectors/fetchrss/fetchrss.go
+++ b/pkg/detectors/fetchrss/fetchrss.go
@@ -2,9 +2,9 @@ package fetchrss
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/fibery/fibery.go b/pkg/detectors/fibery/fibery.go
index 11f11eb31..ce23a1d1a 100644
--- a/pkg/detectors/fibery/fibery.go
+++ b/pkg/detectors/fibery/fibery.go
@@ -3,8 +3,8 @@ package fibery
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/figmapersonalaccesstoken/v1/figmapersonalaccesstoken.go b/pkg/detectors/figmapersonalaccesstoken/v1/figmapersonalaccesstoken.go
index 4968b1e1e..73ed18385 100644
--- a/pkg/detectors/figmapersonalaccesstoken/v1/figmapersonalaccesstoken.go
+++ b/pkg/detectors/figmapersonalaccesstoken/v1/figmapersonalaccesstoken.go
@@ -3,8 +3,8 @@ package figmapersonalaccesstoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2.go b/pkg/detectors/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2.go
index 0fa7b4ecc..b2d40991a 100644
--- a/pkg/detectors/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2.go
+++ b/pkg/detectors/figmapersonalaccesstoken/v2/figmapersonalaccesstoken_v2.go
@@ -3,8 +3,8 @@ package figmapersonalaccesstoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/fileio/fileio.go b/pkg/detectors/fileio/fileio.go
index 4bb6cdb8b..136a96762 100644
--- a/pkg/detectors/fileio/fileio.go
+++ b/pkg/detectors/fileio/fileio.go
@@ -4,9 +4,9 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/finage/finage.go b/pkg/detectors/finage/finage.go
index 1901ed601..fc43ec4a5 100644
--- a/pkg/detectors/finage/finage.go
+++ b/pkg/detectors/finage/finage.go
@@ -3,8 +3,8 @@ package finage
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/financialmodelingprep/financialmodelingprep.go b/pkg/detectors/financialmodelingprep/financialmodelingprep.go
index cf7d7a17f..6f3d20194 100644
--- a/pkg/detectors/financialmodelingprep/financialmodelingprep.go
+++ b/pkg/detectors/financialmodelingprep/financialmodelingprep.go
@@ -3,9 +3,9 @@ package financialmodelingprep
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/findl/findl.go b/pkg/detectors/findl/findl.go
index 323cd90c9..0f6150957 100644
--- a/pkg/detectors/findl/findl.go
+++ b/pkg/detectors/findl/findl.go
@@ -2,8 +2,8 @@ package findl
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/finnhub/finnhub.go b/pkg/detectors/finnhub/finnhub.go
index 57e0caaf7..442e908c6 100644
--- a/pkg/detectors/finnhub/finnhub.go
+++ b/pkg/detectors/finnhub/finnhub.go
@@ -3,8 +3,8 @@ package finnhub
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/fixerio/fixerio.go b/pkg/detectors/fixerio/fixerio.go
index 17df2ef99..070a8ca2c 100644
--- a/pkg/detectors/fixerio/fixerio.go
+++ b/pkg/detectors/fixerio/fixerio.go
@@ -2,9 +2,9 @@ package fixerio
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/flatio/flatio.go b/pkg/detectors/flatio/flatio.go
index bffb97a9f..20a39d0c1 100644
--- a/pkg/detectors/flatio/flatio.go
+++ b/pkg/detectors/flatio/flatio.go
@@ -3,8 +3,8 @@ package flatio
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/fleetbase/fleetbase.go b/pkg/detectors/fleetbase/fleetbase.go
index 0b5746efe..fd5c4e385 100644
--- a/pkg/detectors/fleetbase/fleetbase.go
+++ b/pkg/detectors/fleetbase/fleetbase.go
@@ -3,8 +3,8 @@ package fleetbase
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/flickr/flickr.go b/pkg/detectors/flickr/flickr.go
index 2eabda609..1df3abf16 100644
--- a/pkg/detectors/flickr/flickr.go
+++ b/pkg/detectors/flickr/flickr.go
@@ -3,9 +3,9 @@ package flickr
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/flightapi/flightapi.go b/pkg/detectors/flightapi/flightapi.go
index a6249c300..049947ac7 100644
--- a/pkg/detectors/flightapi/flightapi.go
+++ b/pkg/detectors/flightapi/flightapi.go
@@ -3,8 +3,8 @@ package flightapi
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/flightlabs/flightlabs.go b/pkg/detectors/flightlabs/flightlabs.go
index 18a3e390d..516c56fdc 100644
--- a/pkg/detectors/flightlabs/flightlabs.go
+++ b/pkg/detectors/flightlabs/flightlabs.go
@@ -3,9 +3,9 @@ package flightlabs
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/flightstats/flightstats.go b/pkg/detectors/flightstats/flightstats.go
index 2d6253c90..9a898ec7e 100644
--- a/pkg/detectors/flightstats/flightstats.go
+++ b/pkg/detectors/flightstats/flightstats.go
@@ -3,9 +3,9 @@ package flightstats
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/float/float.go b/pkg/detectors/float/float.go
index 211911932..fd5c09415 100644
--- a/pkg/detectors/float/float.go
+++ b/pkg/detectors/float/float.go
@@ -3,8 +3,8 @@ package float
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/flowdash/flowdash.go b/pkg/detectors/flowdash/flowdash.go
index 2cc5d72fa..83b2bc68d 100644
--- a/pkg/detectors/flowdash/flowdash.go
+++ b/pkg/detectors/flowdash/flowdash.go
@@ -3,8 +3,8 @@ package flowdash
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/flowflu/flowflu.go b/pkg/detectors/flowflu/flowflu.go
index bc5807982..6848c9848 100644
--- a/pkg/detectors/flowflu/flowflu.go
+++ b/pkg/detectors/flowflu/flowflu.go
@@ -3,9 +3,9 @@ package flowflu
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/flutterwave/flutterwave.go b/pkg/detectors/flutterwave/flutterwave.go
index bad763f7c..aee9fcc19 100644
--- a/pkg/detectors/flutterwave/flutterwave.go
+++ b/pkg/detectors/flutterwave/flutterwave.go
@@ -3,8 +3,8 @@ package flutterwave
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/fmfw/fmfw.go b/pkg/detectors/fmfw/fmfw.go
index f406be138..1ff4f3286 100644
--- a/pkg/detectors/fmfw/fmfw.go
+++ b/pkg/detectors/fmfw/fmfw.go
@@ -2,8 +2,8 @@ package fmfw
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/formbucket/formbucket.go b/pkg/detectors/formbucket/formbucket.go
index 62ab3fd92..8ace8aca6 100644
--- a/pkg/detectors/formbucket/formbucket.go
+++ b/pkg/detectors/formbucket/formbucket.go
@@ -3,9 +3,9 @@ package formbucket
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/formcraft/formcraft.go b/pkg/detectors/formcraft/formcraft.go
index 1b040a17c..5e417914f 100644
--- a/pkg/detectors/formcraft/formcraft.go
+++ b/pkg/detectors/formcraft/formcraft.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/formio/formio.go b/pkg/detectors/formio/formio.go
index f843d6e9b..3c9aba537 100644
--- a/pkg/detectors/formio/formio.go
+++ b/pkg/detectors/formio/formio.go
@@ -2,8 +2,8 @@ package formio
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/formsite/formsite.go b/pkg/detectors/formsite/formsite.go
index 38addb63a..53cc44009 100644
--- a/pkg/detectors/formsite/formsite.go
+++ b/pkg/detectors/formsite/formsite.go
@@ -3,8 +3,8 @@ package formsite
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/foursquare/foursquare.go b/pkg/detectors/foursquare/foursquare.go
index 6fbc66e03..12c0a3e94 100644
--- a/pkg/detectors/foursquare/foursquare.go
+++ b/pkg/detectors/foursquare/foursquare.go
@@ -3,8 +3,8 @@ package foursquare
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/frameio/frameio.go b/pkg/detectors/frameio/frameio.go
index 5c0d47d6e..a257a5214 100644
--- a/pkg/detectors/frameio/frameio.go
+++ b/pkg/detectors/frameio/frameio.go
@@ -3,8 +3,8 @@ package frameio
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/freshbooks/freshbooks.go b/pkg/detectors/freshbooks/freshbooks.go
index 271ec9072..e5a6b5311 100644
--- a/pkg/detectors/freshbooks/freshbooks.go
+++ b/pkg/detectors/freshbooks/freshbooks.go
@@ -3,9 +3,9 @@ package freshbooks
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/freshdesk/freshdesk.go b/pkg/detectors/freshdesk/freshdesk.go
index a0f425b9a..f46f601d4 100644
--- a/pkg/detectors/freshdesk/freshdesk.go
+++ b/pkg/detectors/freshdesk/freshdesk.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/front/front.go b/pkg/detectors/front/front.go
index f059f41ba..40de6007d 100644
--- a/pkg/detectors/front/front.go
+++ b/pkg/detectors/front/front.go
@@ -3,8 +3,8 @@ package front
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ftp/ftp.go b/pkg/detectors/ftp/ftp.go
index 8d77f12f1..58c0d01eb 100644
--- a/pkg/detectors/ftp/ftp.go
+++ b/pkg/detectors/ftp/ftp.go
@@ -3,9 +3,9 @@ package ftp
import (
"context"
"errors"
+ regexp "github.com/wasilibs/go-re2"
"net/textproto"
"net/url"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/fulcrum/fulcrum.go b/pkg/detectors/fulcrum/fulcrum.go
index eae2e4463..8503dfa4a 100644
--- a/pkg/detectors/fulcrum/fulcrum.go
+++ b/pkg/detectors/fulcrum/fulcrum.go
@@ -2,8 +2,8 @@ package fulcrum
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/fullstory/fullstory.go b/pkg/detectors/fullstory/fullstory.go
index 641080516..9325b7883 100644
--- a/pkg/detectors/fullstory/fullstory.go
+++ b/pkg/detectors/fullstory/fullstory.go
@@ -3,8 +3,8 @@ package fullstory
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/fullstory_v2/fullstory_v2.go b/pkg/detectors/fullstory_v2/fullstory_v2.go
index 196d80d2c..0783a45c2 100644
--- a/pkg/detectors/fullstory_v2/fullstory_v2.go
+++ b/pkg/detectors/fullstory_v2/fullstory_v2.go
@@ -3,8 +3,8 @@ package fullstory_v2
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/fusebill/fusebill.go b/pkg/detectors/fusebill/fusebill.go
index 689db0269..2df1eb36b 100644
--- a/pkg/detectors/fusebill/fusebill.go
+++ b/pkg/detectors/fusebill/fusebill.go
@@ -3,8 +3,8 @@ package fusebill
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/fxmarket/fxmarket.go b/pkg/detectors/fxmarket/fxmarket.go
index 5a229f994..12713622b 100644
--- a/pkg/detectors/fxmarket/fxmarket.go
+++ b/pkg/detectors/fxmarket/fxmarket.go
@@ -3,8 +3,8 @@ package fxmarket
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/gcp/gcp.go b/pkg/detectors/gcp/gcp.go
index 8771fc252..dc5836833 100644
--- a/pkg/detectors/gcp/gcp.go
+++ b/pkg/detectors/gcp/gcp.go
@@ -3,7 +3,7 @@ package gcp
import (
"context"
"encoding/json"
- "regexp"
+ regexp "github.com/wasilibs/go-re2"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/geckoboard/geckoboard.go b/pkg/detectors/geckoboard/geckoboard.go
index eda0bd430..39caa8c6d 100644
--- a/pkg/detectors/geckoboard/geckoboard.go
+++ b/pkg/detectors/geckoboard/geckoboard.go
@@ -3,8 +3,8 @@ package geckoboard
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/gemini/gemini.go b/pkg/detectors/gemini/gemini.go
index 7e47f10a5..668763e6a 100644
--- a/pkg/detectors/gemini/gemini.go
+++ b/pkg/detectors/gemini/gemini.go
@@ -8,8 +8,8 @@ import (
"encoding/base64"
"encoding/hex"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/generic/generic.go b/pkg/detectors/generic/generic.go
index 371e17878..9ef51da4c 100644
--- a/pkg/detectors/generic/generic.go
+++ b/pkg/detectors/generic/generic.go
@@ -6,7 +6,7 @@ import (
"context"
"encoding/base64"
"fmt"
- "regexp"
+ regexp "github.com/wasilibs/go-re2"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/gengo/gengo.go b/pkg/detectors/gengo/gengo.go
index e90e14fac..e3c908b64 100644
--- a/pkg/detectors/gengo/gengo.go
+++ b/pkg/detectors/gengo/gengo.go
@@ -7,9 +7,9 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strconv"
"strings"
"time"
diff --git a/pkg/detectors/geoapify/geoapify.go b/pkg/detectors/geoapify/geoapify.go
index d20c890b8..8dc27f81e 100644
--- a/pkg/detectors/geoapify/geoapify.go
+++ b/pkg/detectors/geoapify/geoapify.go
@@ -3,8 +3,8 @@ package geoapify
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/geocode/geocode.go b/pkg/detectors/geocode/geocode.go
index 9b6bce1a4..ee5dabbc4 100644
--- a/pkg/detectors/geocode/geocode.go
+++ b/pkg/detectors/geocode/geocode.go
@@ -3,9 +3,9 @@ package geocode
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/geocodify/geocodify.go b/pkg/detectors/geocodify/geocodify.go
index e93dc2962..ff01b7aef 100644
--- a/pkg/detectors/geocodify/geocodify.go
+++ b/pkg/detectors/geocodify/geocodify.go
@@ -2,8 +2,8 @@ package geocodify
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/geocodio/geocodio.go b/pkg/detectors/geocodio/geocodio.go
index 21cbdb2f1..917847e4a 100644
--- a/pkg/detectors/geocodio/geocodio.go
+++ b/pkg/detectors/geocodio/geocodio.go
@@ -3,8 +3,8 @@ package geocodio
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/geoipifi/geoipifi.go b/pkg/detectors/geoipifi/geoipifi.go
index 3a0d31464..1ffebd086 100644
--- a/pkg/detectors/geoipifi/geoipifi.go
+++ b/pkg/detectors/geoipifi/geoipifi.go
@@ -2,8 +2,8 @@ package geoipifi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/getemail/getemail.go b/pkg/detectors/getemail/getemail.go
index 4bf56ee19..5a4c0bf23 100644
--- a/pkg/detectors/getemail/getemail.go
+++ b/pkg/detectors/getemail/getemail.go
@@ -3,9 +3,9 @@ package getemail
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/getemails/getemails.go b/pkg/detectors/getemails/getemails.go
index 4d33a59cc..ca40e0501 100644
--- a/pkg/detectors/getemails/getemails.go
+++ b/pkg/detectors/getemails/getemails.go
@@ -2,8 +2,8 @@ package getemails
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/getgeoapi/getgeoapi.go b/pkg/detectors/getgeoapi/getgeoapi.go
index c3784f36b..eae4b465c 100644
--- a/pkg/detectors/getgeoapi/getgeoapi.go
+++ b/pkg/detectors/getgeoapi/getgeoapi.go
@@ -3,8 +3,8 @@ package getgeoapi
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/getgist/getgist.go b/pkg/detectors/getgist/getgist.go
index 3a0158bb3..b3a985217 100644
--- a/pkg/detectors/getgist/getgist.go
+++ b/pkg/detectors/getgist/getgist.go
@@ -3,8 +3,8 @@ package getgist
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/getresponse/getresponse.go b/pkg/detectors/getresponse/getresponse.go
index 9e77cf0b7..f58b13444 100644
--- a/pkg/detectors/getresponse/getresponse.go
+++ b/pkg/detectors/getresponse/getresponse.go
@@ -3,8 +3,8 @@ package getresponse
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/getsandbox/getsandbox.go b/pkg/detectors/getsandbox/getsandbox.go
index a45cc70c2..f2eeff849 100644
--- a/pkg/detectors/getsandbox/getsandbox.go
+++ b/pkg/detectors/getsandbox/getsandbox.go
@@ -3,8 +3,8 @@ package getsandbox
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/github/github.go b/pkg/detectors/github/github.go
index 192f3d97a..038cd08c2 100644
--- a/pkg/detectors/github/github.go
+++ b/pkg/detectors/github/github.go
@@ -4,8 +4,8 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
"github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"
diff --git a/pkg/detectors/github_oauth2/github_oauth2.go b/pkg/detectors/github_oauth2/github_oauth2.go
index a3678a397..ea70de7da 100644
--- a/pkg/detectors/github_oauth2/github_oauth2.go
+++ b/pkg/detectors/github_oauth2/github_oauth2.go
@@ -2,7 +2,7 @@ package github_oauth2
import (
"context"
- "regexp"
+ regexp "github.com/wasilibs/go-re2"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/github_old/github_old.go b/pkg/detectors/github_old/github_old.go
index 45724309c..26d056801 100644
--- a/pkg/detectors/github_old/github_old.go
+++ b/pkg/detectors/github_old/github_old.go
@@ -4,8 +4,8 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/githubapp/githubapp.go b/pkg/detectors/githubapp/githubapp.go
index ec1c07588..ed27fdd92 100644
--- a/pkg/detectors/githubapp/githubapp.go
+++ b/pkg/detectors/githubapp/githubapp.go
@@ -5,8 +5,8 @@ import (
// b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/gitlab/gitlab.go b/pkg/detectors/gitlab/gitlab.go
index 33ac756b7..90f8fa02e 100644
--- a/pkg/detectors/gitlab/gitlab.go
+++ b/pkg/detectors/gitlab/gitlab.go
@@ -4,9 +4,9 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/gitlabv2/gitlab_v2.go b/pkg/detectors/gitlabv2/gitlab_v2.go
index 4c8c26150..24f0f1e75 100644
--- a/pkg/detectors/gitlabv2/gitlab_v2.go
+++ b/pkg/detectors/gitlabv2/gitlab_v2.go
@@ -3,8 +3,8 @@ package gitlabv2
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/gitter/gitter.go b/pkg/detectors/gitter/gitter.go
index f190118e0..21c7d113a 100644
--- a/pkg/detectors/gitter/gitter.go
+++ b/pkg/detectors/gitter/gitter.go
@@ -3,8 +3,8 @@ package gitter
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/glassnode/glassnode.go b/pkg/detectors/glassnode/glassnode.go
index b09e84870..ec1c42778 100644
--- a/pkg/detectors/glassnode/glassnode.go
+++ b/pkg/detectors/glassnode/glassnode.go
@@ -2,8 +2,8 @@ package glassnode
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/gocanvas/gocanvas.go b/pkg/detectors/gocanvas/gocanvas.go
index 00854e62a..e05336b26 100644
--- a/pkg/detectors/gocanvas/gocanvas.go
+++ b/pkg/detectors/gocanvas/gocanvas.go
@@ -4,10 +4,10 @@ import (
"context"
"encoding/xml"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
"net/url"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/gocardless/gocardless.go b/pkg/detectors/gocardless/gocardless.go
index 693911adb..d98498622 100644
--- a/pkg/detectors/gocardless/gocardless.go
+++ b/pkg/detectors/gocardless/gocardless.go
@@ -3,8 +3,8 @@ package gocardless
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/goodday/goodday.go b/pkg/detectors/goodday/goodday.go
index 7523e3a0a..1b637bc7a 100644
--- a/pkg/detectors/goodday/goodday.go
+++ b/pkg/detectors/goodday/goodday.go
@@ -2,8 +2,8 @@ package goodday
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/grafana/grafana.go b/pkg/detectors/grafana/grafana.go
index 5bd7676ba..9ca0431b2 100644
--- a/pkg/detectors/grafana/grafana.go
+++ b/pkg/detectors/grafana/grafana.go
@@ -3,8 +3,8 @@ package grafana
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount.go b/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount.go
index 94c1771cf..61d02c8c4 100644
--- a/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount.go
+++ b/pkg/detectors/grafanaserviceaccount/grafanaserviceaccount.go
@@ -3,8 +3,8 @@ package grafanaserviceaccount
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/graphcms/graphcms.go b/pkg/detectors/graphcms/graphcms.go
index 1059b7d3b..63c17507a 100644
--- a/pkg/detectors/graphcms/graphcms.go
+++ b/pkg/detectors/graphcms/graphcms.go
@@ -3,8 +3,8 @@ package graphcms
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/graphhopper/graphhopper.go b/pkg/detectors/graphhopper/graphhopper.go
index b3e249613..84c25ff88 100644
--- a/pkg/detectors/graphhopper/graphhopper.go
+++ b/pkg/detectors/graphhopper/graphhopper.go
@@ -3,8 +3,8 @@ package graphhopper
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/groovehq/groovehq.go b/pkg/detectors/groovehq/groovehq.go
index ca5c7b7b8..c1bfa8dad 100644
--- a/pkg/detectors/groovehq/groovehq.go
+++ b/pkg/detectors/groovehq/groovehq.go
@@ -3,8 +3,8 @@ package groovehq
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/gtmetrix/gtmetrix.go b/pkg/detectors/gtmetrix/gtmetrix.go
index 7decbba12..e1a06782b 100644
--- a/pkg/detectors/gtmetrix/gtmetrix.go
+++ b/pkg/detectors/gtmetrix/gtmetrix.go
@@ -2,8 +2,8 @@ package gtmetrix
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/guardianapi/guardianapi.go b/pkg/detectors/guardianapi/guardianapi.go
index 0630f582d..549492e9a 100644
--- a/pkg/detectors/guardianapi/guardianapi.go
+++ b/pkg/detectors/guardianapi/guardianapi.go
@@ -2,8 +2,8 @@ package guardianapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/gumroad/gumroad.go b/pkg/detectors/gumroad/gumroad.go
index 5725574c5..cd341d3b9 100644
--- a/pkg/detectors/gumroad/gumroad.go
+++ b/pkg/detectors/gumroad/gumroad.go
@@ -2,8 +2,8 @@ package gumroad
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/guru/guru.go b/pkg/detectors/guru/guru.go
index 563a1fc9d..8622faec9 100644
--- a/pkg/detectors/guru/guru.go
+++ b/pkg/detectors/guru/guru.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/gyazo/gyazo.go b/pkg/detectors/gyazo/gyazo.go
index b52555071..5c908ebaf 100644
--- a/pkg/detectors/gyazo/gyazo.go
+++ b/pkg/detectors/gyazo/gyazo.go
@@ -2,8 +2,8 @@ package gyazo
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/happyscribe/happyscribe.go b/pkg/detectors/happyscribe/happyscribe.go
index 354206563..7cf67309b 100644
--- a/pkg/detectors/happyscribe/happyscribe.go
+++ b/pkg/detectors/happyscribe/happyscribe.go
@@ -3,8 +3,8 @@ package happyscribe
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/harvest/harvest.go b/pkg/detectors/harvest/harvest.go
index 10a38f739..425205332 100644
--- a/pkg/detectors/harvest/harvest.go
+++ b/pkg/detectors/harvest/harvest.go
@@ -2,8 +2,8 @@ package harvest
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/hellosign/hellosign.go b/pkg/detectors/hellosign/hellosign.go
index 9b43595be..63c52e3c0 100644
--- a/pkg/detectors/hellosign/hellosign.go
+++ b/pkg/detectors/hellosign/hellosign.go
@@ -2,8 +2,8 @@ package hellosign
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/helpcrunch/helpcrunch.go b/pkg/detectors/helpcrunch/helpcrunch.go
index 55a82a37a..93eaa7ef6 100644
--- a/pkg/detectors/helpcrunch/helpcrunch.go
+++ b/pkg/detectors/helpcrunch/helpcrunch.go
@@ -3,8 +3,8 @@ package helpcrunch
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/helpscout/helpscout.go b/pkg/detectors/helpscout/helpscout.go
index ed139de33..1139c0030 100644
--- a/pkg/detectors/helpscout/helpscout.go
+++ b/pkg/detectors/helpscout/helpscout.go
@@ -2,8 +2,8 @@ package helpscout
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/hereapi/hereapi.go b/pkg/detectors/hereapi/hereapi.go
index c6362a7b4..530f2d60e 100644
--- a/pkg/detectors/hereapi/hereapi.go
+++ b/pkg/detectors/hereapi/hereapi.go
@@ -3,8 +3,8 @@ package hereapi
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/heroku/heroku.go b/pkg/detectors/heroku/heroku.go
index 2821fc7cb..d08cab603 100644
--- a/pkg/detectors/heroku/heroku.go
+++ b/pkg/detectors/heroku/heroku.go
@@ -3,8 +3,8 @@ package heroku
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/hive/hive.go b/pkg/detectors/hive/hive.go
index eecb74c86..f0e1bb0e8 100644
--- a/pkg/detectors/hive/hive.go
+++ b/pkg/detectors/hive/hive.go
@@ -2,8 +2,8 @@ package hive
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/hiveage/hiveage.go b/pkg/detectors/hiveage/hiveage.go
index 1f84e97ea..c206e8c60 100644
--- a/pkg/detectors/hiveage/hiveage.go
+++ b/pkg/detectors/hiveage/hiveage.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/holidayapi/holidayapi.go b/pkg/detectors/holidayapi/holidayapi.go
index f22ee728f..3ceac5b09 100644
--- a/pkg/detectors/holidayapi/holidayapi.go
+++ b/pkg/detectors/holidayapi/holidayapi.go
@@ -3,8 +3,8 @@ package holidayapi
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/holistic/holistic.go b/pkg/detectors/holistic/holistic.go
index 71160576a..5f08c5956 100644
--- a/pkg/detectors/holistic/holistic.go
+++ b/pkg/detectors/holistic/holistic.go
@@ -2,9 +2,9 @@ package holistic
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/honeycomb/honeycomb.go b/pkg/detectors/honeycomb/honeycomb.go
index 08af012f4..ca9dcbd71 100644
--- a/pkg/detectors/honeycomb/honeycomb.go
+++ b/pkg/detectors/honeycomb/honeycomb.go
@@ -2,8 +2,8 @@ package honeycomb
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/host/host.go b/pkg/detectors/host/host.go
index 0ed0db805..eb627e742 100644
--- a/pkg/detectors/host/host.go
+++ b/pkg/detectors/host/host.go
@@ -3,8 +3,8 @@ package host
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/html2pdf/html2pdf.go b/pkg/detectors/html2pdf/html2pdf.go
index 5b0594af5..93a95843a 100644
--- a/pkg/detectors/html2pdf/html2pdf.go
+++ b/pkg/detectors/html2pdf/html2pdf.go
@@ -4,8 +4,8 @@ import (
"bytes"
"context"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/hubspotapikey/hubspotapikey.go b/pkg/detectors/hubspotapikey/hubspotapikey.go
index 4adb62c76..74a7cd8c6 100644
--- a/pkg/detectors/hubspotapikey/hubspotapikey.go
+++ b/pkg/detectors/hubspotapikey/hubspotapikey.go
@@ -3,8 +3,8 @@ package hubspotapikey
import (
"context"
// "log"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/huggingface/huggingface.go b/pkg/detectors/huggingface/huggingface.go
index 4bdf14c9a..a6fa0a855 100644
--- a/pkg/detectors/huggingface/huggingface.go
+++ b/pkg/detectors/huggingface/huggingface.go
@@ -4,8 +4,8 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/huggingface/huggingface_test.go b/pkg/detectors/huggingface/huggingface_test.go
index 08bcf1f31..eba2decd1 100644
--- a/pkg/detectors/huggingface/huggingface_test.go
+++ b/pkg/detectors/huggingface/huggingface_test.go
@@ -53,6 +53,11 @@ func TestHuggingface_FromChunk(t *testing.T) {
{
DetectorType: detectorspb.DetectorType_HuggingFace,
Verified: true,
+ ExtraData: map[string]string{
+ "Email": "[email protected]",
+ "Token": "another_one (read)",
+ "Username": "zubairkhan",
+ },
},
},
wantErr: false,
@@ -122,6 +127,56 @@ func TestHuggingface_FromChunk(t *testing.T) {
wantVerificationErr: true,
},
}
+
+ // Add tests for invalid UTF-8 sequences.
+ invalidUTF8Sequences := [][]byte{
+ {0x80},
+ {0xC0, 0xAF},
+ {0xFE},
+ {0xE2, 0x82},
+ {0xED, 0xA0, 0x80},
+ {0xF0, 0x28},
+ }
+
+ for _, invalidSeq := range invalidUTF8Sequences {
+ // Inject invalid sequence into the test string
+ testData := fmt.Sprintf("you can find a huggingface secret %s%s%s more valid text",
+ string(invalidSeq),
+ secret,
+ string(invalidSeq))
+
+ tests = append(tests, struct {
+ name string
+ s Scanner
+ args args
+ want []detectors.Result
+ wantErr bool
+ wantVerificationErr bool
+ }{
+ name: fmt.Sprintf("Test with invalid UTF-8 sequence: %v", invalidSeq),
+ s: Scanner{},
+ args: args{
+ ctx: context.Background(),
+ data: []byte(testData),
+ verify: true, // or true based on your test scenario
+ },
+
+ want: []detectors.Result{
+ {
+ DetectorType: detectorspb.DetectorType_HuggingFace,
+ Verified: true,
+ ExtraData: map[string]string{
+ "Email": "[email protected]",
+ "Token": "another_one (read)",
+ "Username": "zubairkhan",
+ },
+ },
+ },
+ wantErr: false,
+ wantVerificationErr: false,
+ })
+ }
+
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got, err := tt.s.FromData(tt.args.ctx, tt.args.verify, tt.args.data)
diff --git a/pkg/detectors/humanity/humanity.go b/pkg/detectors/humanity/humanity.go
index 879948606..e258b5671 100644
--- a/pkg/detectors/humanity/humanity.go
+++ b/pkg/detectors/humanity/humanity.go
@@ -2,9 +2,9 @@ package humanity
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/hunter/hunter.go b/pkg/detectors/hunter/hunter.go
index c53fda8ab..ec7beba33 100644
--- a/pkg/detectors/hunter/hunter.go
+++ b/pkg/detectors/hunter/hunter.go
@@ -4,8 +4,8 @@ import (
"context"
// "fmt"
// "log"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/hybiscus/hybiscus.go b/pkg/detectors/hybiscus/hybiscus.go
index 61c173bf3..6e0e8f040 100644
--- a/pkg/detectors/hybiscus/hybiscus.go
+++ b/pkg/detectors/hybiscus/hybiscus.go
@@ -2,8 +2,8 @@ package hybiscus
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/hypertrack/hypertrack.go b/pkg/detectors/hypertrack/hypertrack.go
index 318bed544..c70821196 100644
--- a/pkg/detectors/hypertrack/hypertrack.go
+++ b/pkg/detectors/hypertrack/hypertrack.go
@@ -2,8 +2,8 @@ package hypertrack
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go b/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go
index d94f8942d..551453dfd 100644
--- a/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go
+++ b/pkg/detectors/ibmclouduserkey/ibmclouduserkey.go
@@ -2,8 +2,8 @@ package ibmclouduserkey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/iconfinder/iconfinder.go b/pkg/detectors/iconfinder/iconfinder.go
index 60f27d796..c98e8acb6 100644
--- a/pkg/detectors/iconfinder/iconfinder.go
+++ b/pkg/detectors/iconfinder/iconfinder.go
@@ -3,8 +3,8 @@ package iconfinder
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/iexapis/iexapis.go b/pkg/detectors/iexapis/iexapis.go
index dcc25865b..da15de37c 100644
--- a/pkg/detectors/iexapis/iexapis.go
+++ b/pkg/detectors/iexapis/iexapis.go
@@ -2,8 +2,8 @@ package iexapis
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/iexcloud/iexcloud.go b/pkg/detectors/iexcloud/iexcloud.go
index 53ceff3d8..6da807d4f 100644
--- a/pkg/detectors/iexcloud/iexcloud.go
+++ b/pkg/detectors/iexcloud/iexcloud.go
@@ -3,8 +3,8 @@ package iexcloud
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/imagekit/imagekit.go b/pkg/detectors/imagekit/imagekit.go
index b0f224d28..cb36a8614 100644
--- a/pkg/detectors/imagekit/imagekit.go
+++ b/pkg/detectors/imagekit/imagekit.go
@@ -2,8 +2,8 @@ package imagekit
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/imagga/imagga.go b/pkg/detectors/imagga/imagga.go
index 7ba883e2f..f63241bad 100644
--- a/pkg/detectors/imagga/imagga.go
+++ b/pkg/detectors/imagga/imagga.go
@@ -3,8 +3,8 @@ package imagga
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/impala/impala.go b/pkg/detectors/impala/impala.go
index e7dceeace..dde3ca5c0 100644
--- a/pkg/detectors/impala/impala.go
+++ b/pkg/detectors/impala/impala.go
@@ -2,8 +2,8 @@ package impala
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/infura/infura.go b/pkg/detectors/infura/infura.go
index 4ee17c7d9..1e54c7a48 100644
--- a/pkg/detectors/infura/infura.go
+++ b/pkg/detectors/infura/infura.go
@@ -2,9 +2,9 @@ package infura
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/insightly/insightly.go b/pkg/detectors/insightly/insightly.go
index faaad14af..e77798045 100644
--- a/pkg/detectors/insightly/insightly.go
+++ b/pkg/detectors/insightly/insightly.go
@@ -2,8 +2,8 @@ package insightly
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/instabot/instabot.go b/pkg/detectors/instabot/instabot.go
index 0aa468e63..6ba73ac28 100644
--- a/pkg/detectors/instabot/instabot.go
+++ b/pkg/detectors/instabot/instabot.go
@@ -2,8 +2,8 @@ package instabot
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/instamojo/instamojo.go b/pkg/detectors/instamojo/instamojo.go
index 42ba954b5..de281a18c 100644
--- a/pkg/detectors/instamojo/instamojo.go
+++ b/pkg/detectors/instamojo/instamojo.go
@@ -3,9 +3,9 @@ package instamojo
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
@@ -23,9 +23,9 @@ var _ detectors.Detector = (*Scanner)(nil)
var (
defaultClient = common.SaneHttpClient()
// Make sure that your group is surrounded in boundary characters such as below to reduce false positives.
- //KeyPat is client_id
+ // KeyPat is client_id
keyPat = regexp.MustCompile(detectors.PrefixRegex([]string{"instamojo"}) + `\b([0-9a-zA-Z]{40})\b`)
- //Secretpat is Client_secret
+ // Secretpat is Client_secret
secretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"instamojo"}) + `\b([0-9a-zA-Z]{128})\b`)
)
diff --git a/pkg/detectors/integromat/integromat.go b/pkg/detectors/integromat/integromat.go
index a7476113b..562e6d090 100644
--- a/pkg/detectors/integromat/integromat.go
+++ b/pkg/detectors/integromat/integromat.go
@@ -3,8 +3,8 @@ package integromat
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/intercom/intercom.go b/pkg/detectors/intercom/intercom.go
index ae4185f70..b4b7a0420 100644
--- a/pkg/detectors/intercom/intercom.go
+++ b/pkg/detectors/intercom/intercom.go
@@ -3,8 +3,8 @@ package intercom
import (
"context"
"encoding/base64"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/interseller/interseller.go b/pkg/detectors/interseller/interseller.go
index cf2e5c77b..fe96b67db 100644
--- a/pkg/detectors/interseller/interseller.go
+++ b/pkg/detectors/interseller/interseller.go
@@ -2,8 +2,8 @@ package interseller
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/intrinio/intrinio.go b/pkg/detectors/intrinio/intrinio.go
index 7792e5f1a..c881fe3a1 100644
--- a/pkg/detectors/intrinio/intrinio.go
+++ b/pkg/detectors/intrinio/intrinio.go
@@ -3,8 +3,8 @@ package intrinio
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/invoiceocean/invoiceocean.go b/pkg/detectors/invoiceocean/invoiceocean.go
index c2a10462f..b77a385dd 100644
--- a/pkg/detectors/invoiceocean/invoiceocean.go
+++ b/pkg/detectors/invoiceocean/invoiceocean.go
@@ -3,8 +3,8 @@ package invoiceocean
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ip2location/ip2location.go b/pkg/detectors/ip2location/ip2location.go
index 04537e43a..c2fac406c 100644
--- a/pkg/detectors/ip2location/ip2location.go
+++ b/pkg/detectors/ip2location/ip2location.go
@@ -3,8 +3,8 @@ package ip2location
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ipapi/ipapi.go b/pkg/detectors/ipapi/ipapi.go
index 3205b2706..3f686ea97 100644
--- a/pkg/detectors/ipapi/ipapi.go
+++ b/pkg/detectors/ipapi/ipapi.go
@@ -3,9 +3,9 @@ package ipapi
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ipgeolocation/ipgeolocation.go b/pkg/detectors/ipgeolocation/ipgeolocation.go
index 29cadae88..cc77f9000 100644
--- a/pkg/detectors/ipgeolocation/ipgeolocation.go
+++ b/pkg/detectors/ipgeolocation/ipgeolocation.go
@@ -3,8 +3,8 @@ package ipgeolocation
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ipify/ipify.go b/pkg/detectors/ipify/ipify.go
index 3f2880752..ed70b6506 100644
--- a/pkg/detectors/ipify/ipify.go
+++ b/pkg/detectors/ipify/ipify.go
@@ -3,8 +3,8 @@ package ipify
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/ipinfo/ipinfo.go b/pkg/detectors/ipinfo/ipinfo.go
index 3b1761c9c..cbc96431b 100644
--- a/pkg/detectors/ipinfo/ipinfo.go
+++ b/pkg/detectors/ipinfo/ipinfo.go
@@ -3,8 +3,8 @@ package ipinfo
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ipinfodb/ipinfodb.go b/pkg/detectors/ipinfodb/ipinfodb.go
index 1ec4bd72d..35f78246c 100644
--- a/pkg/detectors/ipinfodb/ipinfodb.go
+++ b/pkg/detectors/ipinfodb/ipinfodb.go
@@ -3,9 +3,9 @@ package ipinfodb
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ipquality/ipquality.go b/pkg/detectors/ipquality/ipquality.go
index 6288e6f5b..d6546f742 100644
--- a/pkg/detectors/ipquality/ipquality.go
+++ b/pkg/detectors/ipquality/ipquality.go
@@ -3,9 +3,9 @@ package ipquality
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ipstack/ipstack.go b/pkg/detectors/ipstack/ipstack.go
index bfc9a3e5f..726c42eae 100644
--- a/pkg/detectors/ipstack/ipstack.go
+++ b/pkg/detectors/ipstack/ipstack.go
@@ -2,9 +2,9 @@ package ipstack
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/jiratoken/jiratoken.go b/pkg/detectors/jiratoken/jiratoken.go
index ddae96f46..9abc58c00 100644
--- a/pkg/detectors/jiratoken/jiratoken.go
+++ b/pkg/detectors/jiratoken/jiratoken.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/jiratoken_v2/jiratoken_v2.go b/pkg/detectors/jiratoken_v2/jiratoken_v2.go
index 5753dc10a..9cdfc688d 100644
--- a/pkg/detectors/jiratoken_v2/jiratoken_v2.go
+++ b/pkg/detectors/jiratoken_v2/jiratoken_v2.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/jotform/jotform.go b/pkg/detectors/jotform/jotform.go
index 513b4ac09..1504e1181 100644
--- a/pkg/detectors/jotform/jotform.go
+++ b/pkg/detectors/jotform/jotform.go
@@ -2,8 +2,8 @@ package jotform
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/jumpcloud/jumpcloud.go b/pkg/detectors/jumpcloud/jumpcloud.go
index 35b9af0d7..0f8186097 100644
--- a/pkg/detectors/jumpcloud/jumpcloud.go
+++ b/pkg/detectors/jumpcloud/jumpcloud.go
@@ -2,8 +2,8 @@ package jumpcloud
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/juro/juro.go b/pkg/detectors/juro/juro.go
index 09357911c..7ccd9adfd 100644
--- a/pkg/detectors/juro/juro.go
+++ b/pkg/detectors/juro/juro.go
@@ -2,8 +2,8 @@ package juro
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/kanban/kanban.go b/pkg/detectors/kanban/kanban.go
index f05a3a8c5..96a695e21 100644
--- a/pkg/detectors/kanban/kanban.go
+++ b/pkg/detectors/kanban/kanban.go
@@ -3,8 +3,8 @@ package kanban
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/kanbantool/kanbantool.go b/pkg/detectors/kanbantool/kanbantool.go
index 36a49c746..3385e45df 100644
--- a/pkg/detectors/kanbantool/kanbantool.go
+++ b/pkg/detectors/kanbantool/kanbantool.go
@@ -3,8 +3,8 @@ package kanbantool
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/karmacrm/karmacrm.go b/pkg/detectors/karmacrm/karmacrm.go
index 5a3e61543..7b93983ce 100644
--- a/pkg/detectors/karmacrm/karmacrm.go
+++ b/pkg/detectors/karmacrm/karmacrm.go
@@ -3,8 +3,8 @@ package karmacrm
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/keenio/keenio.go b/pkg/detectors/keenio/keenio.go
index 0637cb692..e0b89deb4 100644
--- a/pkg/detectors/keenio/keenio.go
+++ b/pkg/detectors/keenio/keenio.go
@@ -2,8 +2,8 @@ package keenio
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/kickbox/kickbox.go b/pkg/detectors/kickbox/kickbox.go
index 4578bad57..a2c3df79b 100644
--- a/pkg/detectors/kickbox/kickbox.go
+++ b/pkg/detectors/kickbox/kickbox.go
@@ -2,8 +2,8 @@ package kickbox
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/klaviyo/klaviyo.go b/pkg/detectors/klaviyo/klaviyo.go
index 51f17fc03..6019d775c 100644
--- a/pkg/detectors/klaviyo/klaviyo.go
+++ b/pkg/detectors/klaviyo/klaviyo.go
@@ -4,8 +4,8 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/klipfolio/klipfolio.go b/pkg/detectors/klipfolio/klipfolio.go
index 478d1dfa6..5824f1764 100644
--- a/pkg/detectors/klipfolio/klipfolio.go
+++ b/pkg/detectors/klipfolio/klipfolio.go
@@ -2,8 +2,8 @@ package klipfolio
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/knapsackpro/knapsackpro.go b/pkg/detectors/knapsackpro/knapsackpro.go
index 721d81f97..ba68a522e 100644
--- a/pkg/detectors/knapsackpro/knapsackpro.go
+++ b/pkg/detectors/knapsackpro/knapsackpro.go
@@ -2,8 +2,8 @@ package knapsackpro
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/kontent/kontent.go b/pkg/detectors/kontent/kontent.go
index ec1316ed7..7166835ee 100644
--- a/pkg/detectors/kontent/kontent.go
+++ b/pkg/detectors/kontent/kontent.go
@@ -3,8 +3,8 @@ package kontent
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/kraken/kraken.go b/pkg/detectors/kraken/kraken.go
index 000c9811c..0a0693d14 100644
--- a/pkg/detectors/kraken/kraken.go
+++ b/pkg/detectors/kraken/kraken.go
@@ -6,10 +6,10 @@ import (
"crypto/sha256"
"crypto/sha512"
"encoding/base64"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
"net/url"
- "regexp"
"strconv"
"strings"
"time"
diff --git a/pkg/detectors/kucoin/kucoin.go b/pkg/detectors/kucoin/kucoin.go
index a97bc6594..0f68a3946 100644
--- a/pkg/detectors/kucoin/kucoin.go
+++ b/pkg/detectors/kucoin/kucoin.go
@@ -5,8 +5,8 @@ import (
"crypto/hmac"
"crypto/sha256"
"encoding/base64"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strconv"
"strings"
"time"
diff --git a/pkg/detectors/kylas/kylas.go b/pkg/detectors/kylas/kylas.go
index 3a01c15a9..815ea5256 100644
--- a/pkg/detectors/kylas/kylas.go
+++ b/pkg/detectors/kylas/kylas.go
@@ -2,8 +2,8 @@ package kylas
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/languagelayer/languagelayer.go b/pkg/detectors/languagelayer/languagelayer.go
index 7368a28b4..68e5e8e14 100644
--- a/pkg/detectors/languagelayer/languagelayer.go
+++ b/pkg/detectors/languagelayer/languagelayer.go
@@ -3,9 +3,9 @@ package languagelayer
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/lastfm/lastfm.go b/pkg/detectors/lastfm/lastfm.go
index 7b71caef5..f1d5f6ab4 100644
--- a/pkg/detectors/lastfm/lastfm.go
+++ b/pkg/detectors/lastfm/lastfm.go
@@ -2,8 +2,8 @@ package lastfm
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/launchdarkly/launchdarkly.go b/pkg/detectors/launchdarkly/launchdarkly.go
index bcb2c95f9..90e8eb398 100644
--- a/pkg/detectors/launchdarkly/launchdarkly.go
+++ b/pkg/detectors/launchdarkly/launchdarkly.go
@@ -4,8 +4,8 @@ import (
"context"
"errors"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/ldap/ldap.go b/pkg/detectors/ldap/ldap.go
index 996ed0532..b4619fa4c 100644
--- a/pkg/detectors/ldap/ldap.go
+++ b/pkg/detectors/ldap/ldap.go
@@ -4,9 +4,9 @@ import (
"context"
"crypto/tls"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net"
"net/url"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/leadfeeder/leadfeeder.go b/pkg/detectors/leadfeeder/leadfeeder.go
index 0b073b34c..b643a070d 100644
--- a/pkg/detectors/leadfeeder/leadfeeder.go
+++ b/pkg/detectors/leadfeeder/leadfeeder.go
@@ -3,8 +3,8 @@ package leadfeeder
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/lemlist/lemlist.go b/pkg/detectors/lemlist/lemlist.go
index 37954f4df..d76a1b5ea 100644
--- a/pkg/detectors/lemlist/lemlist.go
+++ b/pkg/detectors/lemlist/lemlist.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/lemonsqueezy/lemonsqueezy.go b/pkg/detectors/lemonsqueezy/lemonsqueezy.go
index c6914ffa9..ee04f1ab3 100644
--- a/pkg/detectors/lemonsqueezy/lemonsqueezy.go
+++ b/pkg/detectors/lemonsqueezy/lemonsqueezy.go
@@ -3,8 +3,8 @@ package lemonsqueezy
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/lendflow/lendflow.go b/pkg/detectors/lendflow/lendflow.go
index 9503f6eb6..c8777cc85 100644
--- a/pkg/detectors/lendflow/lendflow.go
+++ b/pkg/detectors/lendflow/lendflow.go
@@ -3,8 +3,8 @@ package lendflow
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go b/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go
index 06ec4ff2e..f894acedc 100644
--- a/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go
+++ b/pkg/detectors/lessannoyingcrm/lessannoyingcrm.go
@@ -3,8 +3,8 @@ package lessannoyingcrm
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/lexigram/lexigram.go b/pkg/detectors/lexigram/lexigram.go
index b807ac8c5..1f4209ce8 100644
--- a/pkg/detectors/lexigram/lexigram.go
+++ b/pkg/detectors/lexigram/lexigram.go
@@ -3,8 +3,8 @@ package lexigram
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/linearapi/linearapi.go b/pkg/detectors/linearapi/linearapi.go
index c441c9277..69d29747c 100644
--- a/pkg/detectors/linearapi/linearapi.go
+++ b/pkg/detectors/linearapi/linearapi.go
@@ -2,9 +2,9 @@ package linearapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/linemessaging/linemessaging.go b/pkg/detectors/linemessaging/linemessaging.go
index 477d2b320..2f0ca3b6a 100644
--- a/pkg/detectors/linemessaging/linemessaging.go
+++ b/pkg/detectors/linemessaging/linemessaging.go
@@ -3,8 +3,8 @@ package linemessaging
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/linenotify/linenotify.go b/pkg/detectors/linenotify/linenotify.go
index 74c42255a..4669865d7 100644
--- a/pkg/detectors/linenotify/linenotify.go
+++ b/pkg/detectors/linenotify/linenotify.go
@@ -3,8 +3,8 @@ package linenotify
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/linkpreview/linkpreview.go b/pkg/detectors/linkpreview/linkpreview.go
index 9e8aeca43..66d00ac13 100644
--- a/pkg/detectors/linkpreview/linkpreview.go
+++ b/pkg/detectors/linkpreview/linkpreview.go
@@ -3,8 +3,8 @@ package linkpreview
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/liveagent/liveagent.go b/pkg/detectors/liveagent/liveagent.go
index e12ca56a3..c81ad2d89 100644
--- a/pkg/detectors/liveagent/liveagent.go
+++ b/pkg/detectors/liveagent/liveagent.go
@@ -3,8 +3,8 @@ package liveagent
import (
"context"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/livestorm/livestorm.go b/pkg/detectors/livestorm/livestorm.go
index c00e60233..f1767d03f 100644
--- a/pkg/detectors/livestorm/livestorm.go
+++ b/pkg/detectors/livestorm/livestorm.go
@@ -2,8 +2,8 @@ package livestorm
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/loadmill/loadmill.go b/pkg/detectors/loadmill/loadmill.go
index 7052e3215..61ccc54d2 100644
--- a/pkg/detectors/loadmill/loadmill.go
+++ b/pkg/detectors/loadmill/loadmill.go
@@ -3,8 +3,8 @@ package loadmill
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/lob/lob.go b/pkg/detectors/lob/lob.go
index a482c13ef..0a27c0e8b 100644
--- a/pkg/detectors/lob/lob.go
+++ b/pkg/detectors/lob/lob.go
@@ -2,8 +2,8 @@ package lob
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/locationiq/locationiq.go b/pkg/detectors/locationiq/locationiq.go
index 918a1a426..750cd168e 100644
--- a/pkg/detectors/locationiq/locationiq.go
+++ b/pkg/detectors/locationiq/locationiq.go
@@ -2,8 +2,8 @@ package locationiq
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/loggly/loggly.go b/pkg/detectors/loggly/loggly.go
index 3ef5bf012..453bc3aa2 100644
--- a/pkg/detectors/loggly/loggly.go
+++ b/pkg/detectors/loggly/loggly.go
@@ -3,8 +3,8 @@ package loggly
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/loginradius/loginradius.go b/pkg/detectors/loginradius/loginradius.go
index e50b3b021..05c2f425e 100644
--- a/pkg/detectors/loginradius/loginradius.go
+++ b/pkg/detectors/loginradius/loginradius.go
@@ -2,8 +2,8 @@ package loginradius
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/logzio/logzio.go b/pkg/detectors/logzio/logzio.go
index cc77dd4cf..1addc3b5e 100644
--- a/pkg/detectors/logzio/logzio.go
+++ b/pkg/detectors/logzio/logzio.go
@@ -3,8 +3,8 @@ package logzio
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/lokalisetoken/lokalisetoken.go b/pkg/detectors/lokalisetoken/lokalisetoken.go
index 7b9ca3baa..b109e4059 100644
--- a/pkg/detectors/lokalisetoken/lokalisetoken.go
+++ b/pkg/detectors/lokalisetoken/lokalisetoken.go
@@ -2,8 +2,8 @@ package lokalisetoken
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/loyverse/loyverse.go b/pkg/detectors/loyverse/loyverse.go
index 7654ffebb..4fa28b51e 100644
--- a/pkg/detectors/loyverse/loyverse.go
+++ b/pkg/detectors/loyverse/loyverse.go
@@ -3,8 +3,8 @@ package loyverse
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/lunchmoney/lunchmoney.go b/pkg/detectors/lunchmoney/lunchmoney.go
index 778801793..98a53b291 100644
--- a/pkg/detectors/lunchmoney/lunchmoney.go
+++ b/pkg/detectors/lunchmoney/lunchmoney.go
@@ -3,8 +3,8 @@ package lunchmoney
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/luno/luno.go b/pkg/detectors/luno/luno.go
index be80eb81b..d8af86bad 100644
--- a/pkg/detectors/luno/luno.go
+++ b/pkg/detectors/luno/luno.go
@@ -2,8 +2,8 @@ package luno
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/m3o/m3o.go b/pkg/detectors/m3o/m3o.go
index 5c5c78f01..f55a65d81 100644
--- a/pkg/detectors/m3o/m3o.go
+++ b/pkg/detectors/m3o/m3o.go
@@ -3,8 +3,8 @@ package m3o
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/macaddress/macaddress.go b/pkg/detectors/macaddress/macaddress.go
index 74d26b1dd..ba1b9f60b 100644
--- a/pkg/detectors/macaddress/macaddress.go
+++ b/pkg/detectors/macaddress/macaddress.go
@@ -3,8 +3,8 @@ package macaddress
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/madkudu/madkudu.go b/pkg/detectors/madkudu/madkudu.go
index 1256ecd0b..b0f80424d 100644
--- a/pkg/detectors/madkudu/madkudu.go
+++ b/pkg/detectors/madkudu/madkudu.go
@@ -2,8 +2,8 @@ package madkudu
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/magicbell/magicbell.go b/pkg/detectors/magicbell/magicbell.go
index 84d2666dc..730b59b27 100644
--- a/pkg/detectors/magicbell/magicbell.go
+++ b/pkg/detectors/magicbell/magicbell.go
@@ -2,8 +2,8 @@ package magicbell
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/magnetic/magnetic.go b/pkg/detectors/magnetic/magnetic.go
index 40b7f21a5..aa2867c00 100644
--- a/pkg/detectors/magnetic/magnetic.go
+++ b/pkg/detectors/magnetic/magnetic.go
@@ -2,8 +2,8 @@ package magnetic
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mailboxlayer/mailboxlayer.go b/pkg/detectors/mailboxlayer/mailboxlayer.go
index c882dbaa8..57d1ea402 100644
--- a/pkg/detectors/mailboxlayer/mailboxlayer.go
+++ b/pkg/detectors/mailboxlayer/mailboxlayer.go
@@ -2,9 +2,9 @@ package mailboxlayer
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mailchimp/mailchimp.go b/pkg/detectors/mailchimp/mailchimp.go
index a206b070a..852062f17 100644
--- a/pkg/detectors/mailchimp/mailchimp.go
+++ b/pkg/detectors/mailchimp/mailchimp.go
@@ -3,8 +3,8 @@ package mailchimp
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
@@ -33,7 +33,7 @@ func (s Scanner) Keywords() []string {
func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error) {
dataStr := string(data)
- //pretty standard regex match
+ // pretty standard regex match
matches := keyPat.FindAllString(dataStr, -1)
for _, match := range matches {
diff --git a/pkg/detectors/mailerlite/mailerlite.go b/pkg/detectors/mailerlite/mailerlite.go
index 1e33df8e2..cac7e1428 100644
--- a/pkg/detectors/mailerlite/mailerlite.go
+++ b/pkg/detectors/mailerlite/mailerlite.go
@@ -2,8 +2,8 @@ package mailerlite
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mailgun/mailgun.go b/pkg/detectors/mailgun/mailgun.go
index dd9556617..7f129cd58 100644
--- a/pkg/detectors/mailgun/mailgun.go
+++ b/pkg/detectors/mailgun/mailgun.go
@@ -3,8 +3,8 @@ package mailgun
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
@@ -55,7 +55,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
if err != nil {
continue
}
-
+
// If resMatch has "key" prefix, use it as the username for basic auth.
if strings.HasPrefix(resMatch, "key-") {
req.SetBasicAuth("api", resMatch)
diff --git a/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go b/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go
index 0030e5e63..6faabbb34 100644
--- a/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go
+++ b/pkg/detectors/mailjetbasicauth/mailjetbasicauth.go
@@ -3,8 +3,8 @@ package mailjetbasicauth
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mailjetsms/mailjetsms.go b/pkg/detectors/mailjetsms/mailjetsms.go
index 43388ef9f..82bdc3c27 100644
--- a/pkg/detectors/mailjetsms/mailjetsms.go
+++ b/pkg/detectors/mailjetsms/mailjetsms.go
@@ -3,8 +3,8 @@ package mailjetsms
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mailmodo/mailmodo.go b/pkg/detectors/mailmodo/mailmodo.go
index 2c3b093cb..0fdf69feb 100644
--- a/pkg/detectors/mailmodo/mailmodo.go
+++ b/pkg/detectors/mailmodo/mailmodo.go
@@ -2,8 +2,8 @@ package mailmodo
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mailsac/mailsac.go b/pkg/detectors/mailsac/mailsac.go
index 5504ba8db..97ee69af6 100644
--- a/pkg/detectors/mailsac/mailsac.go
+++ b/pkg/detectors/mailsac/mailsac.go
@@ -2,8 +2,8 @@ package mailsac
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mandrill/mandrill.go b/pkg/detectors/mandrill/mandrill.go
index c1d928d8b..be0a496bf 100644
--- a/pkg/detectors/mandrill/mandrill.go
+++ b/pkg/detectors/mandrill/mandrill.go
@@ -3,8 +3,8 @@ package mandrill
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/manifest/manifest.go b/pkg/detectors/manifest/manifest.go
index 9521dddb6..e74cbf3fc 100644
--- a/pkg/detectors/manifest/manifest.go
+++ b/pkg/detectors/manifest/manifest.go
@@ -2,8 +2,8 @@ package manifest
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mapbox/mapbox.go b/pkg/detectors/mapbox/mapbox.go
index 951de013e..bbeb059e8 100644
--- a/pkg/detectors/mapbox/mapbox.go
+++ b/pkg/detectors/mapbox/mapbox.go
@@ -3,8 +3,8 @@ package mapbox
import (
"context"
// "log"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mapquest/mapquest.go b/pkg/detectors/mapquest/mapquest.go
index 31f52b086..640896264 100644
--- a/pkg/detectors/mapquest/mapquest.go
+++ b/pkg/detectors/mapquest/mapquest.go
@@ -2,8 +2,8 @@ package mapquest
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/marketstack/marketstack.go b/pkg/detectors/marketstack/marketstack.go
index 531d7594a..e3eb5ac76 100644
--- a/pkg/detectors/marketstack/marketstack.go
+++ b/pkg/detectors/marketstack/marketstack.go
@@ -3,8 +3,8 @@ package marketstack
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go b/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go
index cc64e07fe..ca5c65ba2 100644
--- a/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go
+++ b/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken.go
@@ -3,8 +3,8 @@ package mattermostpersonaltoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mavenlink/mavenlink.go b/pkg/detectors/mavenlink/mavenlink.go
index 953b6041d..6897cc1de 100644
--- a/pkg/detectors/mavenlink/mavenlink.go
+++ b/pkg/detectors/mavenlink/mavenlink.go
@@ -3,8 +3,8 @@ package mavenlink
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/maxmindlicense/maxmindlicense.go b/pkg/detectors/maxmindlicense/maxmindlicense.go
index 1e694e423..98b396bdd 100644
--- a/pkg/detectors/maxmindlicense/maxmindlicense.go
+++ b/pkg/detectors/maxmindlicense/maxmindlicense.go
@@ -2,8 +2,8 @@ package maxmindlicense
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/meaningcloud/meaningcloud.go b/pkg/detectors/meaningcloud/meaningcloud.go
index a9eb84e4a..5d4eb584c 100644
--- a/pkg/detectors/meaningcloud/meaningcloud.go
+++ b/pkg/detectors/meaningcloud/meaningcloud.go
@@ -4,10 +4,10 @@ import (
"bytes"
"context"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"io"
"mime/multipart"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mediastack/mediastack.go b/pkg/detectors/mediastack/mediastack.go
index ab61cbc64..0cd9ab3cc 100644
--- a/pkg/detectors/mediastack/mediastack.go
+++ b/pkg/detectors/mediastack/mediastack.go
@@ -3,8 +3,8 @@ package mediastack
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/meistertask/meistertask.go b/pkg/detectors/meistertask/meistertask.go
index 2a1b2b8d3..3219747b0 100644
--- a/pkg/detectors/meistertask/meistertask.go
+++ b/pkg/detectors/meistertask/meistertask.go
@@ -3,8 +3,8 @@ package meistertask
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mesibo/mesibo.go b/pkg/detectors/mesibo/mesibo.go
index 1edb719ae..81a5c9ae5 100644
--- a/pkg/detectors/mesibo/mesibo.go
+++ b/pkg/detectors/mesibo/mesibo.go
@@ -2,9 +2,9 @@ package mesibo
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
@@ -13,6 +13,7 @@ import (
)
type Scanner struct{}
+
// Ensure the Scanner satisfies the interface at compile time.
var _ detectors.Detector = (*Scanner)(nil)
diff --git a/pkg/detectors/messagebird/messagebird.go b/pkg/detectors/messagebird/messagebird.go
index 73caffba8..56e42cc06 100644
--- a/pkg/detectors/messagebird/messagebird.go
+++ b/pkg/detectors/messagebird/messagebird.go
@@ -3,8 +3,8 @@ package messagebird
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/metaapi/metaapi.go b/pkg/detectors/metaapi/metaapi.go
index a59e33106..e5ee72722 100644
--- a/pkg/detectors/metaapi/metaapi.go
+++ b/pkg/detectors/metaapi/metaapi.go
@@ -3,9 +3,9 @@ package metaapi
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/metabase/metabase.go b/pkg/detectors/metabase/metabase.go
index 804ec978b..53f11c9f3 100644
--- a/pkg/detectors/metabase/metabase.go
+++ b/pkg/detectors/metabase/metabase.go
@@ -3,9 +3,9 @@ package metabase
import (
"context"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/metrilo/metrilo.go b/pkg/detectors/metrilo/metrilo.go
index f3dfac537..a25a16875 100644
--- a/pkg/detectors/metrilo/metrilo.go
+++ b/pkg/detectors/metrilo/metrilo.go
@@ -2,8 +2,8 @@ package metrilo
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go b/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go
index f5b9a0ece..cda30abda 100644
--- a/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go
+++ b/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook.go
@@ -3,9 +3,9 @@ package microsoftteamswebhook
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/mindmeister/mindmeister.go b/pkg/detectors/mindmeister/mindmeister.go
index 3440b873c..28c5b8453 100644
--- a/pkg/detectors/mindmeister/mindmeister.go
+++ b/pkg/detectors/mindmeister/mindmeister.go
@@ -3,9 +3,9 @@ package mindmeister
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/miro/miro.go b/pkg/detectors/miro/miro.go
index 451e9b84b..aad280cab 100644
--- a/pkg/detectors/miro/miro.go
+++ b/pkg/detectors/miro/miro.go
@@ -3,8 +3,8 @@ package miro
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mite/mite.go b/pkg/detectors/mite/mite.go
index 5fe3bf7b0..2a027b257 100644
--- a/pkg/detectors/mite/mite.go
+++ b/pkg/detectors/mite/mite.go
@@ -3,8 +3,8 @@ package mite
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mixmax/mixmax.go b/pkg/detectors/mixmax/mixmax.go
index 9bebb2a67..d2c733989 100644
--- a/pkg/detectors/mixmax/mixmax.go
+++ b/pkg/detectors/mixmax/mixmax.go
@@ -2,8 +2,8 @@ package mixmax
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mixpanel/mixpanel.go b/pkg/detectors/mixpanel/mixpanel.go
index 028ed97ce..a28c4c626 100644
--- a/pkg/detectors/mixpanel/mixpanel.go
+++ b/pkg/detectors/mixpanel/mixpanel.go
@@ -2,8 +2,8 @@ package mixpanel
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mockaroo/mockaroo.go b/pkg/detectors/mockaroo/mockaroo.go
index 0a5127415..7c18ace57 100644
--- a/pkg/detectors/mockaroo/mockaroo.go
+++ b/pkg/detectors/mockaroo/mockaroo.go
@@ -4,8 +4,8 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/moderation/moderation.go b/pkg/detectors/moderation/moderation.go
index 288bd3688..1a54841f8 100644
--- a/pkg/detectors/moderation/moderation.go
+++ b/pkg/detectors/moderation/moderation.go
@@ -3,8 +3,8 @@ package moderation
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/monday/monday.go b/pkg/detectors/monday/monday.go
index 9848e2bae..fe57e2c0f 100644
--- a/pkg/detectors/monday/monday.go
+++ b/pkg/detectors/monday/monday.go
@@ -2,8 +2,8 @@ package monday
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mongodb/mongodb.go b/pkg/detectors/mongodb/mongodb.go
index 346db1998..cc989ec9f 100644
--- a/pkg/detectors/mongodb/mongodb.go
+++ b/pkg/detectors/mongodb/mongodb.go
@@ -2,7 +2,7 @@ package mongodb
import (
"context"
- "regexp"
+ regexp "github.com/wasilibs/go-re2"
"strings"
"time"
diff --git a/pkg/detectors/monkeylearn/monkeylearn.go b/pkg/detectors/monkeylearn/monkeylearn.go
index 3c54537fb..4a1c52f73 100644
--- a/pkg/detectors/monkeylearn/monkeylearn.go
+++ b/pkg/detectors/monkeylearn/monkeylearn.go
@@ -3,8 +3,8 @@ package monkeylearn
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/moonclerk/moonclerk.go b/pkg/detectors/moonclerk/moonclerk.go
index ff721cbe1..e04384d66 100644
--- a/pkg/detectors/moonclerk/moonclerk.go
+++ b/pkg/detectors/moonclerk/moonclerk.go
@@ -2,8 +2,8 @@ package moonclerk
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/moosend/moosend.go b/pkg/detectors/moosend/moosend.go
index 4cdf7ce1a..8ac552832 100644
--- a/pkg/detectors/moosend/moosend.go
+++ b/pkg/detectors/moosend/moosend.go
@@ -2,9 +2,9 @@ package moosend
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/moralis/moralis.go b/pkg/detectors/moralis/moralis.go
index cf70f73ae..5c6c2d176 100644
--- a/pkg/detectors/moralis/moralis.go
+++ b/pkg/detectors/moralis/moralis.go
@@ -2,8 +2,8 @@ package moralis
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mrticktock/mrticktock.go b/pkg/detectors/mrticktock/mrticktock.go
index 5b226b04f..75edeb164 100644
--- a/pkg/detectors/mrticktock/mrticktock.go
+++ b/pkg/detectors/mrticktock/mrticktock.go
@@ -3,9 +3,9 @@ package mrticktock
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/mux/mux.go b/pkg/detectors/mux/mux.go
index 7fcb6a4db..98c5159fa 100644
--- a/pkg/detectors/mux/mux.go
+++ b/pkg/detectors/mux/mux.go
@@ -2,8 +2,8 @@ package mux
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/myfreshworks/myfreshworks.go b/pkg/detectors/myfreshworks/myfreshworks.go
index ee6a08d85..db93da3aa 100644
--- a/pkg/detectors/myfreshworks/myfreshworks.go
+++ b/pkg/detectors/myfreshworks/myfreshworks.go
@@ -4,9 +4,9 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/myintervals/myintervals.go b/pkg/detectors/myintervals/myintervals.go
index 9486811d3..00c6dec4c 100644
--- a/pkg/detectors/myintervals/myintervals.go
+++ b/pkg/detectors/myintervals/myintervals.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go b/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go
index 18a29d13f..db1fdc828 100644
--- a/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go
+++ b/pkg/detectors/nasdaqdatalink/nasdaqdatalink.go
@@ -3,8 +3,8 @@ package nasdaqdatalink
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/nethunt/nethunt.go b/pkg/detectors/nethunt/nethunt.go
index a91abb4e7..ff23d922e 100644
--- a/pkg/detectors/nethunt/nethunt.go
+++ b/pkg/detectors/nethunt/nethunt.go
@@ -2,8 +2,8 @@ package nethunt
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/netlify/netlify.go b/pkg/detectors/netlify/netlify.go
index a0c75a465..b6ad55f4a 100644
--- a/pkg/detectors/netlify/netlify.go
+++ b/pkg/detectors/netlify/netlify.go
@@ -3,8 +3,8 @@ package netlify
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/neutrinoapi/neutrinoapi.go b/pkg/detectors/neutrinoapi/neutrinoapi.go
index c4bbf5eee..1ddf6f001 100644
--- a/pkg/detectors/neutrinoapi/neutrinoapi.go
+++ b/pkg/detectors/neutrinoapi/neutrinoapi.go
@@ -4,10 +4,10 @@ import (
"bytes"
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"mime/multipart"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go
index 2f954faa6..a024d2d95 100644
--- a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go
+++ b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey.go
@@ -2,8 +2,8 @@ package newrelicpersonalapikey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
@@ -54,7 +54,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
}
req.Header.Add("X-Api-Key", resMatch)
reqEU.Header.Add("X-Api-Key", resMatch)
-
+
res, err := client.Do(req)
resEU, errEU := client.Do(reqEU)
diff --git a/pkg/detectors/newsapi/newsapi.go b/pkg/detectors/newsapi/newsapi.go
index 99fada386..e344e34a1 100644
--- a/pkg/detectors/newsapi/newsapi.go
+++ b/pkg/detectors/newsapi/newsapi.go
@@ -2,8 +2,8 @@ package newsapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/newscatcher/newscatcher.go b/pkg/detectors/newscatcher/newscatcher.go
index bfd1bca4f..8d0f49b6d 100644
--- a/pkg/detectors/newscatcher/newscatcher.go
+++ b/pkg/detectors/newscatcher/newscatcher.go
@@ -2,8 +2,8 @@ package newscatcher
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/nexmoapikey/nexmoapikey.go b/pkg/detectors/nexmoapikey/nexmoapikey.go
index 892ae6651..3012be318 100644
--- a/pkg/detectors/nexmoapikey/nexmoapikey.go
+++ b/pkg/detectors/nexmoapikey/nexmoapikey.go
@@ -2,8 +2,8 @@ package nexmoapikey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/nftport/nftport.go b/pkg/detectors/nftport/nftport.go
index 6bc019268..3241d11a2 100644
--- a/pkg/detectors/nftport/nftport.go
+++ b/pkg/detectors/nftport/nftport.go
@@ -2,8 +2,8 @@ package nftport
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ngc/ngc.go b/pkg/detectors/ngc/ngc.go
index 6d7c273a1..ffd4bd3ec 100644
--- a/pkg/detectors/ngc/ngc.go
+++ b/pkg/detectors/ngc/ngc.go
@@ -3,8 +3,8 @@ package ngc
import (
"context"
"encoding/base64"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ngrok/ngrok.go b/pkg/detectors/ngrok/ngrok.go
index 5cd3941d3..52523ce6a 100644
--- a/pkg/detectors/ngrok/ngrok.go
+++ b/pkg/detectors/ngrok/ngrok.go
@@ -3,8 +3,8 @@ package ngrok
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/nicereply/nicereply.go b/pkg/detectors/nicereply/nicereply.go
index 6d9865507..aa8de838e 100644
--- a/pkg/detectors/nicereply/nicereply.go
+++ b/pkg/detectors/nicereply/nicereply.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/nightfall/nightfall.go b/pkg/detectors/nightfall/nightfall.go
index ab7a853bf..105eed1fd 100644
--- a/pkg/detectors/nightfall/nightfall.go
+++ b/pkg/detectors/nightfall/nightfall.go
@@ -3,8 +3,8 @@ package nightfall
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/nimble/nimble.go b/pkg/detectors/nimble/nimble.go
index 5e2eff731..6f3fc1a0b 100644
--- a/pkg/detectors/nimble/nimble.go
+++ b/pkg/detectors/nimble/nimble.go
@@ -3,8 +3,8 @@ package nimble
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/nitro/nitro.go b/pkg/detectors/nitro/nitro.go
index d5b6ea07f..45636cd54 100644
--- a/pkg/detectors/nitro/nitro.go
+++ b/pkg/detectors/nitro/nitro.go
@@ -2,8 +2,8 @@ package nitro
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/noticeable/noticeable.go b/pkg/detectors/noticeable/noticeable.go
index 63858d741..13331ab12 100644
--- a/pkg/detectors/noticeable/noticeable.go
+++ b/pkg/detectors/noticeable/noticeable.go
@@ -3,8 +3,8 @@ package noticeable
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/notion/notion.go b/pkg/detectors/notion/notion.go
index 2496c55ac..2d599f50f 100644
--- a/pkg/detectors/notion/notion.go
+++ b/pkg/detectors/notion/notion.go
@@ -3,8 +3,8 @@ package notion
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/nozbeteams/nozbeteams.go b/pkg/detectors/nozbeteams/nozbeteams.go
index 9b1d54029..d2e230ba9 100644
--- a/pkg/detectors/nozbeteams/nozbeteams.go
+++ b/pkg/detectors/nozbeteams/nozbeteams.go
@@ -2,8 +2,8 @@ package nozbeteams
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/npmtoken/npmtoken.go b/pkg/detectors/npmtoken/npmtoken.go
index 2a624045f..06b5fb709 100644
--- a/pkg/detectors/npmtoken/npmtoken.go
+++ b/pkg/detectors/npmtoken/npmtoken.go
@@ -3,8 +3,8 @@ package npmtoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/npmtokenv2/npmtokenv2.go b/pkg/detectors/npmtokenv2/npmtokenv2.go
index 56b2ef036..e7eda9b96 100644
--- a/pkg/detectors/npmtokenv2/npmtokenv2.go
+++ b/pkg/detectors/npmtokenv2/npmtokenv2.go
@@ -3,8 +3,8 @@ package npmtokenv2
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/nugetapikey/nugetapikey.go b/pkg/detectors/nugetapikey/nugetapikey.go
index e598b0db4..f7d071063 100644
--- a/pkg/detectors/nugetapikey/nugetapikey.go
+++ b/pkg/detectors/nugetapikey/nugetapikey.go
@@ -2,8 +2,8 @@ package nugetapikey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
@@ -56,7 +56,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
res, err := client.Do(req)
if err == nil {
defer res.Body.Close()
- // we can either match on response code "400" or "Bad Request" response
+ // we can either match on response code "400" or "Bad Request" response
if res.StatusCode == 400 {
s1.Verified = true
} else {
diff --git a/pkg/detectors/numverify/numverify.go b/pkg/detectors/numverify/numverify.go
index 2eb1f3319..cb13b7093 100644
--- a/pkg/detectors/numverify/numverify.go
+++ b/pkg/detectors/numverify/numverify.go
@@ -3,9 +3,9 @@ package numverify
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/nutritionix/nutritionix.go b/pkg/detectors/nutritionix/nutritionix.go
index 0c3a9c772..9e038353d 100644
--- a/pkg/detectors/nutritionix/nutritionix.go
+++ b/pkg/detectors/nutritionix/nutritionix.go
@@ -2,8 +2,8 @@ package nutritionix
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/nylas/nylas.go b/pkg/detectors/nylas/nylas.go
index ec564b446..323eef573 100644
--- a/pkg/detectors/nylas/nylas.go
+++ b/pkg/detectors/nylas/nylas.go
@@ -3,8 +3,8 @@ package nylas
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/nytimes/nytimes.go b/pkg/detectors/nytimes/nytimes.go
index e992ce304..b0398bc94 100644
--- a/pkg/detectors/nytimes/nytimes.go
+++ b/pkg/detectors/nytimes/nytimes.go
@@ -2,8 +2,8 @@ package nytimes
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/oanda/oanda.go b/pkg/detectors/oanda/oanda.go
index 051208189..c2f47a582 100644
--- a/pkg/detectors/oanda/oanda.go
+++ b/pkg/detectors/oanda/oanda.go
@@ -3,8 +3,8 @@ package oanda
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/okta/okta.go b/pkg/detectors/okta/okta.go
index 074acbbaf..e9a7212a9 100644
--- a/pkg/detectors/okta/okta.go
+++ b/pkg/detectors/okta/okta.go
@@ -3,9 +3,9 @@ package okta
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/omnisend/omnisend.go b/pkg/detectors/omnisend/omnisend.go
index 7bd2dcf80..8654d5523 100644
--- a/pkg/detectors/omnisend/omnisend.go
+++ b/pkg/detectors/omnisend/omnisend.go
@@ -2,8 +2,8 @@ package omnisend
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/onedesk/onedesk.go b/pkg/detectors/onedesk/onedesk.go
index 92ab30387..4c71b6132 100644
--- a/pkg/detectors/onedesk/onedesk.go
+++ b/pkg/detectors/onedesk/onedesk.go
@@ -3,9 +3,9 @@ package onedesk
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/onelogin/onelogin.go b/pkg/detectors/onelogin/onelogin.go
index 0212a0681..f280a0481 100644
--- a/pkg/detectors/onelogin/onelogin.go
+++ b/pkg/detectors/onelogin/onelogin.go
@@ -3,8 +3,8 @@ package onelogin
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/onepagecrm/onepagecrm.go b/pkg/detectors/onepagecrm/onepagecrm.go
index 61f57f097..ee3df783e 100644
--- a/pkg/detectors/onepagecrm/onepagecrm.go
+++ b/pkg/detectors/onepagecrm/onepagecrm.go
@@ -2,8 +2,8 @@ package onepagecrm
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/onesignal/onesignal.go b/pkg/detectors/onesignal/onesignal.go
index d9ebefa66..259558167 100644
--- a/pkg/detectors/onesignal/onesignal.go
+++ b/pkg/detectors/onesignal/onesignal.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/onwaterio/onwaterio.go b/pkg/detectors/onwaterio/onwaterio.go
index 53182c184..2c12fa389 100644
--- a/pkg/detectors/onwaterio/onwaterio.go
+++ b/pkg/detectors/onwaterio/onwaterio.go
@@ -3,8 +3,8 @@ package onwaterio
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/oopspam/oopspam.go b/pkg/detectors/oopspam/oopspam.go
index 3cbf45060..b3bebe57e 100644
--- a/pkg/detectors/oopspam/oopspam.go
+++ b/pkg/detectors/oopspam/oopspam.go
@@ -2,8 +2,8 @@ package oopspam
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/openai/openai.go b/pkg/detectors/openai/openai.go
index c658f6f84..7b28b05b6 100644
--- a/pkg/detectors/openai/openai.go
+++ b/pkg/detectors/openai/openai.go
@@ -4,8 +4,8 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strconv"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/opencagedata/opencagedata.go b/pkg/detectors/opencagedata/opencagedata.go
index 763189149..110886d93 100644
--- a/pkg/detectors/opencagedata/opencagedata.go
+++ b/pkg/detectors/opencagedata/opencagedata.go
@@ -3,8 +3,8 @@ package opencagedata
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/opengraphr/opengraphr.go b/pkg/detectors/opengraphr/opengraphr.go
index fabd0b8a8..227a7af0c 100644
--- a/pkg/detectors/opengraphr/opengraphr.go
+++ b/pkg/detectors/opengraphr/opengraphr.go
@@ -2,8 +2,8 @@ package opengraphr
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/openuv/openuv.go b/pkg/detectors/openuv/openuv.go
index 02981b0a3..1d0a0b512 100644
--- a/pkg/detectors/openuv/openuv.go
+++ b/pkg/detectors/openuv/openuv.go
@@ -2,8 +2,8 @@ package openuv
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/openvpn/openvpn.go b/pkg/detectors/openvpn/openvpn.go
index ecb602af2..1bec5b2ff 100644
--- a/pkg/detectors/openvpn/openvpn.go
+++ b/pkg/detectors/openvpn/openvpn.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/openweather/openweather.go b/pkg/detectors/openweather/openweather.go
index 172e0eac0..34d82de4c 100644
--- a/pkg/detectors/openweather/openweather.go
+++ b/pkg/detectors/openweather/openweather.go
@@ -2,8 +2,8 @@ package openweather
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/opsgenie/opsgenie.go b/pkg/detectors/opsgenie/opsgenie.go
index 2911a5357..527d15335 100644
--- a/pkg/detectors/opsgenie/opsgenie.go
+++ b/pkg/detectors/opsgenie/opsgenie.go
@@ -3,8 +3,8 @@ package opsgenie
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/optimizely/optimizely.go b/pkg/detectors/optimizely/optimizely.go
index f5abf131b..7601db444 100644
--- a/pkg/detectors/optimizely/optimizely.go
+++ b/pkg/detectors/optimizely/optimizely.go
@@ -3,8 +3,8 @@ package optimizely
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/overloop/overloop.go b/pkg/detectors/overloop/overloop.go
index e7b82a2c6..fcb583dca 100644
--- a/pkg/detectors/overloop/overloop.go
+++ b/pkg/detectors/overloop/overloop.go
@@ -3,8 +3,8 @@ package overloop
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/owlbot/owlbot.go b/pkg/detectors/owlbot/owlbot.go
index d6cad3e84..abba80bba 100644
--- a/pkg/detectors/owlbot/owlbot.go
+++ b/pkg/detectors/owlbot/owlbot.go
@@ -3,8 +3,8 @@ package owlbot
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/packagecloud/packagecloud.go b/pkg/detectors/packagecloud/packagecloud.go
index d5f1b496a..a03e27ccf 100644
--- a/pkg/detectors/packagecloud/packagecloud.go
+++ b/pkg/detectors/packagecloud/packagecloud.go
@@ -2,8 +2,8 @@ package packagecloud
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go b/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go
index 2b5c2b709..7b0c7b5ce 100644
--- a/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go
+++ b/pkg/detectors/pagerdutyapikey/pagerdutyapikey.go
@@ -3,8 +3,8 @@ package pagerdutyapikey
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/pandadoc/pandadoc.go b/pkg/detectors/pandadoc/pandadoc.go
index 06ca1c7f9..ef8b1ff21 100644
--- a/pkg/detectors/pandadoc/pandadoc.go
+++ b/pkg/detectors/pandadoc/pandadoc.go
@@ -3,8 +3,8 @@ package pandadoc
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/pandascore/pandascore.go b/pkg/detectors/pandascore/pandascore.go
index d9eec6a7a..03e36f7cd 100644
--- a/pkg/detectors/pandascore/pandascore.go
+++ b/pkg/detectors/pandascore/pandascore.go
@@ -3,8 +3,8 @@ package pandascore
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/paperform/paperform.go b/pkg/detectors/paperform/paperform.go
index 2bf4fc5da..558d14459 100644
--- a/pkg/detectors/paperform/paperform.go
+++ b/pkg/detectors/paperform/paperform.go
@@ -3,8 +3,8 @@ package paperform
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/paralleldots/paralleldots.go b/pkg/detectors/paralleldots/paralleldots.go
index 74e79626b..c0e5cd17d 100644
--- a/pkg/detectors/paralleldots/paralleldots.go
+++ b/pkg/detectors/paralleldots/paralleldots.go
@@ -3,10 +3,10 @@ package paralleldots
import (
"bytes"
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"mime/multipart"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/parsehub/parsehub.go b/pkg/detectors/parsehub/parsehub.go
index e82ec148f..886497fd7 100644
--- a/pkg/detectors/parsehub/parsehub.go
+++ b/pkg/detectors/parsehub/parsehub.go
@@ -3,8 +3,8 @@ package parsehub
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/parsers/parsers.go b/pkg/detectors/parsers/parsers.go
index 9d890a8be..2885610e6 100644
--- a/pkg/detectors/parsers/parsers.go
+++ b/pkg/detectors/parsers/parsers.go
@@ -2,8 +2,8 @@ package parsers
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/parseur/parseur.go b/pkg/detectors/parseur/parseur.go
index 5f389edae..206cc5617 100644
--- a/pkg/detectors/parseur/parseur.go
+++ b/pkg/detectors/parseur/parseur.go
@@ -3,8 +3,8 @@ package parseur
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/partnerstack/partnerstack.go b/pkg/detectors/partnerstack/partnerstack.go
index ba84258a9..6d15c8850 100644
--- a/pkg/detectors/partnerstack/partnerstack.go
+++ b/pkg/detectors/partnerstack/partnerstack.go
@@ -3,8 +3,8 @@ package partnerstack
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/pastebin/pastebin.go b/pkg/detectors/pastebin/pastebin.go
index 2911c8719..70723d807 100644
--- a/pkg/detectors/pastebin/pastebin.go
+++ b/pkg/detectors/pastebin/pastebin.go
@@ -3,10 +3,10 @@ package pastebin
import (
"bytes"
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"mime/multipart"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/paydirtapp/paydirtapp.go b/pkg/detectors/paydirtapp/paydirtapp.go
index 361054591..ade5e315a 100644
--- a/pkg/detectors/paydirtapp/paydirtapp.go
+++ b/pkg/detectors/paydirtapp/paydirtapp.go
@@ -2,8 +2,8 @@ package paydirtapp
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/paymoapp/paymoapp.go b/pkg/detectors/paymoapp/paymoapp.go
index 28ba45d9e..b59397ae9 100644
--- a/pkg/detectors/paymoapp/paymoapp.go
+++ b/pkg/detectors/paymoapp/paymoapp.go
@@ -3,8 +3,8 @@ package paymoapp
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/paymongo/paymongo.go b/pkg/detectors/paymongo/paymongo.go
index 5d5d4fd12..f3c54f806 100644
--- a/pkg/detectors/paymongo/paymongo.go
+++ b/pkg/detectors/paymongo/paymongo.go
@@ -2,8 +2,8 @@ package paymongo
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/paypaloauth/paypaloauth.go b/pkg/detectors/paypaloauth/paypaloauth.go
index 774d4fba0..1a9c58bf5 100644
--- a/pkg/detectors/paypaloauth/paypaloauth.go
+++ b/pkg/detectors/paypaloauth/paypaloauth.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/paystack/paystack.go b/pkg/detectors/paystack/paystack.go
index 0f338b4bd..c470093a9 100644
--- a/pkg/detectors/paystack/paystack.go
+++ b/pkg/detectors/paystack/paystack.go
@@ -3,8 +3,8 @@ package paystack
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/pdflayer/pdflayer.go b/pkg/detectors/pdflayer/pdflayer.go
index e82fc0c35..3caf35c36 100644
--- a/pkg/detectors/pdflayer/pdflayer.go
+++ b/pkg/detectors/pdflayer/pdflayer.go
@@ -3,9 +3,9 @@ package pdflayer
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/pdfshift/pdfshift.go b/pkg/detectors/pdfshift/pdfshift.go
index 902a36b00..218c5d764 100644
--- a/pkg/detectors/pdfshift/pdfshift.go
+++ b/pkg/detectors/pdfshift/pdfshift.go
@@ -2,8 +2,8 @@ package pdfshift
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/peopledatalabs/peopledatalabs.go b/pkg/detectors/peopledatalabs/peopledatalabs.go
index b5153dc0c..6b8bf1a6f 100644
--- a/pkg/detectors/peopledatalabs/peopledatalabs.go
+++ b/pkg/detectors/peopledatalabs/peopledatalabs.go
@@ -2,8 +2,8 @@ package peopledatalabs
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/pepipost/pepipost.go b/pkg/detectors/pepipost/pepipost.go
index b7b7983fb..3ecc2caa0 100644
--- a/pkg/detectors/pepipost/pepipost.go
+++ b/pkg/detectors/pepipost/pepipost.go
@@ -2,8 +2,8 @@ package pepipost
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/percy/percy.go b/pkg/detectors/percy/percy.go
index 748f31c65..5c5c26a5d 100644
--- a/pkg/detectors/percy/percy.go
+++ b/pkg/detectors/percy/percy.go
@@ -3,8 +3,8 @@ package percy
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/pinata/pinata.go b/pkg/detectors/pinata/pinata.go
index de457d452..f67c4924c 100644
--- a/pkg/detectors/pinata/pinata.go
+++ b/pkg/detectors/pinata/pinata.go
@@ -2,8 +2,8 @@ package pinata
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/pipedream/pipedream.go b/pkg/detectors/pipedream/pipedream.go
index 19a469fef..f299366d0 100644
--- a/pkg/detectors/pipedream/pipedream.go
+++ b/pkg/detectors/pipedream/pipedream.go
@@ -3,8 +3,8 @@ package pipedream
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/pipedrive/pipedrive.go b/pkg/detectors/pipedrive/pipedrive.go
index 878f7791c..d78f66f4f 100644
--- a/pkg/detectors/pipedrive/pipedrive.go
+++ b/pkg/detectors/pipedrive/pipedrive.go
@@ -3,8 +3,8 @@ package pipedrive
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/pivotaltracker/pivotaltracker.go b/pkg/detectors/pivotaltracker/pivotaltracker.go
index 970e9d04f..efe177d66 100644
--- a/pkg/detectors/pivotaltracker/pivotaltracker.go
+++ b/pkg/detectors/pivotaltracker/pivotaltracker.go
@@ -2,8 +2,8 @@ package pivotaltracker
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/pixabay/pixabay.go b/pkg/detectors/pixabay/pixabay.go
index 297cbde81..df7c38a59 100644
--- a/pkg/detectors/pixabay/pixabay.go
+++ b/pkg/detectors/pixabay/pixabay.go
@@ -3,8 +3,8 @@ package pixabay
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/plaidkey/plaidkey.go b/pkg/detectors/plaidkey/plaidkey.go
index e969b7992..1158145fc 100644
--- a/pkg/detectors/plaidkey/plaidkey.go
+++ b/pkg/detectors/plaidkey/plaidkey.go
@@ -3,8 +3,8 @@ package plaidkey
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/planetscale/planetscale.go b/pkg/detectors/planetscale/planetscale.go
index 9de06a114..0fa0184a4 100644
--- a/pkg/detectors/planetscale/planetscale.go
+++ b/pkg/detectors/planetscale/planetscale.go
@@ -3,8 +3,8 @@ package planetscale
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/planetscaledb/planetscaledb.go b/pkg/detectors/planetscaledb/planetscaledb.go
index 57b86828a..648ab9f4f 100644
--- a/pkg/detectors/planetscaledb/planetscaledb.go
+++ b/pkg/detectors/planetscaledb/planetscaledb.go
@@ -3,7 +3,7 @@ package planetscaledb
import (
"context"
"database/sql"
- "regexp"
+ regexp "github.com/wasilibs/go-re2"
"strings"
"github.com/go-sql-driver/mysql"
diff --git a/pkg/detectors/planviewleankit/planviewleankit.go b/pkg/detectors/planviewleankit/planviewleankit.go
index 4901a342a..82b52b871 100644
--- a/pkg/detectors/planviewleankit/planviewleankit.go
+++ b/pkg/detectors/planviewleankit/planviewleankit.go
@@ -3,8 +3,8 @@ package planviewleankit
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/planyo/planyo.go b/pkg/detectors/planyo/planyo.go
index 6eba2c098..447a0c132 100644
--- a/pkg/detectors/planyo/planyo.go
+++ b/pkg/detectors/planyo/planyo.go
@@ -3,9 +3,9 @@ package planyo
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/plivo/plivo.go b/pkg/detectors/plivo/plivo.go
index d04a996a7..827a5129e 100644
--- a/pkg/detectors/plivo/plivo.go
+++ b/pkg/detectors/plivo/plivo.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/podio/podio.go b/pkg/detectors/podio/podio.go
index d66baa8ec..2225f47ac 100644
--- a/pkg/detectors/podio/podio.go
+++ b/pkg/detectors/podio/podio.go
@@ -3,8 +3,8 @@ package podio
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/pollsapi/pollsapi.go b/pkg/detectors/pollsapi/pollsapi.go
index f2d28e616..3152f3332 100644
--- a/pkg/detectors/pollsapi/pollsapi.go
+++ b/pkg/detectors/pollsapi/pollsapi.go
@@ -2,8 +2,8 @@ package pollsapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/poloniex/poloniex.go b/pkg/detectors/poloniex/poloniex.go
index bf4358e11..f79d706e3 100644
--- a/pkg/detectors/poloniex/poloniex.go
+++ b/pkg/detectors/poloniex/poloniex.go
@@ -5,9 +5,9 @@ import (
"crypto/hmac"
"crypto/sha512"
"encoding/hex"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
"net/url"
- "regexp"
"strconv"
"strings"
"time"
diff --git a/pkg/detectors/polygon/polygon.go b/pkg/detectors/polygon/polygon.go
index 5f439f370..670a9440c 100644
--- a/pkg/detectors/polygon/polygon.go
+++ b/pkg/detectors/polygon/polygon.go
@@ -2,8 +2,8 @@ package polygon
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/portainer/portainer.go b/pkg/detectors/portainer/portainer.go
index ec769fe14..6cf41f46a 100644
--- a/pkg/detectors/portainer/portainer.go
+++ b/pkg/detectors/portainer/portainer.go
@@ -3,8 +3,8 @@ package portainer
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/portainertoken/portainertoken.go b/pkg/detectors/portainertoken/portainertoken.go
index c2f8e7402..74edd57e9 100644
--- a/pkg/detectors/portainertoken/portainertoken.go
+++ b/pkg/detectors/portainertoken/portainertoken.go
@@ -3,8 +3,8 @@ package portainertoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/positionstack/positionstack.go b/pkg/detectors/positionstack/positionstack.go
index 628a86a65..4e7c79425 100644
--- a/pkg/detectors/positionstack/positionstack.go
+++ b/pkg/detectors/positionstack/positionstack.go
@@ -3,8 +3,8 @@ package positionstack
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/postageapp/postageapp.go b/pkg/detectors/postageapp/postageapp.go
index f47eb2bf1..af37f42d0 100644
--- a/pkg/detectors/postageapp/postageapp.go
+++ b/pkg/detectors/postageapp/postageapp.go
@@ -2,8 +2,8 @@ package postageapp
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/postbacks/postbacks.go b/pkg/detectors/postbacks/postbacks.go
index e25a53c80..dff601eb4 100644
--- a/pkg/detectors/postbacks/postbacks.go
+++ b/pkg/detectors/postbacks/postbacks.go
@@ -2,8 +2,8 @@ package postbacks
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/postgres/postgres.go b/pkg/detectors/postgres/postgres.go
index 183b37d4c..235e2e4dd 100644
--- a/pkg/detectors/postgres/postgres.go
+++ b/pkg/detectors/postgres/postgres.go
@@ -6,12 +6,13 @@ import (
"errors"
"fmt"
"net"
- "regexp"
"strconv"
"strings"
"time"
"github.com/lib/pq"
+ regexp "github.com/wasilibs/go-re2"
+
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
"github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"
)
diff --git a/pkg/detectors/posthog/posthog.go b/pkg/detectors/posthog/posthog.go
index 853321d6a..0ca7970d0 100644
--- a/pkg/detectors/posthog/posthog.go
+++ b/pkg/detectors/posthog/posthog.go
@@ -2,8 +2,8 @@ package posthog
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
@@ -62,7 +62,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
if res.StatusCode >= 200 && res.StatusCode < 300 {
s1.Verified = true
} else if res.StatusCode == 401 {
- //Try EU Endpoint only if other one fails.
+ // Try EU Endpoint only if other one fails.
res, err := client.Do(reqEU)
if err == nil {
defer res.Body.Close()
diff --git a/pkg/detectors/postman/postman.go b/pkg/detectors/postman/postman.go
index 79276ff9e..068458259 100644
--- a/pkg/detectors/postman/postman.go
+++ b/pkg/detectors/postman/postman.go
@@ -3,8 +3,8 @@ package postman
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/postmark/postmark.go b/pkg/detectors/postmark/postmark.go
index 16b64224f..82a0c0c5e 100644
--- a/pkg/detectors/postmark/postmark.go
+++ b/pkg/detectors/postmark/postmark.go
@@ -2,8 +2,8 @@ package postmark
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/powrbot/powrbot.go b/pkg/detectors/powrbot/powrbot.go
index f4f90ec1b..fcc713cab 100644
--- a/pkg/detectors/powrbot/powrbot.go
+++ b/pkg/detectors/powrbot/powrbot.go
@@ -3,8 +3,8 @@ package powrbot
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/prefect/prefect.go b/pkg/detectors/prefect/prefect.go
index cd7eaad91..6e8f099b6 100644
--- a/pkg/detectors/prefect/prefect.go
+++ b/pkg/detectors/prefect/prefect.go
@@ -3,8 +3,8 @@ package prefect
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/privacy/privacy.go b/pkg/detectors/privacy/privacy.go
index 38df12247..0818e9544 100644
--- a/pkg/detectors/privacy/privacy.go
+++ b/pkg/detectors/privacy/privacy.go
@@ -3,8 +3,8 @@ package privacy
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/privatekey/privatekey.go b/pkg/detectors/privatekey/privatekey.go
index cf7b3b213..dce627cdc 100644
--- a/pkg/detectors/privatekey/privatekey.go
+++ b/pkg/detectors/privatekey/privatekey.go
@@ -4,8 +4,8 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"sync"
"time"
diff --git a/pkg/detectors/prodpad/prodpad.go b/pkg/detectors/prodpad/prodpad.go
index eaa10d1e4..72768713b 100644
--- a/pkg/detectors/prodpad/prodpad.go
+++ b/pkg/detectors/prodpad/prodpad.go
@@ -3,8 +3,8 @@ package prodpad
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/prospectcrm/prospectcrm.go b/pkg/detectors/prospectcrm/prospectcrm.go
index 46245f5e5..fd86a61f3 100644
--- a/pkg/detectors/prospectcrm/prospectcrm.go
+++ b/pkg/detectors/prospectcrm/prospectcrm.go
@@ -3,8 +3,8 @@ package prospectcrm
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/protocolsio/protocolsio.go b/pkg/detectors/protocolsio/protocolsio.go
index 60ebe2857..590770e96 100644
--- a/pkg/detectors/protocolsio/protocolsio.go
+++ b/pkg/detectors/protocolsio/protocolsio.go
@@ -3,8 +3,8 @@ package protocolsio
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/proxycrawl/proxycrawl.go b/pkg/detectors/proxycrawl/proxycrawl.go
index 9cd7b522c..30ab7d8ac 100644
--- a/pkg/detectors/proxycrawl/proxycrawl.go
+++ b/pkg/detectors/proxycrawl/proxycrawl.go
@@ -3,8 +3,8 @@ package proxycrawl
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go b/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go
index 99a16acd0..a672dc132 100644
--- a/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go
+++ b/pkg/detectors/pubnubpublishkey/pubnubpublishkey.go
@@ -3,8 +3,8 @@ package pubnubpublishkey
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go b/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go
index 2229bb524..72f80ff73 100644
--- a/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go
+++ b/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey.go
@@ -2,8 +2,8 @@ package pubnubsubscriptionkey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/pulumi/pulumi.go b/pkg/detectors/pulumi/pulumi.go
index ce098fb2b..ebaa574fc 100644
--- a/pkg/detectors/pulumi/pulumi.go
+++ b/pkg/detectors/pulumi/pulumi.go
@@ -3,8 +3,8 @@ package pulumi
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/purestake/purestake.go b/pkg/detectors/purestake/purestake.go
index c38db8f30..5e35637a1 100644
--- a/pkg/detectors/purestake/purestake.go
+++ b/pkg/detectors/purestake/purestake.go
@@ -2,8 +2,8 @@ package purestake
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/pushbulletapikey/pushbulletapikey.go b/pkg/detectors/pushbulletapikey/pushbulletapikey.go
index e5e30f870..6aec6262f 100644
--- a/pkg/detectors/pushbulletapikey/pushbulletapikey.go
+++ b/pkg/detectors/pushbulletapikey/pushbulletapikey.go
@@ -2,8 +2,8 @@ package pushbulletapikey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/pusherchannelkey/pusherchannelkey.go b/pkg/detectors/pusherchannelkey/pusherchannelkey.go
index e98764af3..b97506c99 100644
--- a/pkg/detectors/pusherchannelkey/pusherchannelkey.go
+++ b/pkg/detectors/pusherchannelkey/pusherchannelkey.go
@@ -6,9 +6,9 @@ import (
"crypto/md5"
"crypto/sha256"
"encoding/hex"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
"net/url"
- "regexp"
"strconv"
"strings"
"time"
diff --git a/pkg/detectors/qase/qase.go b/pkg/detectors/qase/qase.go
index 23a2b3450..64d17dfbb 100644
--- a/pkg/detectors/qase/qase.go
+++ b/pkg/detectors/qase/qase.go
@@ -2,8 +2,8 @@ package qase
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/qualaroo/qualaroo.go b/pkg/detectors/qualaroo/qualaroo.go
index e67a26246..c92d6bb40 100644
--- a/pkg/detectors/qualaroo/qualaroo.go
+++ b/pkg/detectors/qualaroo/qualaroo.go
@@ -3,8 +3,8 @@ package qualaroo
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/qubole/qubole.go b/pkg/detectors/qubole/qubole.go
index 855f091ff..6725cd6de 100644
--- a/pkg/detectors/qubole/qubole.go
+++ b/pkg/detectors/qubole/qubole.go
@@ -2,8 +2,8 @@ package qubole
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/rabbitmq/rabbitmq.go b/pkg/detectors/rabbitmq/rabbitmq.go
index 436e14e05..9e6bfb032 100644
--- a/pkg/detectors/rabbitmq/rabbitmq.go
+++ b/pkg/detectors/rabbitmq/rabbitmq.go
@@ -2,8 +2,8 @@ package rabbitmq
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/url"
- "regexp"
"strings"
amqp "github.com/rabbitmq/amqp091-go"
diff --git a/pkg/detectors/ramp/ramp.go b/pkg/detectors/ramp/ramp.go
index d41a869aa..2437abb23 100644
--- a/pkg/detectors/ramp/ramp.go
+++ b/pkg/detectors/ramp/ramp.go
@@ -3,9 +3,9 @@ package ramp
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
"net/url"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/rapidapi/rapidapi.go b/pkg/detectors/rapidapi/rapidapi.go
index ff3102f31..19a0e8f96 100644
--- a/pkg/detectors/rapidapi/rapidapi.go
+++ b/pkg/detectors/rapidapi/rapidapi.go
@@ -2,8 +2,8 @@ package rapidapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/raven/raven.go b/pkg/detectors/raven/raven.go
index e7845e93b..3b6fadebf 100644
--- a/pkg/detectors/raven/raven.go
+++ b/pkg/detectors/raven/raven.go
@@ -4,9 +4,9 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/rawg/rawg.go b/pkg/detectors/rawg/rawg.go
index 526a9431f..5311b4c5c 100644
--- a/pkg/detectors/rawg/rawg.go
+++ b/pkg/detectors/rawg/rawg.go
@@ -2,8 +2,8 @@ package rawg
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/razorpay/razorpay.go b/pkg/detectors/razorpay/razorpay.go
index 4071ddc73..441609f41 100644
--- a/pkg/detectors/razorpay/razorpay.go
+++ b/pkg/detectors/razorpay/razorpay.go
@@ -3,9 +3,9 @@ package razorpay
import (
"context"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/reachmail/reachmail.go b/pkg/detectors/reachmail/reachmail.go
index 204a11443..ebf2c3c07 100644
--- a/pkg/detectors/reachmail/reachmail.go
+++ b/pkg/detectors/reachmail/reachmail.go
@@ -3,8 +3,8 @@ package reachmail
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/readme/readme.go b/pkg/detectors/readme/readme.go
index 80ff3c94d..4d40c89fd 100644
--- a/pkg/detectors/readme/readme.go
+++ b/pkg/detectors/readme/readme.go
@@ -2,8 +2,8 @@ package readme
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/reallysimplesystems/reallysimplesystems.go b/pkg/detectors/reallysimplesystems/reallysimplesystems.go
index dc01ec28d..ab66106ce 100644
--- a/pkg/detectors/reallysimplesystems/reallysimplesystems.go
+++ b/pkg/detectors/reallysimplesystems/reallysimplesystems.go
@@ -4,9 +4,9 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/rebrandly/rebrandly.go b/pkg/detectors/rebrandly/rebrandly.go
index 8c9543109..61a4232e4 100644
--- a/pkg/detectors/rebrandly/rebrandly.go
+++ b/pkg/detectors/rebrandly/rebrandly.go
@@ -2,8 +2,8 @@ package rebrandly
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/rechargepayments/rechargepayments.go b/pkg/detectors/rechargepayments/rechargepayments.go
index 773a84f9f..c55351096 100644
--- a/pkg/detectors/rechargepayments/rechargepayments.go
+++ b/pkg/detectors/rechargepayments/rechargepayments.go
@@ -2,8 +2,8 @@ package rechargepayments
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/redis/redis.go b/pkg/detectors/redis/redis.go
index 5aa4efdd8..810da6849 100644
--- a/pkg/detectors/redis/redis.go
+++ b/pkg/detectors/redis/redis.go
@@ -3,8 +3,8 @@ package redis
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/url"
- "regexp"
"strings"
"github.com/go-redis/redis"
diff --git a/pkg/detectors/refiner/refiner.go b/pkg/detectors/refiner/refiner.go
index e3da1e3c6..6736f689a 100644
--- a/pkg/detectors/refiner/refiner.go
+++ b/pkg/detectors/refiner/refiner.go
@@ -3,8 +3,8 @@ package refiner
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/rentman/rentman.go b/pkg/detectors/rentman/rentman.go
index d952b74d5..adabbc285 100644
--- a/pkg/detectors/rentman/rentman.go
+++ b/pkg/detectors/rentman/rentman.go
@@ -3,8 +3,8 @@ package rentman
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/repairshopr/repairshopr.go b/pkg/detectors/repairshopr/repairshopr.go
index e5ef9695b..34e3516ac 100644
--- a/pkg/detectors/repairshopr/repairshopr.go
+++ b/pkg/detectors/repairshopr/repairshopr.go
@@ -3,8 +3,8 @@ package repairshopr
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/replicate/replicate.go b/pkg/detectors/replicate/replicate.go
index e8bf5c40d..893b56867 100644
--- a/pkg/detectors/replicate/replicate.go
+++ b/pkg/detectors/replicate/replicate.go
@@ -3,8 +3,8 @@ package replicate
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/replyio/replyio.go b/pkg/detectors/replyio/replyio.go
index 241405348..9583529fe 100644
--- a/pkg/detectors/replyio/replyio.go
+++ b/pkg/detectors/replyio/replyio.go
@@ -3,8 +3,8 @@ package replyio
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/requestfinance/requestfinance.go b/pkg/detectors/requestfinance/requestfinance.go
index 35d8710d7..462112c29 100644
--- a/pkg/detectors/requestfinance/requestfinance.go
+++ b/pkg/detectors/requestfinance/requestfinance.go
@@ -3,8 +3,8 @@ package requestfinance
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/restpack/restpack.go b/pkg/detectors/restpack/restpack.go
index ddc09c3f6..e53bb862c 100644
--- a/pkg/detectors/restpack/restpack.go
+++ b/pkg/detectors/restpack/restpack.go
@@ -3,8 +3,8 @@ package restpack
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go b/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go
index d39cbc068..00683d584 100644
--- a/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go
+++ b/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi.go
@@ -2,8 +2,8 @@ package restpackhtmltopdfapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go b/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go
index ed052c5cd..63d0eaa55 100644
--- a/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go
+++ b/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi.go
@@ -2,8 +2,8 @@ package restpackscreenshotapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/rev/rev.go b/pkg/detectors/rev/rev.go
index af8de9321..708c4ebc2 100644
--- a/pkg/detectors/rev/rev.go
+++ b/pkg/detectors/rev/rev.go
@@ -3,8 +3,8 @@ package rev
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/revampcrm/revampcrm.go b/pkg/detectors/revampcrm/revampcrm.go
index 8c8d3ae05..fc5ee627d 100644
--- a/pkg/detectors/revampcrm/revampcrm.go
+++ b/pkg/detectors/revampcrm/revampcrm.go
@@ -2,8 +2,8 @@ package revampcrm
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ringcentral/ringcentral.go b/pkg/detectors/ringcentral/ringcentral.go
index a57daf212..97522725b 100644
--- a/pkg/detectors/ringcentral/ringcentral.go
+++ b/pkg/detectors/ringcentral/ringcentral.go
@@ -3,8 +3,8 @@ package ringcentral
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ritekit/ritekit.go b/pkg/detectors/ritekit/ritekit.go
index 7aaab9cc1..0bd17af69 100644
--- a/pkg/detectors/ritekit/ritekit.go
+++ b/pkg/detectors/ritekit/ritekit.go
@@ -3,8 +3,8 @@ package ritekit
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/roaring/roaring.go b/pkg/detectors/roaring/roaring.go
index dee74da36..ca25056f3 100644
--- a/pkg/detectors/roaring/roaring.go
+++ b/pkg/detectors/roaring/roaring.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/rocketreach/rocketreach.go b/pkg/detectors/rocketreach/rocketreach.go
index c44411159..19cff56c5 100644
--- a/pkg/detectors/rocketreach/rocketreach.go
+++ b/pkg/detectors/rocketreach/rocketreach.go
@@ -2,8 +2,8 @@ package rocketreach
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/rockset/rockset.go b/pkg/detectors/rockset/rockset.go
index f79d6e005..459b19a0c 100644
--- a/pkg/detectors/rockset/rockset.go
+++ b/pkg/detectors/rockset/rockset.go
@@ -3,8 +3,8 @@ package rockset
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/roninapp/roninapp.go b/pkg/detectors/roninapp/roninapp.go
index 8e22e80de..44c30e05b 100644
--- a/pkg/detectors/roninapp/roninapp.go
+++ b/pkg/detectors/roninapp/roninapp.go
@@ -3,7 +3,7 @@ package roninapp
import (
"context"
"fmt"
- "regexp"
+ regexp "github.com/wasilibs/go-re2"
"strings"
b64 "encoding/base64"
diff --git a/pkg/detectors/route4me/route4me.go b/pkg/detectors/route4me/route4me.go
index 0428e4504..3668f7d48 100644
--- a/pkg/detectors/route4me/route4me.go
+++ b/pkg/detectors/route4me/route4me.go
@@ -2,8 +2,8 @@ package route4me
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/rownd/rownd.go b/pkg/detectors/rownd/rownd.go
index 1d2d86434..ec71e141d 100644
--- a/pkg/detectors/rownd/rownd.go
+++ b/pkg/detectors/rownd/rownd.go
@@ -2,8 +2,8 @@ package rownd
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/rubygems/rubygems.go b/pkg/detectors/rubygems/rubygems.go
index 0f3e9d0f9..56f8702a0 100644
--- a/pkg/detectors/rubygems/rubygems.go
+++ b/pkg/detectors/rubygems/rubygems.go
@@ -2,8 +2,8 @@ package rubygems
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/runrunit/runrunit.go b/pkg/detectors/runrunit/runrunit.go
index 5ac22e2df..5587d2fd7 100644
--- a/pkg/detectors/runrunit/runrunit.go
+++ b/pkg/detectors/runrunit/runrunit.go
@@ -2,8 +2,8 @@ package runrunit
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/salesblink/salesblink.go b/pkg/detectors/salesblink/salesblink.go
index d2b4e880b..86786c7f9 100644
--- a/pkg/detectors/salesblink/salesblink.go
+++ b/pkg/detectors/salesblink/salesblink.go
@@ -2,8 +2,8 @@ package salesblink
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/salescookie/salescookie.go b/pkg/detectors/salescookie/salescookie.go
index 43073adef..aadf992ec 100644
--- a/pkg/detectors/salescookie/salescookie.go
+++ b/pkg/detectors/salescookie/salescookie.go
@@ -2,8 +2,8 @@ package salescookie
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/salesflare/salesflare.go b/pkg/detectors/salesflare/salesflare.go
index faa1c1752..6c3f9bbd2 100644
--- a/pkg/detectors/salesflare/salesflare.go
+++ b/pkg/detectors/salesflare/salesflare.go
@@ -3,8 +3,8 @@ package salesflare
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/salesforce/salesforce.go b/pkg/detectors/salesforce/salesforce.go
index f886e1334..de2bb365b 100644
--- a/pkg/detectors/salesforce/salesforce.go
+++ b/pkg/detectors/salesforce/salesforce.go
@@ -3,8 +3,8 @@ package salesforce
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/salesmate/salesmate.go b/pkg/detectors/salesmate/salesmate.go
index f68336079..1c5a17e8a 100644
--- a/pkg/detectors/salesmate/salesmate.go
+++ b/pkg/detectors/salesmate/salesmate.go
@@ -3,8 +3,8 @@ package salesmate
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go b/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go
index 88c85b575..c9a7ae4a7 100644
--- a/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go
+++ b/pkg/detectors/satismeterprojectkey/satismeterprojectkey.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/satismeterwritekey/satismeterwritekey.go b/pkg/detectors/satismeterwritekey/satismeterwritekey.go
index 143f5645d..0435ee7e6 100644
--- a/pkg/detectors/satismeterwritekey/satismeterwritekey.go
+++ b/pkg/detectors/satismeterwritekey/satismeterwritekey.go
@@ -2,8 +2,8 @@ package satismeterwritekey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/saucelabs/saucelabs.go b/pkg/detectors/saucelabs/saucelabs.go
index 24ad11649..40114bfcf 100644
--- a/pkg/detectors/saucelabs/saucelabs.go
+++ b/pkg/detectors/saucelabs/saucelabs.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/scalewaykey/scalewaykey.go b/pkg/detectors/scalewaykey/scalewaykey.go
index c82b4a0d0..6946c690c 100644
--- a/pkg/detectors/scalewaykey/scalewaykey.go
+++ b/pkg/detectors/scalewaykey/scalewaykey.go
@@ -2,8 +2,8 @@ package scalewaykey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/scalr/scalr.go b/pkg/detectors/scalr/scalr.go
index 77b750a3f..76e53cd9b 100644
--- a/pkg/detectors/scalr/scalr.go
+++ b/pkg/detectors/scalr/scalr.go
@@ -3,8 +3,8 @@ package scalr
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/scrapeowl/scrapeowl.go b/pkg/detectors/scrapeowl/scrapeowl.go
index 70707e81c..ad9d0dfe2 100644
--- a/pkg/detectors/scrapeowl/scrapeowl.go
+++ b/pkg/detectors/scrapeowl/scrapeowl.go
@@ -2,8 +2,8 @@ package scrapeowl
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/scraperapi/scraperapi.go b/pkg/detectors/scraperapi/scraperapi.go
index d6283a64e..75add0eae 100644
--- a/pkg/detectors/scraperapi/scraperapi.go
+++ b/pkg/detectors/scraperapi/scraperapi.go
@@ -3,8 +3,8 @@ package scraperapi
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/scraperbox/scraperbox.go b/pkg/detectors/scraperbox/scraperbox.go
index 89fd40397..0f3b9de81 100644
--- a/pkg/detectors/scraperbox/scraperbox.go
+++ b/pkg/detectors/scraperbox/scraperbox.go
@@ -3,8 +3,8 @@ package scraperbox
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/scrapestack/scrapestack.go b/pkg/detectors/scrapestack/scrapestack.go
index 119d915ed..2407d8806 100644
--- a/pkg/detectors/scrapestack/scrapestack.go
+++ b/pkg/detectors/scrapestack/scrapestack.go
@@ -3,9 +3,9 @@ package scrapestack
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/scrapfly/scrapfly.go b/pkg/detectors/scrapfly/scrapfly.go
index fb6db5edc..cd0059b0f 100644
--- a/pkg/detectors/scrapfly/scrapfly.go
+++ b/pkg/detectors/scrapfly/scrapfly.go
@@ -3,8 +3,8 @@ package scrapfly
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/scrapingant/scrapingant.go b/pkg/detectors/scrapingant/scrapingant.go
index ab5c4b6c1..f838affe5 100644
--- a/pkg/detectors/scrapingant/scrapingant.go
+++ b/pkg/detectors/scrapingant/scrapingant.go
@@ -2,8 +2,8 @@ package scrapingant
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/scrapingbee/scrapingbee.go b/pkg/detectors/scrapingbee/scrapingbee.go
index 628c1d691..1aa17c65a 100644
--- a/pkg/detectors/scrapingbee/scrapingbee.go
+++ b/pkg/detectors/scrapingbee/scrapingbee.go
@@ -2,8 +2,8 @@ package scrapingbee
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/screenshotapi/screenshotapi.go b/pkg/detectors/screenshotapi/screenshotapi.go
index 6f2f91b58..b330ea55e 100644
--- a/pkg/detectors/screenshotapi/screenshotapi.go
+++ b/pkg/detectors/screenshotapi/screenshotapi.go
@@ -3,8 +3,8 @@ package screenshotapi
import (
"context"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/screenshotlayer/screenshotlayer.go b/pkg/detectors/screenshotlayer/screenshotlayer.go
index e06f7291f..e04d645d6 100644
--- a/pkg/detectors/screenshotlayer/screenshotlayer.go
+++ b/pkg/detectors/screenshotlayer/screenshotlayer.go
@@ -3,9 +3,9 @@ package screenshotlayer
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/scrutinizerci/scrutinizerci.go b/pkg/detectors/scrutinizerci/scrutinizerci.go
index 9399992cf..7f832df3c 100644
--- a/pkg/detectors/scrutinizerci/scrutinizerci.go
+++ b/pkg/detectors/scrutinizerci/scrutinizerci.go
@@ -2,8 +2,8 @@ package scrutinizerci
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/securitytrails/securitytrails.go b/pkg/detectors/securitytrails/securitytrails.go
index c0b79e0bf..401a14391 100644
--- a/pkg/detectors/securitytrails/securitytrails.go
+++ b/pkg/detectors/securitytrails/securitytrails.go
@@ -2,8 +2,8 @@ package securitytrails
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/segmentapikey/segmentapikey.go b/pkg/detectors/segmentapikey/segmentapikey.go
index d55a0d897..3f0ff5d3d 100644
--- a/pkg/detectors/segmentapikey/segmentapikey.go
+++ b/pkg/detectors/segmentapikey/segmentapikey.go
@@ -3,8 +3,8 @@ package segmentapikey
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/selectpdf/selectpdf.go b/pkg/detectors/selectpdf/selectpdf.go
index 2a80d4c3b..a4b8cc807 100644
--- a/pkg/detectors/selectpdf/selectpdf.go
+++ b/pkg/detectors/selectpdf/selectpdf.go
@@ -3,8 +3,8 @@ package selectpdf
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/semaphore/semaphore.go b/pkg/detectors/semaphore/semaphore.go
index 073abb867..1dbe1d68a 100644
--- a/pkg/detectors/semaphore/semaphore.go
+++ b/pkg/detectors/semaphore/semaphore.go
@@ -3,9 +3,9 @@ package semaphore
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sendbird/sendbird.go b/pkg/detectors/sendbird/sendbird.go
index ee5c253ac..dce9dd082 100644
--- a/pkg/detectors/sendbird/sendbird.go
+++ b/pkg/detectors/sendbird/sendbird.go
@@ -4,8 +4,8 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go b/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go
index aa927cadb..74f846f20 100644
--- a/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go
+++ b/pkg/detectors/sendbirdorganizationapi/sendbirdorganizationapi.go
@@ -3,8 +3,8 @@ package sendbirdorganizationapi
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sendgrid/sendgrid.go b/pkg/detectors/sendgrid/sendgrid.go
index eb6fbc5d1..661e9053f 100644
--- a/pkg/detectors/sendgrid/sendgrid.go
+++ b/pkg/detectors/sendgrid/sendgrid.go
@@ -3,8 +3,8 @@ package sendgrid
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/sendinbluev2/sendinbluev2.go b/pkg/detectors/sendinbluev2/sendinbluev2.go
index 694737438..b7c6aa41d 100644
--- a/pkg/detectors/sendinbluev2/sendinbluev2.go
+++ b/pkg/detectors/sendinbluev2/sendinbluev2.go
@@ -2,8 +2,8 @@ package sendinbluev2
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sentrytoken/sentrytoken.go b/pkg/detectors/sentrytoken/sentrytoken.go
index 97ac3a153..0e32137af 100644
--- a/pkg/detectors/sentrytoken/sentrytoken.go
+++ b/pkg/detectors/sentrytoken/sentrytoken.go
@@ -5,9 +5,9 @@ import (
"encoding/json"
"errors"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/serphouse/serphouse.go b/pkg/detectors/serphouse/serphouse.go
index 09a330a8b..b3fb4ed37 100644
--- a/pkg/detectors/serphouse/serphouse.go
+++ b/pkg/detectors/serphouse/serphouse.go
@@ -3,8 +3,8 @@ package serphouse
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/serpstack/serpstack.go b/pkg/detectors/serpstack/serpstack.go
index 7b643b1aa..b1a048c4d 100644
--- a/pkg/detectors/serpstack/serpstack.go
+++ b/pkg/detectors/serpstack/serpstack.go
@@ -3,9 +3,9 @@ package serpstack
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/sheety/sheety.go b/pkg/detectors/sheety/sheety.go
index c2c12e0e1..bd32c4521 100644
--- a/pkg/detectors/sheety/sheety.go
+++ b/pkg/detectors/sheety/sheety.go
@@ -3,8 +3,8 @@ package sheety
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sherpadesk/sherpadesk.go b/pkg/detectors/sherpadesk/sherpadesk.go
index fa9039a4f..b4d5215cc 100644
--- a/pkg/detectors/sherpadesk/sherpadesk.go
+++ b/pkg/detectors/sherpadesk/sherpadesk.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/shipday/shipday.go b/pkg/detectors/shipday/shipday.go
index 278f87b10..cbdf31374 100644
--- a/pkg/detectors/shipday/shipday.go
+++ b/pkg/detectors/shipday/shipday.go
@@ -3,8 +3,8 @@ package shipday
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/shodankey/shodankey.go b/pkg/detectors/shodankey/shodankey.go
index c6600151c..eefb364c7 100644
--- a/pkg/detectors/shodankey/shodankey.go
+++ b/pkg/detectors/shodankey/shodankey.go
@@ -3,9 +3,9 @@ package shodankey
import (
"context"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/shopify/shopify.go b/pkg/detectors/shopify/shopify.go
index bca4636ce..a86151e15 100644
--- a/pkg/detectors/shopify/shopify.go
+++ b/pkg/detectors/shopify/shopify.go
@@ -3,8 +3,8 @@ package shopify
import (
"context"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/shortcut/shortcut.go b/pkg/detectors/shortcut/shortcut.go
index 4ecd5c184..33ea6e3f9 100644
--- a/pkg/detectors/shortcut/shortcut.go
+++ b/pkg/detectors/shortcut/shortcut.go
@@ -2,8 +2,8 @@ package shortcut
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/shotstack/shotstack.go b/pkg/detectors/shotstack/shotstack.go
index 2cd96dd6e..daf5420ec 100644
--- a/pkg/detectors/shotstack/shotstack.go
+++ b/pkg/detectors/shotstack/shotstack.go
@@ -2,8 +2,8 @@ package shotstack
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/shutterstock/shutterstock.go b/pkg/detectors/shutterstock/shutterstock.go
index d657c209e..e128b8d74 100644
--- a/pkg/detectors/shutterstock/shutterstock.go
+++ b/pkg/detectors/shutterstock/shutterstock.go
@@ -2,8 +2,8 @@ package shutterstock
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/shutterstockoauth/shutterstockoauth.go b/pkg/detectors/shutterstockoauth/shutterstockoauth.go
index 53e0a5fc4..88721a82d 100644
--- a/pkg/detectors/shutterstockoauth/shutterstockoauth.go
+++ b/pkg/detectors/shutterstockoauth/shutterstockoauth.go
@@ -3,8 +3,8 @@ package shutterstockoauth
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/signable/signable.go b/pkg/detectors/signable/signable.go
index cb583c6a4..42f582602 100644
--- a/pkg/detectors/signable/signable.go
+++ b/pkg/detectors/signable/signable.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/signalwire/signalwire.go b/pkg/detectors/signalwire/signalwire.go
index 95e6c756c..4b4d571c9 100644
--- a/pkg/detectors/signalwire/signalwire.go
+++ b/pkg/detectors/signalwire/signalwire.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/signaturit/signaturit.go b/pkg/detectors/signaturit/signaturit.go
index 626139a09..fe47d46f4 100644
--- a/pkg/detectors/signaturit/signaturit.go
+++ b/pkg/detectors/signaturit/signaturit.go
@@ -3,8 +3,8 @@ package signaturit
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/signupgenius/signupgenius.go b/pkg/detectors/signupgenius/signupgenius.go
index ae9b40428..cfd8ee21b 100644
--- a/pkg/detectors/signupgenius/signupgenius.go
+++ b/pkg/detectors/signupgenius/signupgenius.go
@@ -2,8 +2,8 @@ package signupgenius
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sigopt/sigopt.go b/pkg/detectors/sigopt/sigopt.go
index 5fa5cf807..0bcb2a257 100644
--- a/pkg/detectors/sigopt/sigopt.go
+++ b/pkg/detectors/sigopt/sigopt.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/simfin/simfin.go b/pkg/detectors/simfin/simfin.go
index 139b6a595..9a0191444 100644
--- a/pkg/detectors/simfin/simfin.go
+++ b/pkg/detectors/simfin/simfin.go
@@ -3,9 +3,9 @@ package simfin
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/simplesat/simplesat.go b/pkg/detectors/simplesat/simplesat.go
index ec8aa9a25..c032191c1 100644
--- a/pkg/detectors/simplesat/simplesat.go
+++ b/pkg/detectors/simplesat/simplesat.go
@@ -2,8 +2,8 @@ package simplesat
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/simplynoted/simplynoted.go b/pkg/detectors/simplynoted/simplynoted.go
index 8ad3b0bca..6bfef10f9 100644
--- a/pkg/detectors/simplynoted/simplynoted.go
+++ b/pkg/detectors/simplynoted/simplynoted.go
@@ -3,8 +3,8 @@ package simplynoted
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/simvoly/simvoly.go b/pkg/detectors/simvoly/simvoly.go
index 791644448..b9ab8d04c 100644
--- a/pkg/detectors/simvoly/simvoly.go
+++ b/pkg/detectors/simvoly/simvoly.go
@@ -3,8 +3,8 @@ package simvoly
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sinchmessage/sinchmessage.go b/pkg/detectors/sinchmessage/sinchmessage.go
index 82571f21a..4e8f154e1 100644
--- a/pkg/detectors/sinchmessage/sinchmessage.go
+++ b/pkg/detectors/sinchmessage/sinchmessage.go
@@ -3,8 +3,8 @@ package sinchmessage
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sirv/sirv.go b/pkg/detectors/sirv/sirv.go
index f0a8f7812..0615c0bf1 100644
--- a/pkg/detectors/sirv/sirv.go
+++ b/pkg/detectors/sirv/sirv.go
@@ -3,8 +3,8 @@ package sirv
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/siteleaf/siteleaf.go b/pkg/detectors/siteleaf/siteleaf.go
index 6c8cea8df..57a0ee379 100644
--- a/pkg/detectors/siteleaf/siteleaf.go
+++ b/pkg/detectors/siteleaf/siteleaf.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/skrappio/skrappio.go b/pkg/detectors/skrappio/skrappio.go
index 0634170dd..b3d2d172d 100644
--- a/pkg/detectors/skrappio/skrappio.go
+++ b/pkg/detectors/skrappio/skrappio.go
@@ -2,8 +2,8 @@ package skrappio
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/skybiometry/skybiometry.go b/pkg/detectors/skybiometry/skybiometry.go
index ce1d7a11d..18ae10862 100644
--- a/pkg/detectors/skybiometry/skybiometry.go
+++ b/pkg/detectors/skybiometry/skybiometry.go
@@ -2,9 +2,9 @@ package skybiometry
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
"net/url"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/slack/slack.go b/pkg/detectors/slack/slack.go
index 064c1309b..63e44fba3 100644
--- a/pkg/detectors/slack/slack.go
+++ b/pkg/detectors/slack/slack.go
@@ -4,8 +4,8 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
"github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"
diff --git a/pkg/detectors/slackwebhook/slackwebhook.go b/pkg/detectors/slackwebhook/slackwebhook.go
index c895c46d9..ba0892292 100644
--- a/pkg/detectors/slackwebhook/slackwebhook.go
+++ b/pkg/detectors/slackwebhook/slackwebhook.go
@@ -4,9 +4,9 @@ import (
"bytes"
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/smartsheets/smartsheets.go b/pkg/detectors/smartsheets/smartsheets.go
index efbc5c256..e3d606570 100644
--- a/pkg/detectors/smartsheets/smartsheets.go
+++ b/pkg/detectors/smartsheets/smartsheets.go
@@ -3,8 +3,8 @@ package smartsheets
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/smartystreets/smartystreets.go b/pkg/detectors/smartystreets/smartystreets.go
index ad70f3d69..9fced972e 100644
--- a/pkg/detectors/smartystreets/smartystreets.go
+++ b/pkg/detectors/smartystreets/smartystreets.go
@@ -3,8 +3,8 @@ package smartystreets
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/smooch/smooch.go b/pkg/detectors/smooch/smooch.go
index b967f2e5c..9b0bdef2a 100644
--- a/pkg/detectors/smooch/smooch.go
+++ b/pkg/detectors/smooch/smooch.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/snipcart/snipcart.go b/pkg/detectors/snipcart/snipcart.go
index 748116fb5..f47f030d3 100644
--- a/pkg/detectors/snipcart/snipcart.go
+++ b/pkg/detectors/snipcart/snipcart.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/snowflake/snowflake.go b/pkg/detectors/snowflake/snowflake.go
index 7ec16ef32..27a8e9ad9 100644
--- a/pkg/detectors/snowflake/snowflake.go
+++ b/pkg/detectors/snowflake/snowflake.go
@@ -4,7 +4,7 @@ import (
"context"
"database/sql"
"fmt"
- "regexp"
+ regexp "github.com/wasilibs/go-re2"
"strings"
"time"
"unicode"
diff --git a/pkg/detectors/snykkey/snykkey.go b/pkg/detectors/snykkey/snykkey.go
index 3a7b49830..8e1f09ef1 100644
--- a/pkg/detectors/snykkey/snykkey.go
+++ b/pkg/detectors/snykkey/snykkey.go
@@ -3,8 +3,8 @@ package snykkey
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sonarcloud/sonarcloud.go b/pkg/detectors/sonarcloud/sonarcloud.go
index 1b45f18a7..8f9ec5671 100644
--- a/pkg/detectors/sonarcloud/sonarcloud.go
+++ b/pkg/detectors/sonarcloud/sonarcloud.go
@@ -2,9 +2,9 @@ package sonarcloud
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sourcegraph/sourcegraph.go b/pkg/detectors/sourcegraph/sourcegraph.go
index 46d3767e9..2018e7b89 100644
--- a/pkg/detectors/sourcegraph/sourcegraph.go
+++ b/pkg/detectors/sourcegraph/sourcegraph.go
@@ -3,8 +3,8 @@ package sourcegraph
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sourcegraphcody/sourcegraphcody.go b/pkg/detectors/sourcegraphcody/sourcegraphcody.go
index 08052cc0f..bb00e01a0 100644
--- a/pkg/detectors/sourcegraphcody/sourcegraphcody.go
+++ b/pkg/detectors/sourcegraphcody/sourcegraphcody.go
@@ -3,8 +3,8 @@ package sourcegraphcody
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sparkpost/sparkpost.go b/pkg/detectors/sparkpost/sparkpost.go
index ded611d20..d02e58bf8 100644
--- a/pkg/detectors/sparkpost/sparkpost.go
+++ b/pkg/detectors/sparkpost/sparkpost.go
@@ -2,8 +2,8 @@ package sparkpost
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/speechtextai/speechtextai.go b/pkg/detectors/speechtextai/speechtextai.go
index 2703fb0c8..53a2ce8e6 100644
--- a/pkg/detectors/speechtextai/speechtextai.go
+++ b/pkg/detectors/speechtextai/speechtextai.go
@@ -3,8 +3,8 @@ package speechtextai
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go b/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go
index d9b2f56b3..5bb39ed19 100644
--- a/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go
+++ b/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken.go
@@ -2,8 +2,8 @@ package splunkobservabilitytoken
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/spoonacular/spoonacular.go b/pkg/detectors/spoonacular/spoonacular.go
index 0dcf9caa3..a7f5ae9cd 100644
--- a/pkg/detectors/spoonacular/spoonacular.go
+++ b/pkg/detectors/spoonacular/spoonacular.go
@@ -3,8 +3,8 @@ package spoonacular
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sportsmonk/sportsmonk.go b/pkg/detectors/sportsmonk/sportsmonk.go
index 2ea8030a5..c22b1e1e8 100644
--- a/pkg/detectors/sportsmonk/sportsmonk.go
+++ b/pkg/detectors/sportsmonk/sportsmonk.go
@@ -2,8 +2,8 @@ package sportsmonk
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/spotifykey/spotifykey.go b/pkg/detectors/spotifykey/spotifykey.go
index e123c3adb..c219de884 100644
--- a/pkg/detectors/spotifykey/spotifykey.go
+++ b/pkg/detectors/spotifykey/spotifykey.go
@@ -4,7 +4,7 @@ import (
"context"
"golang.org/x/oauth2"
- "regexp"
+ regexp "github.com/wasilibs/go-re2"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sqlserver/sqlserver.go b/pkg/detectors/sqlserver/sqlserver.go
index 02c2ebaa7..ee8571ff8 100644
--- a/pkg/detectors/sqlserver/sqlserver.go
+++ b/pkg/detectors/sqlserver/sqlserver.go
@@ -3,7 +3,7 @@ package sqlserver
import (
"context"
"database/sql"
- "regexp"
+ regexp "github.com/wasilibs/go-re2"
mssql "github.com/denisenkom/go-mssqldb"
"github.com/denisenkom/go-mssqldb/msdsn"
diff --git a/pkg/detectors/square/square.go b/pkg/detectors/square/square.go
index 481ddb9ff..e27e5f372 100644
--- a/pkg/detectors/square/square.go
+++ b/pkg/detectors/square/square.go
@@ -3,8 +3,8 @@ package square
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
@@ -68,7 +68,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", res))
req.Header.Add("Content-Type", "application/json")
// unclear if this version needs to be set or matters, seems to work without, but docs want it
- //req.Header.Add("Square-Version", "2020-08-12")
+ // req.Header.Add("Square-Version", "2020-08-12")
res, err := client.Do(req)
if err == nil {
res.Body.Close() // The request body is unused.
diff --git a/pkg/detectors/squareapp/squareapp.go b/pkg/detectors/squareapp/squareapp.go
index 6b388fbc2..dfe6a4e10 100644
--- a/pkg/detectors/squareapp/squareapp.go
+++ b/pkg/detectors/squareapp/squareapp.go
@@ -5,8 +5,8 @@ import (
"context"
"encoding/json"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/squarespace/squarespace.go b/pkg/detectors/squarespace/squarespace.go
index 174e66a44..0a87bb872 100644
--- a/pkg/detectors/squarespace/squarespace.go
+++ b/pkg/detectors/squarespace/squarespace.go
@@ -3,8 +3,8 @@ package squarespace
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/squareup/squareup.go b/pkg/detectors/squareup/squareup.go
index 62497ed3f..731328b4f 100644
--- a/pkg/detectors/squareup/squareup.go
+++ b/pkg/detectors/squareup/squareup.go
@@ -3,8 +3,8 @@ package squareup
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sslmate/sslmate.go b/pkg/detectors/sslmate/sslmate.go
index 276e1ce34..0fcc26dd5 100644
--- a/pkg/detectors/sslmate/sslmate.go
+++ b/pkg/detectors/sslmate/sslmate.go
@@ -3,8 +3,8 @@ package sslmate
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/statuscake/statuscake.go b/pkg/detectors/statuscake/statuscake.go
index 92640ca58..a12d4b815 100644
--- a/pkg/detectors/statuscake/statuscake.go
+++ b/pkg/detectors/statuscake/statuscake.go
@@ -3,8 +3,8 @@ package statuscake
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/statuspage/statuspage.go b/pkg/detectors/statuspage/statuspage.go
index acc01afb8..12cfe603d 100644
--- a/pkg/detectors/statuspage/statuspage.go
+++ b/pkg/detectors/statuspage/statuspage.go
@@ -2,8 +2,8 @@ package statuspage
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/statuspal/statuspal.go b/pkg/detectors/statuspal/statuspal.go
index 36d9b737d..e74610422 100644
--- a/pkg/detectors/statuspal/statuspal.go
+++ b/pkg/detectors/statuspal/statuspal.go
@@ -2,8 +2,8 @@ package statuspal
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/stitchdata/stitchdata.go b/pkg/detectors/stitchdata/stitchdata.go
index c66ef7a08..a51a591b0 100644
--- a/pkg/detectors/stitchdata/stitchdata.go
+++ b/pkg/detectors/stitchdata/stitchdata.go
@@ -3,8 +3,8 @@ package stitchdata
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/stockdata/stockdata.go b/pkg/detectors/stockdata/stockdata.go
index d105d3528..19b407654 100644
--- a/pkg/detectors/stockdata/stockdata.go
+++ b/pkg/detectors/stockdata/stockdata.go
@@ -2,8 +2,8 @@ package stockdata
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/storecove/storecove.go b/pkg/detectors/storecove/storecove.go
index 0ea29d40f..327d82d08 100644
--- a/pkg/detectors/storecove/storecove.go
+++ b/pkg/detectors/storecove/storecove.go
@@ -3,8 +3,8 @@ package storecove
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/stormboard/stormboard.go b/pkg/detectors/stormboard/stormboard.go
index 96996dfe2..0cc9933c7 100644
--- a/pkg/detectors/stormboard/stormboard.go
+++ b/pkg/detectors/stormboard/stormboard.go
@@ -2,8 +2,8 @@ package stormboard
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/stormglass/stormglass.go b/pkg/detectors/stormglass/stormglass.go
index cc21564fb..89669d556 100644
--- a/pkg/detectors/stormglass/stormglass.go
+++ b/pkg/detectors/stormglass/stormglass.go
@@ -2,8 +2,8 @@ package stormglass
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/storyblok/storyblok.go b/pkg/detectors/storyblok/storyblok.go
index 938cf24e8..ceb524182 100644
--- a/pkg/detectors/storyblok/storyblok.go
+++ b/pkg/detectors/storyblok/storyblok.go
@@ -2,8 +2,8 @@ package storyblok
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/storychief/storychief.go b/pkg/detectors/storychief/storychief.go
index dbc8b2dd8..776058633 100644
--- a/pkg/detectors/storychief/storychief.go
+++ b/pkg/detectors/storychief/storychief.go
@@ -3,8 +3,8 @@ package storychief
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/strava/strava.go b/pkg/detectors/strava/strava.go
index 50e934015..701a02232 100644
--- a/pkg/detectors/strava/strava.go
+++ b/pkg/detectors/strava/strava.go
@@ -2,8 +2,8 @@ package strava
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/streak/streak.go b/pkg/detectors/streak/streak.go
index d473e405d..99364b97b 100644
--- a/pkg/detectors/streak/streak.go
+++ b/pkg/detectors/streak/streak.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/stripe/stripe.go b/pkg/detectors/stripe/stripe.go
index 498904f85..188180454 100644
--- a/pkg/detectors/stripe/stripe.go
+++ b/pkg/detectors/stripe/stripe.go
@@ -3,8 +3,8 @@ package stripe
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
@@ -17,7 +17,7 @@ type Scanner struct{}
var _ detectors.Detector = (*Scanner)(nil)
var (
- //doesn't include test keys with "sk_test"
+ // doesn't include test keys with "sk_test"
secretKey = regexp.MustCompile(`[rs]k_live_[a-zA-Z0-9]{20,247}`)
)
diff --git a/pkg/detectors/stripo/stripo.go b/pkg/detectors/stripo/stripo.go
index 165f9993b..41bb77f34 100644
--- a/pkg/detectors/stripo/stripo.go
+++ b/pkg/detectors/stripo/stripo.go
@@ -3,8 +3,8 @@ package stripo
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/stytch/stytch.go b/pkg/detectors/stytch/stytch.go
index 0d907609a..c17fd9a7d 100644
--- a/pkg/detectors/stytch/stytch.go
+++ b/pkg/detectors/stytch/stytch.go
@@ -2,8 +2,8 @@ package stytch
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sugester/sugester.go b/pkg/detectors/sugester/sugester.go
index 80681dd6c..6e2151dd0 100644
--- a/pkg/detectors/sugester/sugester.go
+++ b/pkg/detectors/sugester/sugester.go
@@ -2,8 +2,8 @@ package sugester
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/sumologickey/sumologickey.go b/pkg/detectors/sumologickey/sumologickey.go
index 8f7312bc9..b8f5f1b6e 100644
--- a/pkg/detectors/sumologickey/sumologickey.go
+++ b/pkg/detectors/sumologickey/sumologickey.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/supabasetoken/supabasetoken.go b/pkg/detectors/supabasetoken/supabasetoken.go
index 7f5b3cb94..07018a869 100644
--- a/pkg/detectors/supabasetoken/supabasetoken.go
+++ b/pkg/detectors/supabasetoken/supabasetoken.go
@@ -3,8 +3,8 @@ package supabasetoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/supernotesapi/supernotesapi.go b/pkg/detectors/supernotesapi/supernotesapi.go
index 98b2c5eb0..9a520fc3b 100644
--- a/pkg/detectors/supernotesapi/supernotesapi.go
+++ b/pkg/detectors/supernotesapi/supernotesapi.go
@@ -2,8 +2,8 @@ package supernotesapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/surveyanyplace/surveyanyplace.go b/pkg/detectors/surveyanyplace/surveyanyplace.go
index dd143ecb6..f6773935b 100644
--- a/pkg/detectors/surveyanyplace/surveyanyplace.go
+++ b/pkg/detectors/surveyanyplace/surveyanyplace.go
@@ -3,8 +3,8 @@ package surveyanyplace
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/surveybot/surveybot.go b/pkg/detectors/surveybot/surveybot.go
index 8ecdf7c69..25bf4fa6d 100644
--- a/pkg/detectors/surveybot/surveybot.go
+++ b/pkg/detectors/surveybot/surveybot.go
@@ -3,8 +3,8 @@ package surveybot
import (
"context"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/surveysparrow/surveysparrow.go b/pkg/detectors/surveysparrow/surveysparrow.go
index cf7e998df..d61256c10 100644
--- a/pkg/detectors/surveysparrow/surveysparrow.go
+++ b/pkg/detectors/surveysparrow/surveysparrow.go
@@ -3,8 +3,8 @@ package surveysparrow
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/survicate/survicate.go b/pkg/detectors/survicate/survicate.go
index c1848ca2f..9c2340475 100644
--- a/pkg/detectors/survicate/survicate.go
+++ b/pkg/detectors/survicate/survicate.go
@@ -3,8 +3,8 @@ package survicate
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/swell/swell.go b/pkg/detectors/swell/swell.go
index 9830266dc..ba1384ecf 100644
--- a/pkg/detectors/swell/swell.go
+++ b/pkg/detectors/swell/swell.go
@@ -2,8 +2,8 @@ package swell
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/swiftype/swiftype.go b/pkg/detectors/swiftype/swiftype.go
index d6066fb74..1ec300fec 100644
--- a/pkg/detectors/swiftype/swiftype.go
+++ b/pkg/detectors/swiftype/swiftype.go
@@ -2,8 +2,8 @@ package swiftype
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/tailscale/tailscale.go b/pkg/detectors/tailscale/tailscale.go
index ab585f9ca..20a8c12a2 100644
--- a/pkg/detectors/tailscale/tailscale.go
+++ b/pkg/detectors/tailscale/tailscale.go
@@ -3,9 +3,9 @@ package tailscale
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
"net/url"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/tallyfy/tallyfy.go b/pkg/detectors/tallyfy/tallyfy.go
index bb48e0392..2a32fafae 100644
--- a/pkg/detectors/tallyfy/tallyfy.go
+++ b/pkg/detectors/tallyfy/tallyfy.go
@@ -3,8 +3,8 @@ package tallyfy
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/tatumio/tatumio.go b/pkg/detectors/tatumio/tatumio.go
index f98c4fb49..dd45e4979 100644
--- a/pkg/detectors/tatumio/tatumio.go
+++ b/pkg/detectors/tatumio/tatumio.go
@@ -2,8 +2,8 @@ package tatumio
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/taxjar/taxjar.go b/pkg/detectors/taxjar/taxjar.go
index ead1aedf3..337bc43d1 100644
--- a/pkg/detectors/taxjar/taxjar.go
+++ b/pkg/detectors/taxjar/taxjar.go
@@ -3,8 +3,8 @@ package taxjar
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/teamgate/teamgate.go b/pkg/detectors/teamgate/teamgate.go
index 9ed1f861b..5ee093bc2 100644
--- a/pkg/detectors/teamgate/teamgate.go
+++ b/pkg/detectors/teamgate/teamgate.go
@@ -2,8 +2,8 @@ package teamgate
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/teamworkcrm/teamworkcrm.go b/pkg/detectors/teamworkcrm/teamworkcrm.go
index 5c324addd..293ac6f20 100644
--- a/pkg/detectors/teamworkcrm/teamworkcrm.go
+++ b/pkg/detectors/teamworkcrm/teamworkcrm.go
@@ -3,8 +3,8 @@ package teamworkcrm
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/teamworkdesk/teamworkdesk.go b/pkg/detectors/teamworkdesk/teamworkdesk.go
index 0f4dbe089..9a9a06e11 100644
--- a/pkg/detectors/teamworkdesk/teamworkdesk.go
+++ b/pkg/detectors/teamworkdesk/teamworkdesk.go
@@ -3,8 +3,8 @@ package teamworkdesk
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/teamworkspaces/teamworkspaces.go b/pkg/detectors/teamworkspaces/teamworkspaces.go
index c142753d8..281daa422 100644
--- a/pkg/detectors/teamworkspaces/teamworkspaces.go
+++ b/pkg/detectors/teamworkspaces/teamworkspaces.go
@@ -3,8 +3,8 @@ package teamworkspaces
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go b/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go
index d23bab7ad..c0e79fa6e 100644
--- a/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go
+++ b/pkg/detectors/technicalanalysisapi/technicalanalysisapi.go
@@ -3,8 +3,8 @@ package technicalanalysisapi
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/tefter/tefter.go b/pkg/detectors/tefter/tefter.go
index ad2bef1a8..a5707e537 100644
--- a/pkg/detectors/tefter/tefter.go
+++ b/pkg/detectors/tefter/tefter.go
@@ -3,9 +3,9 @@ package tefter
import (
"context"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/telegrambottoken/telegrambottoken.go b/pkg/detectors/telegrambottoken/telegrambottoken.go
index a42b9cd60..22985ebe4 100644
--- a/pkg/detectors/telegrambottoken/telegrambottoken.go
+++ b/pkg/detectors/telegrambottoken/telegrambottoken.go
@@ -5,8 +5,8 @@ import (
"encoding/json"
// "fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/teletype/teletype.go b/pkg/detectors/teletype/teletype.go
index c01c77e93..b994b5ec1 100644
--- a/pkg/detectors/teletype/teletype.go
+++ b/pkg/detectors/teletype/teletype.go
@@ -2,9 +2,9 @@ package teletype
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/telnyx/telnyx.go b/pkg/detectors/telnyx/telnyx.go
index a044993c1..5aba48b2d 100644
--- a/pkg/detectors/telnyx/telnyx.go
+++ b/pkg/detectors/telnyx/telnyx.go
@@ -3,8 +3,8 @@ package telnyx
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go
index dbb54c7a1..40cff8b8f 100644
--- a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go
+++ b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken.go
@@ -3,8 +3,8 @@ package terraformcloudpersonaltoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/testingbot/testingbot.go b/pkg/detectors/testingbot/testingbot.go
index 93240bd56..91d26248b 100644
--- a/pkg/detectors/testingbot/testingbot.go
+++ b/pkg/detectors/testingbot/testingbot.go
@@ -2,8 +2,8 @@ package testingbot
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/textmagic/textmagic.go b/pkg/detectors/textmagic/textmagic.go
index 641f712b0..8c53ca5b6 100644
--- a/pkg/detectors/textmagic/textmagic.go
+++ b/pkg/detectors/textmagic/textmagic.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/theoddsapi/theoddsapi.go b/pkg/detectors/theoddsapi/theoddsapi.go
index 5161a81ee..9cbeb96b9 100644
--- a/pkg/detectors/theoddsapi/theoddsapi.go
+++ b/pkg/detectors/theoddsapi/theoddsapi.go
@@ -2,8 +2,8 @@ package theoddsapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/thinkific/thinkific.go b/pkg/detectors/thinkific/thinkific.go
index b34c442b6..86f8ed882 100644
--- a/pkg/detectors/thinkific/thinkific.go
+++ b/pkg/detectors/thinkific/thinkific.go
@@ -3,9 +3,9 @@ package thinkific
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/thousandeyes/thousandeyes.go b/pkg/detectors/thousandeyes/thousandeyes.go
index 14fcb0c28..83a0a2e7d 100644
--- a/pkg/detectors/thousandeyes/thousandeyes.go
+++ b/pkg/detectors/thousandeyes/thousandeyes.go
@@ -2,8 +2,8 @@ package thousandeyes
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ticketmaster/ticketmaster.go b/pkg/detectors/ticketmaster/ticketmaster.go
index 0d8864423..7f1026f9f 100644
--- a/pkg/detectors/ticketmaster/ticketmaster.go
+++ b/pkg/detectors/ticketmaster/ticketmaster.go
@@ -3,8 +3,8 @@ package ticketmaster
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/tickettailor/tickettailor.go b/pkg/detectors/tickettailor/tickettailor.go
index 8c363ca3a..e8160c401 100644
--- a/pkg/detectors/tickettailor/tickettailor.go
+++ b/pkg/detectors/tickettailor/tickettailor.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/tiingo/tiingo.go b/pkg/detectors/tiingo/tiingo.go
index 54af3a52b..419367910 100644
--- a/pkg/detectors/tiingo/tiingo.go
+++ b/pkg/detectors/tiingo/tiingo.go
@@ -3,8 +3,8 @@ package tiingo
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/timecamp/timecamp.go b/pkg/detectors/timecamp/timecamp.go
index 53d833f01..fd019a2f3 100644
--- a/pkg/detectors/timecamp/timecamp.go
+++ b/pkg/detectors/timecamp/timecamp.go
@@ -2,8 +2,8 @@ package timecamp
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/timezoneapi/timezoneapi.go b/pkg/detectors/timezoneapi/timezoneapi.go
index 7f6ab3cc4..c9a094024 100644
--- a/pkg/detectors/timezoneapi/timezoneapi.go
+++ b/pkg/detectors/timezoneapi/timezoneapi.go
@@ -2,8 +2,8 @@ package timezoneapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/tineswebhook/tineswebhook.go b/pkg/detectors/tineswebhook/tineswebhook.go
index 78aa4e64d..a5e08e9b3 100644
--- a/pkg/detectors/tineswebhook/tineswebhook.go
+++ b/pkg/detectors/tineswebhook/tineswebhook.go
@@ -2,8 +2,8 @@ package tineswebhook
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/tly/tly.go b/pkg/detectors/tly/tly.go
index 220ca34af..ca9ba4a25 100644
--- a/pkg/detectors/tly/tly.go
+++ b/pkg/detectors/tly/tly.go
@@ -2,8 +2,8 @@ package tly
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/tmetric/tmetric.go b/pkg/detectors/tmetric/tmetric.go
index d14387504..640146d65 100644
--- a/pkg/detectors/tmetric/tmetric.go
+++ b/pkg/detectors/tmetric/tmetric.go
@@ -3,8 +3,8 @@ package tmetric
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/todoist/todoist.go b/pkg/detectors/todoist/todoist.go
index 0681bf2a7..f1c238fa5 100644
--- a/pkg/detectors/todoist/todoist.go
+++ b/pkg/detectors/todoist/todoist.go
@@ -3,8 +3,8 @@ package todoist
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/toggltrack/toggltrack.go b/pkg/detectors/toggltrack/toggltrack.go
index 0baeec3a0..2c35e6b26 100644
--- a/pkg/detectors/toggltrack/toggltrack.go
+++ b/pkg/detectors/toggltrack/toggltrack.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/tokeet/tokeet.go b/pkg/detectors/tokeet/tokeet.go
index 20b1d9935..b361b3192 100644
--- a/pkg/detectors/tokeet/tokeet.go
+++ b/pkg/detectors/tokeet/tokeet.go
@@ -3,8 +3,8 @@ package tokeet
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/tomorrowio/tomorrowio.go b/pkg/detectors/tomorrowio/tomorrowio.go
index a8d48cdf9..82076c5be 100644
--- a/pkg/detectors/tomorrowio/tomorrowio.go
+++ b/pkg/detectors/tomorrowio/tomorrowio.go
@@ -3,8 +3,8 @@ package tomorrowio
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/tomtom/tomtom.go b/pkg/detectors/tomtom/tomtom.go
index 1d5f82e0b..46f1e51b3 100644
--- a/pkg/detectors/tomtom/tomtom.go
+++ b/pkg/detectors/tomtom/tomtom.go
@@ -2,8 +2,8 @@ package tomtom
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/tradier/tradier.go b/pkg/detectors/tradier/tradier.go
index d25529357..36cdebd8a 100644
--- a/pkg/detectors/tradier/tradier.go
+++ b/pkg/detectors/tradier/tradier.go
@@ -3,8 +3,8 @@ package tradier
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/transferwise/transferwise.go b/pkg/detectors/transferwise/transferwise.go
index 10165f27e..1cebe38f3 100644
--- a/pkg/detectors/transferwise/transferwise.go
+++ b/pkg/detectors/transferwise/transferwise.go
@@ -3,8 +3,8 @@ package transferwise
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/travelpayouts/travelpayouts.go b/pkg/detectors/travelpayouts/travelpayouts.go
index a2464087f..651c63a5c 100644
--- a/pkg/detectors/travelpayouts/travelpayouts.go
+++ b/pkg/detectors/travelpayouts/travelpayouts.go
@@ -3,8 +3,8 @@ package travelpayouts
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/travisci/travisci.go b/pkg/detectors/travisci/travisci.go
index 07d607c4a..af73e2388 100644
--- a/pkg/detectors/travisci/travisci.go
+++ b/pkg/detectors/travisci/travisci.go
@@ -3,8 +3,8 @@ package travisci
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/trelloapikey/trelloapikey.go b/pkg/detectors/trelloapikey/trelloapikey.go
index be78c210c..26e8e810f 100644
--- a/pkg/detectors/trelloapikey/trelloapikey.go
+++ b/pkg/detectors/trelloapikey/trelloapikey.go
@@ -3,8 +3,8 @@ package trelloapikey
import (
"context"
// "log"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/tru/tru.go b/pkg/detectors/tru/tru.go
index 2a40812f9..25dee7b48 100644
--- a/pkg/detectors/tru/tru.go
+++ b/pkg/detectors/tru/tru.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/trufflehogenterprise/trufflehogenterprise.go b/pkg/detectors/trufflehogenterprise/trufflehogenterprise.go
index d9880bde1..7af19a12d 100644
--- a/pkg/detectors/trufflehogenterprise/trufflehogenterprise.go
+++ b/pkg/detectors/trufflehogenterprise/trufflehogenterprise.go
@@ -3,8 +3,8 @@ package trufflehogenterprise
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/twelvedata/twelvedata.go b/pkg/detectors/twelvedata/twelvedata.go
index 8cb6f1092..8a2230671 100644
--- a/pkg/detectors/twelvedata/twelvedata.go
+++ b/pkg/detectors/twelvedata/twelvedata.go
@@ -2,9 +2,9 @@ package twelvedata
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/twilio/twilio.go b/pkg/detectors/twilio/twilio.go
index caac3751d..4c61cec9a 100644
--- a/pkg/detectors/twilio/twilio.go
+++ b/pkg/detectors/twilio/twilio.go
@@ -3,8 +3,8 @@ package twilio
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
diff --git a/pkg/detectors/twist/twist.go b/pkg/detectors/twist/twist.go
index 0b59b6c4b..898d53f05 100644
--- a/pkg/detectors/twist/twist.go
+++ b/pkg/detectors/twist/twist.go
@@ -3,8 +3,8 @@ package twist
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/twitch/twitch.go b/pkg/detectors/twitch/twitch.go
index d0c5b52fb..9898d4f5e 100644
--- a/pkg/detectors/twitch/twitch.go
+++ b/pkg/detectors/twitch/twitch.go
@@ -3,9 +3,9 @@ package twitch
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
"net/url"
- "regexp"
"strconv"
"strings"
diff --git a/pkg/detectors/twitter/twitter.go b/pkg/detectors/twitter/twitter.go
index 9d4d9c121..a043e7517 100644
--- a/pkg/detectors/twitter/twitter.go
+++ b/pkg/detectors/twitter/twitter.go
@@ -3,8 +3,8 @@ package twitter
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/tyntec/tyntec.go b/pkg/detectors/tyntec/tyntec.go
index 7fde801e6..85c6ccebd 100644
--- a/pkg/detectors/tyntec/tyntec.go
+++ b/pkg/detectors/tyntec/tyntec.go
@@ -2,8 +2,8 @@ package tyntec
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/typeform/typeform.go b/pkg/detectors/typeform/typeform.go
index 41767e345..404137427 100644
--- a/pkg/detectors/typeform/typeform.go
+++ b/pkg/detectors/typeform/typeform.go
@@ -3,8 +3,8 @@ package typeform
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/typetalk/typetalk.go b/pkg/detectors/typetalk/typetalk.go
index 493cc3fc6..9f455c5a1 100644
--- a/pkg/detectors/typetalk/typetalk.go
+++ b/pkg/detectors/typetalk/typetalk.go
@@ -3,8 +3,8 @@ package typetalk
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/ubidots/ubidots.go b/pkg/detectors/ubidots/ubidots.go
index bbc0e2bee..73d3b680e 100644
--- a/pkg/detectors/ubidots/ubidots.go
+++ b/pkg/detectors/ubidots/ubidots.go
@@ -2,8 +2,8 @@ package ubidots
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/uclassify/uclassify.go b/pkg/detectors/uclassify/uclassify.go
index 757fa2a02..64483ade4 100644
--- a/pkg/detectors/uclassify/uclassify.go
+++ b/pkg/detectors/uclassify/uclassify.go
@@ -3,8 +3,8 @@ package uclassify
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/unifyid/unifyid.go b/pkg/detectors/unifyid/unifyid.go
index 8b83a7834..f75999a2f 100644
--- a/pkg/detectors/unifyid/unifyid.go
+++ b/pkg/detectors/unifyid/unifyid.go
@@ -2,9 +2,9 @@ package unifyid
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/unplugg/unplugg.go b/pkg/detectors/unplugg/unplugg.go
index a7081bd46..298737a0b 100644
--- a/pkg/detectors/unplugg/unplugg.go
+++ b/pkg/detectors/unplugg/unplugg.go
@@ -2,8 +2,8 @@ package unplugg
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/unsplash/unsplash.go b/pkg/detectors/unsplash/unsplash.go
index b8856c96a..e15383c25 100644
--- a/pkg/detectors/unsplash/unsplash.go
+++ b/pkg/detectors/unsplash/unsplash.go
@@ -2,8 +2,8 @@ package unsplash
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/upcdatabase/upcdatabase.go b/pkg/detectors/upcdatabase/upcdatabase.go
index 015d4b547..f86d3eb23 100644
--- a/pkg/detectors/upcdatabase/upcdatabase.go
+++ b/pkg/detectors/upcdatabase/upcdatabase.go
@@ -3,9 +3,9 @@ package upcdatabase
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/uplead/uplead.go b/pkg/detectors/uplead/uplead.go
index c2b882438..d49367772 100644
--- a/pkg/detectors/uplead/uplead.go
+++ b/pkg/detectors/uplead/uplead.go
@@ -2,8 +2,8 @@ package uplead
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/uploadcare/uploadcare.go b/pkg/detectors/uploadcare/uploadcare.go
index 825f6164b..70830b3ba 100644
--- a/pkg/detectors/uploadcare/uploadcare.go
+++ b/pkg/detectors/uploadcare/uploadcare.go
@@ -3,8 +3,8 @@ package uploadcare
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/uptimerobot/uptimerobot.go b/pkg/detectors/uptimerobot/uptimerobot.go
index cc6e6c242..9adfea392 100644
--- a/pkg/detectors/uptimerobot/uptimerobot.go
+++ b/pkg/detectors/uptimerobot/uptimerobot.go
@@ -2,9 +2,9 @@ package uptimerobot
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/upwave/upwave.go b/pkg/detectors/upwave/upwave.go
index fbb5498f1..1cbc174bb 100644
--- a/pkg/detectors/upwave/upwave.go
+++ b/pkg/detectors/upwave/upwave.go
@@ -3,8 +3,8 @@ package upwave
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/uri/uri.go b/pkg/detectors/uri/uri.go
index 52b3f0144..0ab918466 100644
--- a/pkg/detectors/uri/uri.go
+++ b/pkg/detectors/uri/uri.go
@@ -2,9 +2,9 @@ package uri
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
"net/url"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/urlscan/urlscan.go b/pkg/detectors/urlscan/urlscan.go
index 0dc90d0e0..aae63b2c1 100644
--- a/pkg/detectors/urlscan/urlscan.go
+++ b/pkg/detectors/urlscan/urlscan.go
@@ -2,8 +2,8 @@ package urlscan
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/user/user.go b/pkg/detectors/user/user.go
index 2cbfe116b..a1549423e 100644
--- a/pkg/detectors/user/user.go
+++ b/pkg/detectors/user/user.go
@@ -3,8 +3,8 @@ package user
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/userflow/userflow.go b/pkg/detectors/userflow/userflow.go
index b0ba91114..f43d3dd97 100644
--- a/pkg/detectors/userflow/userflow.go
+++ b/pkg/detectors/userflow/userflow.go
@@ -3,8 +3,8 @@ package userflow
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/userstack/userstack.go b/pkg/detectors/userstack/userstack.go
index d8662ee3e..05dacac14 100644
--- a/pkg/detectors/userstack/userstack.go
+++ b/pkg/detectors/userstack/userstack.go
@@ -3,9 +3,9 @@ package userstack
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken.go b/pkg/detectors/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken.go
index e49aedc05..c517169c8 100644
--- a/pkg/detectors/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken.go
+++ b/pkg/detectors/vagrantcloudpersonaltoken/vagrantcloudpersonaltoken.go
@@ -3,8 +3,8 @@ package vagrantcloudpersonaltoken
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/vatlayer/vatlayer.go b/pkg/detectors/vatlayer/vatlayer.go
index bd0155c5a..be0bbf525 100644
--- a/pkg/detectors/vatlayer/vatlayer.go
+++ b/pkg/detectors/vatlayer/vatlayer.go
@@ -3,9 +3,9 @@ package vatlayer
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/vbout/vbout.go b/pkg/detectors/vbout/vbout.go
index 04df49499..f9cfd4a1b 100644
--- a/pkg/detectors/vbout/vbout.go
+++ b/pkg/detectors/vbout/vbout.go
@@ -3,8 +3,8 @@ package vbout
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/vercel/vercel.go b/pkg/detectors/vercel/vercel.go
index 55d6f23e4..87b398675 100644
--- a/pkg/detectors/vercel/vercel.go
+++ b/pkg/detectors/vercel/vercel.go
@@ -3,8 +3,8 @@ package vercel
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/verifier/verifier.go b/pkg/detectors/verifier/verifier.go
index 324f76a1d..eb8180a77 100644
--- a/pkg/detectors/verifier/verifier.go
+++ b/pkg/detectors/verifier/verifier.go
@@ -3,8 +3,8 @@ package verifier
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/verimail/verimail.go b/pkg/detectors/verimail/verimail.go
index 19345aedf..f449b088a 100644
--- a/pkg/detectors/verimail/verimail.go
+++ b/pkg/detectors/verimail/verimail.go
@@ -2,8 +2,8 @@ package verimail
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/veriphone/veriphone.go b/pkg/detectors/veriphone/veriphone.go
index 6b4f43006..46902ba66 100644
--- a/pkg/detectors/veriphone/veriphone.go
+++ b/pkg/detectors/veriphone/veriphone.go
@@ -2,8 +2,8 @@ package veriphone
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/versioneye/versioneye.go b/pkg/detectors/versioneye/versioneye.go
index 5148a99d4..9752e6fd0 100644
--- a/pkg/detectors/versioneye/versioneye.go
+++ b/pkg/detectors/versioneye/versioneye.go
@@ -2,8 +2,8 @@ package versioneye
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/viewneo/viewneo.go b/pkg/detectors/viewneo/viewneo.go
index fa35a0631..3465f61cb 100644
--- a/pkg/detectors/viewneo/viewneo.go
+++ b/pkg/detectors/viewneo/viewneo.go
@@ -3,8 +3,8 @@ package viewneo
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/virustotal/virustotal.go b/pkg/detectors/virustotal/virustotal.go
index 465b1c060..f57024017 100644
--- a/pkg/detectors/virustotal/virustotal.go
+++ b/pkg/detectors/virustotal/virustotal.go
@@ -2,8 +2,8 @@ package virustotal
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/visualcrossing/visualcrossing.go b/pkg/detectors/visualcrossing/visualcrossing.go
index ea9dd2491..54b5e7606 100644
--- a/pkg/detectors/visualcrossing/visualcrossing.go
+++ b/pkg/detectors/visualcrossing/visualcrossing.go
@@ -3,8 +3,8 @@ package visualcrossing
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/voiceflow/voiceflow.go b/pkg/detectors/voiceflow/voiceflow.go
index 3513be3e9..1ffb1b11d 100644
--- a/pkg/detectors/voiceflow/voiceflow.go
+++ b/pkg/detectors/voiceflow/voiceflow.go
@@ -4,9 +4,9 @@ import (
"bytes"
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
@@ -25,7 +25,7 @@ var (
defaultClient = common.SaneHttpClient()
// Reference: https://developer.voiceflow.com/reference/project#dialog-manager-api-keys
//
- //TODO: This includes Workspace and Legacy Workspace API keys; I haven't validated whether these actually work.
+ // TODO: This includes Workspace and Legacy Workspace API keys; I haven't validated whether these actually work.
// https://github.com/voiceflow/general-runtime/blob/master/tests/runtime/lib/DataAPI/utils.unit.ts
keyPat = regexp.MustCompile(`\b(VF\.(?:(?:DM|WS)\.)?[a-fA-F0-9]{24}\.[a-zA-Z0-9]{16})\b`)
)
diff --git a/pkg/detectors/voicegain/voicegain.go b/pkg/detectors/voicegain/voicegain.go
index 67741e25b..72bbb3532 100644
--- a/pkg/detectors/voicegain/voicegain.go
+++ b/pkg/detectors/voicegain/voicegain.go
@@ -3,8 +3,8 @@ package voicegain
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/voodoosms/voodoosms.go b/pkg/detectors/voodoosms/voodoosms.go
index c382d0933..0a8ab9884 100644
--- a/pkg/detectors/voodoosms/voodoosms.go
+++ b/pkg/detectors/voodoosms/voodoosms.go
@@ -3,8 +3,8 @@ package voodoosms
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/vouchery/vouchery.go b/pkg/detectors/vouchery/vouchery.go
index ec917e564..28b064081 100644
--- a/pkg/detectors/vouchery/vouchery.go
+++ b/pkg/detectors/vouchery/vouchery.go
@@ -3,8 +3,8 @@ package vouchery
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/vpnapi/vpnapi.go b/pkg/detectors/vpnapi/vpnapi.go
index 5593e0d4e..5ea820bb6 100644
--- a/pkg/detectors/vpnapi/vpnapi.go
+++ b/pkg/detectors/vpnapi/vpnapi.go
@@ -2,8 +2,8 @@ package vpnapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/vultrapikey/vultrapikey.go b/pkg/detectors/vultrapikey/vultrapikey.go
index 536a27c92..a229f4be6 100644
--- a/pkg/detectors/vultrapikey/vultrapikey.go
+++ b/pkg/detectors/vultrapikey/vultrapikey.go
@@ -3,8 +3,8 @@ package vultrapikey
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/vyte/vyte.go b/pkg/detectors/vyte/vyte.go
index 0671be79f..47685a67d 100644
--- a/pkg/detectors/vyte/vyte.go
+++ b/pkg/detectors/vyte/vyte.go
@@ -2,8 +2,8 @@ package vyte
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/walkscore/walkscore.go b/pkg/detectors/walkscore/walkscore.go
index 4400afaa4..28eaea891 100644
--- a/pkg/detectors/walkscore/walkscore.go
+++ b/pkg/detectors/walkscore/walkscore.go
@@ -3,9 +3,9 @@ package walkscore
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/weatherbit/weatherbit.go b/pkg/detectors/weatherbit/weatherbit.go
index 04a8ebad7..9b6eb90f1 100644
--- a/pkg/detectors/weatherbit/weatherbit.go
+++ b/pkg/detectors/weatherbit/weatherbit.go
@@ -3,8 +3,8 @@ package weatherbit
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/weatherstack/weatherstack.go b/pkg/detectors/weatherstack/weatherstack.go
index d5255a209..6e42ec8b1 100644
--- a/pkg/detectors/weatherstack/weatherstack.go
+++ b/pkg/detectors/weatherstack/weatherstack.go
@@ -3,9 +3,9 @@ package weatherstack
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/web3storage/web3storage.go b/pkg/detectors/web3storage/web3storage.go
index 346547447..00ca87108 100644
--- a/pkg/detectors/web3storage/web3storage.go
+++ b/pkg/detectors/web3storage/web3storage.go
@@ -3,8 +3,8 @@ package web3storage
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/webex/webex.go b/pkg/detectors/webex/webex.go
index 38c732ca1..d00ad14e6 100644
--- a/pkg/detectors/webex/webex.go
+++ b/pkg/detectors/webex/webex.go
@@ -3,9 +3,9 @@ package webex
import (
"context"
"encoding/json"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/webflow/webflow.go b/pkg/detectors/webflow/webflow.go
index 25ab7c84b..ed42a9124 100644
--- a/pkg/detectors/webflow/webflow.go
+++ b/pkg/detectors/webflow/webflow.go
@@ -3,8 +3,8 @@ package webflow
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/webscraper/webscraper.go b/pkg/detectors/webscraper/webscraper.go
index 9b374f6df..c5aa1e424 100644
--- a/pkg/detectors/webscraper/webscraper.go
+++ b/pkg/detectors/webscraper/webscraper.go
@@ -3,8 +3,8 @@ package webscraper
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/webscraping/webscraping.go b/pkg/detectors/webscraping/webscraping.go
index 5d5118ab7..6cd63258a 100644
--- a/pkg/detectors/webscraping/webscraping.go
+++ b/pkg/detectors/webscraping/webscraping.go
@@ -2,9 +2,9 @@ package webscraping
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/websitepulse/websitepulse.go b/pkg/detectors/websitepulse/websitepulse.go
index e8eef8764..b952c9e2e 100644
--- a/pkg/detectors/websitepulse/websitepulse.go
+++ b/pkg/detectors/websitepulse/websitepulse.go
@@ -3,9 +3,9 @@ package websitepulse
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/wepay/wepay.go b/pkg/detectors/wepay/wepay.go
index 856e94d48..0bb07752e 100644
--- a/pkg/detectors/wepay/wepay.go
+++ b/pkg/detectors/wepay/wepay.go
@@ -2,8 +2,8 @@ package wepay
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/whoxy/whoxy.go b/pkg/detectors/whoxy/whoxy.go
index 90478b875..d85683228 100644
--- a/pkg/detectors/whoxy/whoxy.go
+++ b/pkg/detectors/whoxy/whoxy.go
@@ -3,9 +3,9 @@ package whoxy
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/wistia/wistia.go b/pkg/detectors/wistia/wistia.go
index 5a611ae5b..e05f6dff7 100644
--- a/pkg/detectors/wistia/wistia.go
+++ b/pkg/detectors/wistia/wistia.go
@@ -2,8 +2,8 @@ package wistia
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/wit/wit.go b/pkg/detectors/wit/wit.go
index 239250b21..67ea8417a 100644
--- a/pkg/detectors/wit/wit.go
+++ b/pkg/detectors/wit/wit.go
@@ -3,8 +3,8 @@ package wit
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/worksnaps/worksnaps.go b/pkg/detectors/worksnaps/worksnaps.go
index e2e8b8e30..78ecf768b 100644
--- a/pkg/detectors/worksnaps/worksnaps.go
+++ b/pkg/detectors/worksnaps/worksnaps.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/workstack/workstack.go b/pkg/detectors/workstack/workstack.go
index 5cc825923..488f6ae88 100644
--- a/pkg/detectors/workstack/workstack.go
+++ b/pkg/detectors/workstack/workstack.go
@@ -2,8 +2,8 @@ package workstack
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/worldcoinindex/worldcoinindex.go b/pkg/detectors/worldcoinindex/worldcoinindex.go
index 76cac67f4..0d5ac48ba 100644
--- a/pkg/detectors/worldcoinindex/worldcoinindex.go
+++ b/pkg/detectors/worldcoinindex/worldcoinindex.go
@@ -3,9 +3,9 @@ package worldcoinindex
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/worldweather/worldweather.go b/pkg/detectors/worldweather/worldweather.go
index f6d74b752..3edc5bc53 100644
--- a/pkg/detectors/worldweather/worldweather.go
+++ b/pkg/detectors/worldweather/worldweather.go
@@ -3,8 +3,8 @@ package worldweather
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/wrike/wrike.go b/pkg/detectors/wrike/wrike.go
index 158764167..c71962b03 100644
--- a/pkg/detectors/wrike/wrike.go
+++ b/pkg/detectors/wrike/wrike.go
@@ -3,8 +3,8 @@ package wrike
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/yandex/yandex.go b/pkg/detectors/yandex/yandex.go
index 142e2ce7c..61faddde5 100644
--- a/pkg/detectors/yandex/yandex.go
+++ b/pkg/detectors/yandex/yandex.go
@@ -2,8 +2,8 @@ package yandex
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/yelp/yelp.go b/pkg/detectors/yelp/yelp.go
index 5278b6d3e..e71682c6e 100644
--- a/pkg/detectors/yelp/yelp.go
+++ b/pkg/detectors/yelp/yelp.go
@@ -3,8 +3,8 @@ package yelp
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/youneedabudget/youneedabudget.go b/pkg/detectors/youneedabudget/youneedabudget.go
index a95e1003f..1bab39c6f 100644
--- a/pkg/detectors/youneedabudget/youneedabudget.go
+++ b/pkg/detectors/youneedabudget/youneedabudget.go
@@ -3,8 +3,8 @@ package youneedabudget
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/yousign/yousign.go b/pkg/detectors/yousign/yousign.go
index 36cfe6e9f..032fdbc25 100644
--- a/pkg/detectors/yousign/yousign.go
+++ b/pkg/detectors/yousign/yousign.go
@@ -3,8 +3,8 @@ package yousign
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/youtubeapikey/youtubeapikey.go b/pkg/detectors/youtubeapikey/youtubeapikey.go
index c4d98ef1b..92597c31b 100644
--- a/pkg/detectors/youtubeapikey/youtubeapikey.go
+++ b/pkg/detectors/youtubeapikey/youtubeapikey.go
@@ -2,8 +2,8 @@ package youtubeapikey
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/zapierwebhook/zapierwebhook.go b/pkg/detectors/zapierwebhook/zapierwebhook.go
index 620c027f8..9f1d45ffe 100644
--- a/pkg/detectors/zapierwebhook/zapierwebhook.go
+++ b/pkg/detectors/zapierwebhook/zapierwebhook.go
@@ -2,8 +2,8 @@ package zapierwebhook
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/zendeskapi/zendeskapi.go b/pkg/detectors/zendeskapi/zendeskapi.go
index 9438ea38d..abaa94a04 100644
--- a/pkg/detectors/zendeskapi/zendeskapi.go
+++ b/pkg/detectors/zendeskapi/zendeskapi.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/zenkitapi/zenkitapi.go b/pkg/detectors/zenkitapi/zenkitapi.go
index 17bb385ab..a45aa60af 100644
--- a/pkg/detectors/zenkitapi/zenkitapi.go
+++ b/pkg/detectors/zenkitapi/zenkitapi.go
@@ -2,8 +2,8 @@ package zenkitapi
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/zenrows/zenrows.go b/pkg/detectors/zenrows/zenrows.go
index 561919b45..4f71bd371 100644
--- a/pkg/detectors/zenrows/zenrows.go
+++ b/pkg/detectors/zenrows/zenrows.go
@@ -3,8 +3,8 @@ package zenrows
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/zenscrape/zenscrape.go b/pkg/detectors/zenscrape/zenscrape.go
index 08b93f7cd..651a8099f 100644
--- a/pkg/detectors/zenscrape/zenscrape.go
+++ b/pkg/detectors/zenscrape/zenscrape.go
@@ -3,9 +3,10 @@ package zenscrape
import (
"context"
"net/http"
- "regexp"
"strings"
+ regexp "github.com/wasilibs/go-re2"
+
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
"github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"
diff --git a/pkg/detectors/zenserp/zenserp.go b/pkg/detectors/zenserp/zenserp.go
index 5ae78e945..a5f9b3b31 100644
--- a/pkg/detectors/zenserp/zenserp.go
+++ b/pkg/detectors/zenserp/zenserp.go
@@ -2,9 +2,9 @@ package zenserp
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"time"
diff --git a/pkg/detectors/zeplin/zeplin.go b/pkg/detectors/zeplin/zeplin.go
index fe41d8d98..84e3c14f1 100644
--- a/pkg/detectors/zeplin/zeplin.go
+++ b/pkg/detectors/zeplin/zeplin.go
@@ -3,8 +3,8 @@ package zeplin
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/zerobounce/zerobounce.go b/pkg/detectors/zerobounce/zerobounce.go
index 936b1431a..3ecaa1a8f 100644
--- a/pkg/detectors/zerobounce/zerobounce.go
+++ b/pkg/detectors/zerobounce/zerobounce.go
@@ -2,9 +2,9 @@ package zerobounce
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"io"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/zerotier/zerotier.go b/pkg/detectors/zerotier/zerotier.go
index 5c094a1cf..15462eabf 100644
--- a/pkg/detectors/zerotier/zerotier.go
+++ b/pkg/detectors/zerotier/zerotier.go
@@ -3,8 +3,8 @@ package zerotier
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/zipapi/zipapi.go b/pkg/detectors/zipapi/zipapi.go
index 2f25c2e8a..9ad753f9e 100644
--- a/pkg/detectors/zipapi/zipapi.go
+++ b/pkg/detectors/zipapi/zipapi.go
@@ -4,8 +4,8 @@ import (
"context"
b64 "encoding/base64"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/zipbooks/zipbooks.go b/pkg/detectors/zipbooks/zipbooks.go
index ba7d5801f..07078135a 100644
--- a/pkg/detectors/zipbooks/zipbooks.go
+++ b/pkg/detectors/zipbooks/zipbooks.go
@@ -3,8 +3,8 @@ package zipbooks
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/zipcodeapi/zipcodeapi.go b/pkg/detectors/zipcodeapi/zipcodeapi.go
index a4949f1c1..f42dcf781 100644
--- a/pkg/detectors/zipcodeapi/zipcodeapi.go
+++ b/pkg/detectors/zipcodeapi/zipcodeapi.go
@@ -3,8 +3,8 @@ package zipcodeapi
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/zipcodebase/zipcodebase.go b/pkg/detectors/zipcodebase/zipcodebase.go
index f153a8a2f..354ed3448 100644
--- a/pkg/detectors/zipcodebase/zipcodebase.go
+++ b/pkg/detectors/zipcodebase/zipcodebase.go
@@ -2,8 +2,8 @@ package zipcodebase
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/zonkafeedback/zonkafeedback.go b/pkg/detectors/zonkafeedback/zonkafeedback.go
index 90160fc78..7d480daec 100644
--- a/pkg/detectors/zonkafeedback/zonkafeedback.go
+++ b/pkg/detectors/zonkafeedback/zonkafeedback.go
@@ -2,8 +2,8 @@ package zonkafeedback
import (
"context"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
diff --git a/pkg/detectors/zulipchat/zulipchat.go b/pkg/detectors/zulipchat/zulipchat.go
index 89f926690..02030d2ed 100644
--- a/pkg/detectors/zulipchat/zulipchat.go
+++ b/pkg/detectors/zulipchat/zulipchat.go
@@ -3,8 +3,8 @@ package zulipchat
import (
"context"
"fmt"
+ regexp "github.com/wasilibs/go-re2"
"net/http"
- "regexp"
"strings"
"github.com/trufflesecurity/trufflehog/v3/pkg/common"