Skip to content

Commit

Permalink
Fix ScrVers.equals()
Browse files Browse the repository at this point in the history
  • Loading branch information
irahopkinson committed Jul 3, 2023
1 parent 9d59230 commit b132bbe
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sillsdev/scripture",
"version": "1.1.1",
"version": "1.1.2",
"description": "TypeScript partial port of `libpalaso/SIL.Scripture`",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
Expand Down
9 changes: 3 additions & 6 deletions src/scr-vers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,8 @@ export class ScrVers {
return this._type;
}

clearExcludedVerses(): void {
// do nothing
}

clearVerseSegments(): void {
// do nothing
equals(scrVers: ScrVers): boolean {
if (!scrVers.type || !this.type) return false;
return scrVers.type === this.type;
}
}
4 changes: 3 additions & 1 deletion src/verse-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ export class VerseRef {
verseRef._chapterNum === this._chapterNum &&
verseRef._verseNum === this._verseNum &&
verseRef._verse === this._verse &&
verseRef.versification === this.versification
verseRef.versification != null &&
this.versification != null &&
verseRef.versification.equals(this.versification)
);
}

Expand Down

0 comments on commit b132bbe

Please sign in to comment.