Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix detection of deleted time
Changed Regex from "subtracted ... time" to "deleted ... time".

Signed-off-by: Daniel Hahn <[email protected]>
  • Loading branch information
danielh186 committed Dec 4, 2024
commit b89393adc5203440f98738363c3857529da8133a
2 changes: 1 addition & 1 deletion src/models/hasTimes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Base = require('./base');
const Time = require('./time');

const regex = /added (.*) of time spent(?: at (.*))?/i;
const subRegex = /subtracted (.*) of time spent(?: at (.*))?/i;
const subRegex = /deleted (.*) of spent time(?: from (.*))?/i;
const removeRegex = /Removed time spent/i;

/**
Expand Down