Skip to content

Commit 06fcd16

Browse files
committed
fix link check for .exe files
1 parent aa6e893 commit 06fcd16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test_modules/checkContent/checkContent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = function(file, line, callback) {
1414
new RegExp('[^!]\\[.*?(here|there|file|folder|this|page)\\]\\((.*?)\\)'), // avoid useless url names
1515
new RegExp('\\[(.{1,2}|\\s{1,})\\]\\(.*\\)'), // conventions of alt-text for images are not observed (at least 3 characters, not only spaces)
1616
new RegExp('\\>###'), // avoid message box typo //(^\s*(\>){1,})\s*(\w){1,}
17-
new RegExp('(.exe)(\\b)'), // prohibit suspicious filetypes
17+
new RegExp('\\[.*\]\\(.*\\.exe\\)'), // prohibit suspicious filetypes
1818
new RegExp('\\[.*\\]\\(\\)') //\[.*\]\(\)
1919
]
2020

0 commit comments

Comments
 (0)