From c0af2235c7ed04549eaedb2b2bd3b77a95be6859 Mon Sep 17 00:00:00 2001 From: Yugay Vasiliy <31739813+Vas9ka@users.noreply.github.com> Date: Mon, 8 Jul 2024 11:42:42 +0200 Subject: [PATCH] Adapted provenance search to handle compound sites (#488) --- src/fragmentarium/ui/SearchForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fragmentarium/ui/SearchForm.tsx b/src/fragmentarium/ui/SearchForm.tsx index 2b52f5e11..9a8243b53 100644 --- a/src/fragmentarium/ui/SearchForm.tsx +++ b/src/fragmentarium/ui/SearchForm.tsx @@ -171,7 +171,7 @@ class SearchForm extends Component { : '', scriptPeriod: state.scriptPeriod, genre: state.genre, - site: state.site ? state.site.split(' ')[0] : '', + site: state.site ? state.site.split(/\[|\]/)[0] : '', project: state.project, }, (value) => !value