Skip to content

Commit

Permalink
fix chapter filter
Browse files Browse the repository at this point in the history
  • Loading branch information
abelpz committed Jan 7, 2023
1 parent 463611d commit 6073fa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/build_number
Original file line number Diff line number Diff line change
@@ -1 +1 @@
210-1dcfb53
211-463611d
2 changes: 1 addition & 1 deletion src/components/translatable/TranslatableTSV.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default function TranslatableTSV({
display: (filterList, onChange, _index, column, filterData) => {
const filterValues = filterData[REF_FILTER_INDEX].reduce(
(cv, reference, i) => {
const [chapter, verse] = reference.replace('\t', "").split(":");
const [chapter, verse] = reference.match(/(?:\\t)*([\d\w]+):([\d\w]+)/)?.[0].split(":");
if(!cv[chapter]) cv[chapter] = [];
cv[chapter].push(verse)
return cv;
Expand Down

0 comments on commit 6073fa6

Please sign in to comment.