Skip to content

Commit fef0196

Browse files
feat: allow search on UUID v7 and v8 (#646)
1 parent 1a73eb6 commit fef0196

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- beta
88
- 7.x.x
9+
- 8.x.x
910
pull_request:
1011

1112
env:
@@ -73,7 +74,7 @@ jobs:
7374
name: Release
7475
runs-on: ubuntu-latest
7576
needs: [lint, test]
76-
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/7.x.x')
77+
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')
7778
steps:
7879
- uses: actions/checkout@v2
7980
with:

app/services/forest_liana/search_query_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module ForestLiana
22
class SearchQueryBuilder
3-
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
3+
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
44

55
attr_reader :fields_searched
66

0 commit comments

Comments
 (0)