File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/data-directory/scripts/find-orphaned-features Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff 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
1615Azure private networking supports GPU runners in the following regions.
1716
Original file line number Diff line number Diff line change 2727 *
2828 */
2929
30+ import { strictEqual } from 'node:assert'
3031import fs from 'fs'
3132import path from 'path'
3233
@@ -296,5 +297,9 @@ function escapeRegex(string: string) {
296297}
297298
298299function 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 )
You can’t perform that action at this time.
0 commit comments