Skip to content

Commit

Permalink
fix: add typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
Gby56 committed Apr 16, 2024
1 parent f58f19f commit 19bc956
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/detector/detectors/js_restify.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ class DetectorJsRestify < Detector
true
elsif (filename.includes? ".js") && (file_contents.includes? "require(\"restify\")")
true
elsif (filename.includes? ".ts") && (file_contents.includes? "server")
true
elsif (filename.includes? ".ts") && (file_contents.includes? "require(\"restify\")")
true
else
false
end
Expand Down

0 comments on commit 19bc956

Please sign in to comment.