Skip to content

Commit 94aba91

Browse files
authored
Merge pull request #32430 from github/repo-sync
Repo sync
2 parents 492de5d + 538dcc2 commit 94aba91

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

data/reusables/actions/azure-vnet-supported-regions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ The {% data variables.product.prodname_actions %} service supports a subset of a
1111
- `SoutheastAsia`
1212
- `SwitzerlandNorth`
1313
- `UkSouth`
14-
- `WestEurope`
1514

1615
Azure private networking supports GPU runners in the following regions.
1716

src/data-directory/scripts/find-orphaned-features/find.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
*
2828
*/
2929

30+
import { strictEqual } from 'node:assert'
3031
import fs from 'fs'
3132
import path from 'path'
3233

@@ -296,5 +297,9 @@ function escapeRegex(string: string) {
296297
}
297298

298299
function isFloat(x: any) {
299-
return !!(parseFloat(x) + 1)
300+
return !!(Number(x) + 1)
300301
}
302+
strictEqual(isFloat('1.2'), true)
303+
strictEqual(isFloat('10'), true)
304+
strictEqual(isFloat('notatall'), false)
305+
strictEqual(isFloat('2fa'), false)

0 commit comments

Comments
 (0)