Skip to content

Commit 87e9edb

Browse files
authored
chore: added code block with dollar sign check for 1-3 backticks (#492)
1 parent 0deb606 commit 87e9edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/job-scanner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const jobKeywords = [
4242

4343
const currencyKeywords = ["₹", "€", "$"];
4444
const hasCodeBlockWithDollarSign = (content: string): boolean => {
45-
const codeBlockRegex = /```[\s\S]*?\$[\s\S]*?```/g;
45+
const codeBlockRegex = /(`{1,3})([\s\S]*?\$[\s\S]*?)\1/g;
4646
return codeBlockRegex.test(content);
4747
};
4848

0 commit comments

Comments
 (0)