generic-db: Improved SQLite file signature matcher to match exactly beginning of the document.

patch-1
Michal Mikolas 2024-03-18 22:51:49 +01:00
parent d81a235f97
commit db3ccee4aa
1 changed files with 3 additions and 4 deletions

View File

@ -147,10 +147,9 @@ http:
- 200
# SQLite file always starts with "SQLite format {sqlite_version}"
- type: word
part: body
words:
- "SQLite format "
- type: dsl
dsl:
- 'startswith(body, "SQLite format ")'
# SQLite file usually contains "CREATE TABLE", meaning there is at least one table
- type: word