by eesmith · 6y ago · 0 comments
Though when I think of "detector" I think more of https://en.wikipedia.org/wiki/File_(command) and not something which verifies the file is in the correct format.
file 'setupTests.ts' setupTests.ts: Java source, ASCII text
I wouldn't put too much trust in file.
But it will work fine for PDFs, often enough.
0 regex \^import.*;$ Java source