Skip to content

Commit

Permalink
Deactivate partial references for simple numbers for now
Browse files Browse the repository at this point in the history
as this leads to too many false positives
  • Loading branch information
renehamburger committed Jul 24, 2018
1 parent f4539f9 commit 94710ae
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/blinx.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,12 @@ export class Blinx {
if (possibleReferenceWithPrefix) {
this.parser.bcv.parse_with_context(possibleReferenceWithPrefix, previousPassage);
}
// If none available or unsuccessful, check for possible reference starting with number(s)
if (!possibleReferenceWithPrefix || !this.parser.bcv.osis()) {
this.parser.bcv.parse_with_context(possibleReferenceWithoutPrefix, previousPassage);
offset = match.index;
}
// Deactivate recognition of simple numbers for now, as this leads to too many false positives
// // If none available or unsuccessful, check for possible reference starting with number(s)
// if (!possibleReferenceWithPrefix || !this.parser.bcv.osis()) {
// this.parser.bcv.parse_with_context(possibleReferenceWithoutPrefix, previousPassage);
// offset = match.index;
// }
// If either successful, adjust the indices due to the slice above and handle the reference
const refs = this.parser.bcv.osis_and_indices();
if (refs.length) {
Expand Down

0 comments on commit 94710ae

Please sign in to comment.