1
0
mirror of synced 2025-12-30 03:01:36 -05:00

Merge pull request #32430 from github/repo-sync

Repo sync
This commit is contained in:
docs-bot
2024-04-08 12:57:06 -04:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -11,7 +11,6 @@ The {% data variables.product.prodname_actions %} service supports a subset of a
- `SoutheastAsia`
- `SwitzerlandNorth`
- `UkSouth`
- `WestEurope`
Azure private networking supports GPU runners in the following regions.

View File

@@ -27,6 +27,7 @@
*
*/
import { strictEqual } from 'node:assert'
import fs from 'fs'
import path from 'path'
@@ -296,5 +297,9 @@ function escapeRegex(string: string) {
}
function isFloat(x: any) {
return !!(parseFloat(x) + 1)
return !!(Number(x) + 1)
}
strictEqual(isFloat('1.2'), true)
strictEqual(isFloat('10'), true)
strictEqual(isFloat('notatall'), false)
strictEqual(isFloat('2fa'), false)