Uh oh!
There was an error while loading. Please reload this page.
test: fix zlib version regex - #48227
Conversation
lpinca
commented
May 28, 2023
Fixes CI for #48218. |
nodejs-github-bot
commented
May 28, 2023
There was a problem hiding this comment.
| assert.match(process.versions.zlib,/^\d+\.\d+\.\d+(?:\.\d+)?(?:-.*)?$/); | |
| assert.match(process.versions.zlib,/^\d+(?:\.\d+){2,3}(?:-.*)?$/); |
There was a problem hiding this comment.
For consistency I would prefer to keep it as is, see line 72. I'm ok with a a new PR to shorten both regex.
There was a problem hiding this comment.
For me, the reason the first regex wasn't shortened that way is that it would complicate it more than anything else. Unlike this one, which is already a little longer, and in my opinion my suggestion is just as consistent as this regex. But I understand and I don't mind a new PR.
There was a problem hiding this comment.
I'm talking about this one
but I have no strong opinion. I will apply your suggestion.There was a problem hiding this comment.
Oh, you're completly right, sorry for my misunderstanding.
Add support for subrevision in the regular expression for the zlib version. Refs: https://github.com/madler/zlib/blob/48c3741002ac/zlib.h#L40
nodejs-github-bot
commented
May 28, 2023
nodejs-github-bot
commented
May 30, 2023
Landed in 6a6b3c5 |
Add support for subrevision in the regular expression for the zlib version. Refs: https://github.com/madler/zlib/blob/48c3741002ac/zlib.h#L40 PR-URL: #48227 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Add support for subrevision in the regular expression for the zlib version. Refs: https://github.com/madler/zlib/blob/48c3741002ac/zlib.h#L40 PR-URL: #48227 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Add support for subrevision in the regular expression for the zlib version. Refs: https://github.com/madler/zlib/blob/48c3741002ac/zlib.h#L40 PR-URL: nodejs#48227 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Add support for subrevision in the regular expression for the zlib version. Refs: https://github.com/madler/zlib/blob/48c3741002ac/zlib.h#L40 PR-URL: nodejs#48227 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Add support for subrevision in the regular expression for the zlib version. Refs: https://github.com/madler/zlib/blob/48c3741002ac/zlib.h#L40 PR-URL: nodejs#48227 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Add support for subrevision in the regular expression for the zlib version.
Refs: https://github.com/madler/zlib/blob/48c3741002ac/zlib.h#L40