Skip to content

Commit

Permalink
fix: regex should match exactly .sqlx
Browse files Browse the repository at this point in the history
  • Loading branch information
mercxry committed Mar 12, 2024
1 parent 0b6d3a7 commit 31dc499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linguist/generated.rb
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ def extract_html_meta(match)
#
# Returns true or false.
def generated_sqlx_query?
!!name.match(/^.*\.sqlx\/query-.+\.json$/)
!!name.match(/(?:^|.*\/)\.sqlx\/query-.+\.json$/)
end
end
end

0 comments on commit 31dc499

Please sign in to comment.