Commit b474d64
authored
fix: parse SNAPSHOT versions with extra qualifier segments (#24931)
setVersion only matched the \d+.\d+-SNAPSHOT shape, so a version with an
extra qualifier such as 25.3.tsclient-SNAPSHOT produced no match and
crashed on null[2], taking down the whole CI matrix computation before
any job ran. Broaden the pattern to any -SNAPSHOT version and guard
against a missing match so a mismatch degrades gracefully.1 parent 626a502 commit b474d64
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
243 | 250 | | |
244 | 251 | | |
245 | 252 | | |
| |||
0 commit comments