Skip to content

Commit bf09870

Browse files
committed
relax DSN keyword regex
1 parent 8117824 commit bf09870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/codeKeywords/codeKeywords.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function makeKeywordsClickable(children: React.ReactNode) {
2727
if (ORG_AUTH_TOKEN_REGEX.test(child)) {
2828
makeOrgAuthTokenClickable(arr, child);
2929
} else if (KEYWORDS_REGEX.test(child)) {
30-
const isDSNKeyword = child.startsWith('"___PUBLIC_DSN___"');
30+
const isDSNKeyword = /___PUBLIC_DSN___/.test(child);
3131
makeProjectKeywordsClickable(arr, child, isDSNKeyword);
3232
} else {
3333
arr.push(child);

0 commit comments

Comments
 (0)