Skip to main content

Variable: PY_INT

const PY_INT: RegExp

Defined in: src/producers/espn_basketball_box.ts:125

The strings Python int(s) accepts after stripping whitespace: an optional sign, digits, _ digit-group separators.

Remarks​

Test against s.trim(); the pattern itself allows no surrounding whitespace.

Example​

PY_INT.test("1_000"); // true
PY_INT.test("1.0"); // false