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

Qiskit / qiskit / 21709807976
88%

Build:
DEFAULT BRANCH: main
Ran 05 Feb 2026 12:03PM UTC
Jobs 1
Files 897
Run time 2min
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

05 Feb 2026 11:06AM UTC coverage: 87.97% (+0.007%) from 87.963%
21709807976

push

github

web-flow
Fix digit escaping in OpenQASM 3 identifier (#15305)

* Fix digit escaping in OpenQASM 3 identifier

The previous regex used `\w` as the match for an initial id character,
and `[\w\d]` for continuations.  Actually, `\w` matches any character
that `str.isalnum` returns `True` plus the underscore, which includes
all Unicode characters in the "digit" class, so is a superset of `\d`.
The match `\d` is only the Unicode group `[Nd]` (decimal digits), which
is not as complete as the entire `[N?]` set, so we can't even use
variants of `[^\W\d_]` or the like to get something usable; we'd have to
pull in the third-party `regex` package or the like to make an exact
match.

This instead causes the Qiskit exporter to allow only a subset of valid
OQ3 identifiers on export in lieu of _complete_ matching.  Additionally,
we now do not accidentally include digits in the allowed set of initial
characters for IDs (but do allow then in continuations).

* Add tests of multiple consecutive characters

* Fix broken test

4 of 4 new or added lines in 1 file covered. (100.0%)

6 existing lines in 2 files now uncovered.

100019 of 113697 relevant lines covered (87.97%)

1163770.87 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
72.95
0.08% crates/circuit/src/parameter/symbol_expr.rs
5
92.54
0.0% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 21709807976.1 05 Feb 2026 12:03PM UTC 897
87.97
GitHub Action Run
Source Files on build 21709807976
  • Tree
  • List 897
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21709807976
  • cc675b6d on github
  • Prev Build on gh-readonly-queue/main/pr-15648-7dde3e1fd6e292ff229411814f29aadfd73b72b6 (#21670746370)
  • Next Build on main (#21713705039)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc