Skip to content

Commit

Permalink
Fixes regex
Browse files Browse the repository at this point in the history
  • Loading branch information
iamchughmayank committed Dec 25, 2024
1 parent 2993c49 commit 72d7144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/validations/sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ const checks: Checks = {
"We suggest you search for all 'ENGINE=X' entries and replace them with 'ENGINE=InnoDB'!",
},
autoIncrement: {
matcher: /^CREATE TABLE IF NOT EXISTS `?([a-z0-9_]+)`?\s+\(.*?AUTO_INCREMENT.*?\)/i,
matcher: /\s(NOT NULL AUTO_INCREMENT,)/i,
matchHandler: ( _, results ) => ( { text: results[ 1 ] } ),
outputFormatter: requiredCheckFormatter,
results: [],
Expand Down

0 comments on commit 72d7144

Please sign in to comment.