mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
10 lines
242 B
TypeScript
10 lines
242 B
TypeScript
// Loaded from https://deno.land/x/segno@v1.1.0/lib/validations/isPort.ts
|
|
|
|
|
|
// @ts-ignore allowing typedoc to build
|
|
import { isInt } from './isInt.ts';
|
|
|
|
export const isPort = (str: string) => {
|
|
return isInt(str, { min: 0, max: 65535 });
|
|
};
|