Skip to content

Commit

Permalink
feat: allow search on UUID v7 and v8 (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasalexandre9 committed Jan 29, 2024
1 parent 1a73eb6 commit fef0196
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- beta
- 7.x.x
- 8.x.x
pull_request:

env:
Expand Down Expand Up @@ -73,7 +74,7 @@ jobs:
name: Release
runs-on: ubuntu-latest
needs: [lint, test]
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/7.x.x')
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/7.x.x' || github.ref == 'refs/heads/8.x.x')
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion app/services/forest_liana/search_query_builder.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ForestLiana
class SearchQueryBuilder
REGEX_UUID = /\A[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\z/i
REGEX_UUID = /\A[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\z/i

attr_reader :fields_searched

Expand Down

0 comments on commit fef0196

Please sign in to comment.