• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

go-playground / validator / 44644256455
73%
v8: 100%

Build:
Build:
LAST BUILD BRANCH: fix-unique-unhashable-1674
DEFAULT BRANCH: v8
Ran 20 Nov 2026 12:15AM UTC
Jobs 1
Files 37
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Nov 2026 12:14AM UTC coverage: 72.649%. Remained the same
44644256455

push

github

web-flow
fix: reject non-digit characters in cve validator sequence number (#1611)

The `cve` validator's regex uses `[^0]` (any character except `0`) in
the three leading-zero sequence-number branches, where a non-zero
**digit** `[1-9]` was intended — every other branch uses `\d` or
`[1-9]`. So a sequence number containing a non-digit passes validation:

```
CVE-2020-0a00   valid  ❌
CVE-2020-0/00   valid  ❌
CVE-2020-00a0   valid  ❌
CVE-2020-000z   valid  ❌
```

A CVE ID's sequence number is decimal digits only (the syntax page
linked in the code comment). Replacing `[^0]` with `[1-9]` in the three
branches rejects the non-digit cases; the digit-only sequences those
branches already matched are unchanged, so the existing tests still
pass. Added the non-digit cases to `TestCveFormatValidation`.

15658 of 21553 relevant lines covered (72.65%)

89.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44644256455.1 20 Nov 2026 12:15AM UTC 37
72.65
GitHub Action Run
Source Files on build 44644256455
  • Tree
  • List 37
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • df1d7ba6 on github
  • Prev Build on master (#44392760303)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc