Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 03acdeb

Browse files
authored
Update hasTimes.js
fix: use logical OR instead of bitwise OR operator
1 parent 835855a commit 03acdeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/hasTimes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class hasTimes extends Base {
8484
if(delMatch && delMatch[2]) created = moment(delMatch[2]);
8585

8686
// collect minus items
87-
let minusFlag = subMatch | delMatch;
87+
let minusFlag = subMatch || delMatch;
8888
let minusMatch = minusFlag ? subMatch ? subMatch[1] : delMatch ? delMatch[1] : 0 : 0;
8989

9090
// create a time string and a time object

0 commit comments

Comments
 (0)