Skip to content

Commit

Permalink
Merge pull request #1508 from unfoldingWord/abelpz-fix-chapter-filter
Browse files Browse the repository at this point in the history
fix chapter filter
  • Loading branch information
Joel-C-Johnson authored Jan 9, 2023
2 parents 463611d + 6073fa6 commit 3b837a7
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 3b837a7

Please sign in to comment.