Skip to content

Commit 6e5c1b4

Browse files
authored
Merge pull request #36 from ndu2/34-gtt-module-could-not-recognized-rfc2822-or-iso-format
adapt gitlab note parse regex to gitlab 18.x
2 parents ddfae34 + e377e67 commit 6e5c1b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/models/hasTimes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import Base from './base.js';
44
import Time from './time.js';
55
import DayReport from './dayReport.js';
66

7-
const regex = /added (.*) of time spent(?: at (.*))?/i;
8-
const subRegex = /subtracted (.*) of time spent(?: at (.*))?/i;
9-
const delRegex = /deleted (.*) of spent time(?: from (.*))?/i;
7+
const regex = /added (.*) of time spent(?: at ([0-9-]*))?/i;
8+
const subRegex = /subtracted (.*) of time spent(?: at ([0-9-]*))?/i;
9+
const delRegex = /deleted (.*) of spent time(?: from ([0-9-]*))?/i;
1010
const removeRegex = /Removed time spent/i;
1111

1212
/**

0 commit comments

Comments
 (0)