Skip to content

Commit 1cf22a8

Browse files
committed
revert jdbc changes and bugbot fix
1 parent dacf850 commit 1cf22a8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/detectors/jdbc/jdbc.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ var (
5353
// Matches typical JDBC connection strings.
5454
// The terminal character class additionally excludes () and & to avoid
5555
// capturing surrounding delimiters (e.g. "(jdbc:…)" or "…&user=x&").
56-
// TODO: revert before merging — regex intentionally loosened to trigger corpora test CI on this PR.
57-
keyPat = regexp.MustCompile(`(?i)[\w]{3,10}:[^\s"'<>,{}[\]]{10,511}[^\s"'<>,{}[\]()&]`)
56+
keyPat = regexp.MustCompile(`(?i)jdbc:[\w]{3,10}:[^\s"'<>,{}[\]]{10,511}[^\s"'<>,{}[\]()&]`)
5857
)
5958

6059
// Keywords are used for efficiently pre-filtering chunks.

scripts/test/detector_corpora_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ scan() {
8686
--print-avg-detector-time \
8787
"${INCLUDE_FLAG[@]}" \
8888
stdin >> "$OUTPUT_JSONL" 2>> "$STDERR_FILE"
89+
wait
8990
else
9091
unzstd -c "$input" 2>> "$STDERR_FILE" \
9192
| jq -r .content 2>> "$STDERR_FILE" \

0 commit comments

Comments
 (0)