Skip to content

Commit b6c6312

Browse files
committed
Update date regex to be more robust
1 parent ede116b commit b6c6312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/src/queries-logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { throttling } = require("@octokit/plugin-throttling");
55
/* Filtering constants. */
66
const attributeRgx = '([a-z]+)';
77
const operatorRgx = '(<=|>=|[<=>])';
8-
const dateRgx = '[0-9]{4}-[0-9]{2}-[0-9]{2}';
8+
const dateRgx = '[0-9]{4}(?:(?<!-|-[0-9])-[0-9]{0,2}){0,2}';
99
const valueRgx = `(${dateRgx}|[0-9]+)`;
1010
const regex = new RegExp(attributeRgx + operatorRgx + valueRgx);
1111
const mapTable = {

0 commit comments

Comments
 (0)