Skip to content

feat: add isDuration validator for ms-compatible duration strings - #2674

Closed
Azarcodex wants to merge 1 commit into
validatorjs:masterfrom
Azarcodex:feat/isDuration
Closed

feat: add isDuration validator for ms-compatible duration strings#2674
Azarcodex wants to merge 1 commit into
validatorjs:masterfrom
Azarcodex:feat/isDuration

feat: add isDuration validator for ms-compatible duration strings

839c8a2
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL failed Mar 3, 2026 in 4s

1 new alert including 1 high severity security vulnerability

New alerts in code changed by this pull request

Security Alerts:

  • 1 high

See annotations below for details.

View all branch alerts.

Annotations

Check failure on line 18 in src/lib/isDuration.js

See this annotation in the file changed.

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on
library input
may run slow on strings with many repetitions of '0'.