1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools: fix v check-md . on windows too (skip thirdparty/ and the CHANGELOG)

This commit is contained in:
Delyan Angelov 2023-01-30 18:55:56 +02:00
parent 1470eb6fa4
commit 9c78e3c289
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -96,7 +96,8 @@ fn md_file_paths(dir string) []string {
mut files_to_check := []string{}
md_files := os.walk_ext(dir, '.md')
for file in md_files {
if file.contains_any_substr(['/thirdparty/', 'CHANGELOG']) {
nfile := file.replace('\\', '/')
if nfile.contains_any_substr(['/thirdparty/', 'CHANGELOG']) {
continue
}
files_to_check << file