Skip to content

Commit

Permalink
fix: regex should be query- not queries-
Browse files Browse the repository at this point in the history
  • Loading branch information
mercxry committed Mar 12, 2024
1 parent f0f2cc6 commit 0b6d3a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/linguist/generated.rb
Original file line number Diff line number Diff line change
Expand Up @@ -829,15 +829,15 @@ def extract_html_meta(match)

# Internal: Is this a generated SQLx query file?
#
# SQLx is a Rust SQL library which generates `**/.sqlx/queries-*.json` files
# SQLx is a Rust SQL library which generates `**/.sqlx/query-*.json` files
# in offline mode (enabled by default).
#
# These are used to be able to compile a project without requiring
# the development database to be online.
#
# Returns true or false.
def generated_sqlx_query?
!!name.match(/^.*\.sqlx\/queries-.+\.json$/)
!!name.match(/^.*\.sqlx\/query-.+\.json$/)
end
end
end

0 comments on commit 0b6d3a7

Please sign in to comment.