yamltest 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/core.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yamltest",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Declarative YAML-based HTTP, command, and Kubernetes test runner",
5
5
  "main": "./src/index.js",
6
6
  "bin": {
package/src/core.js CHANGED
@@ -1193,7 +1193,7 @@ function parseCurlResponse(curlOutput) {
1193
1193
 
1194
1194
  // Parse status line
1195
1195
  if (lines.length > 0 && lines[0].startsWith('HTTP/')) {
1196
- const statusMatch = lines[0].match(/HTTP\/\d+\.\d+\s+(\d+)/);
1196
+ const statusMatch = lines[0].match(/HTTP\/\d+(?:\.\d+)?\s+(\d+)/);
1197
1197
  if (statusMatch) {
1198
1198
  statusCode = parseInt(statusMatch[1], 10);
1199
1199
  }