File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ fn test_compile_ignore_paths() {
16
16
17
17
/// A list of path fragments, file names, file extensions as Regex.
18
18
/// Files with the path matching any of regex from this list are ignored.
19
- const IGNORE_PATHS : [ & str ; 25 ] = [
19
+ const IGNORE_PATHS : [ & str ; 39 ] = [
20
20
// known framework paths
21
21
r#"node_modules[/\\]"# ,
22
22
r#"angular[/\\]README\.md"# ,
@@ -27,6 +27,22 @@ const IGNORE_PATHS: [&str; 25] = [
27
27
r#"\.jpg$"# ,
28
28
r#"\.jpeg$"# ,
29
29
r#"\.gif$"# ,
30
+ r#"\.svg$"# ,
31
+ r#"\.bmp$"# ,
32
+ r#"\.tif$"# ,
33
+ r#"\.tiff$"# ,
34
+ r#"\.eps$"# ,
35
+ r#"\.webp$"# ,
36
+ // audio / video
37
+ r#"\.mp4$"# ,
38
+ r#"\.mp3$"# ,
39
+ r#"\.mpeg$"# ,
40
+ // fonts
41
+ r#"\.ttf$"# ,
42
+ r#"\.otf$"# ,
43
+ r#"\.eot$"# ,
44
+ r#"\.woff$"# ,
45
+ r#"\.woff2$"# ,
30
46
// documents
31
47
r#"\.pdf$"# ,
32
48
r#"\.doc$"# ,
Original file line number Diff line number Diff line change 16
16
],
17
17
"block_comments_end" : [
18
18
" (?i)\\ */\\ s*$"
19
+ ],
20
+ "refs" : [
21
+ " ^[[:blank:]]*import[[:blank:]]+.*[[:blank:]]*['\" ]([@A-Za-z0-9_][@A-Za-z0-9_\\ -\\ .]+).*['\" ]" ,
22
+ " [[:blank:]]*require[[:blank:]]*\\ ([[:blank:]]*['\" ]([@A-Za-z0-9_][@A-Za-z0-9_\\ -\\ .]+)[^'\" ]*['\" ][[:blank:]]*\\ )"
19
23
]
20
24
}
You can’t perform that action at this time.
0 commit comments