mirror of
https://github.com/github/semantic.git
synced 2024-12-27 08:54:14 +03:00
Parse js files too
This commit is contained in:
parent
6cecc8d3de
commit
3b551f5741
@ -55,7 +55,7 @@ readBlobsFromHandle = fmap toBlobs . readFromHandle
|
||||
|
||||
readBlobsFromDir :: MonadIO m => FilePath -> m [Blob.Blob]
|
||||
readBlobsFromDir path = do
|
||||
paths <- liftIO (glob (path </> "**/*.rb"))
|
||||
paths <- liftIO (globDir1 (compile "[^vendor]**/*[.rb|.js]") path)
|
||||
let paths' = catMaybes $ fmap (\p -> (p,) . Just <$> languageForFilePath p) paths
|
||||
traverse (uncurry readFile) paths'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user