Skip to content

Commit

Permalink
fix(base): strip semicolon when tokenizing search terms
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Apr 26, 2021
1 parent 009ce54 commit 1a40da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/base/src/search/common/tokenize.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const SPECIAL_CHARS = /([^!@#$%^&*(),\\/?":{}|[\]+<>\s-])+/g
const SPECIAL_CHARS = /([^!@#$%^&*(),\\/?";:{}|[\]+<>\s-])+/g
const STRIP_EDGE_CHARS = /(^[.]+)|([.]+$)/

export function tokenize(string: string): string[] {
Expand Down

0 comments on commit 1a40da9

Please sign in to comment.