Skip to the content

address-plusアドレスプラス

Parse, validate, format and compare addresses locally, add country modules and mount an optional native form field.

address-plus extends the parse-address style with typed results, validation, formatting and country modules. About the name

Contents

Reference · Parsing, formatting and shared types

ISLAND_TYPE_PATTERNconstant

The words for an island, for addresses on one (Island, Isle, Île).

Import it

import { ISLAND_TYPE_PATTERN } from "@johnmorrisdotca/address-plus";

Definition

const ISLAND_TYPE_PATTERN: RegExp = /^(island|is\.?|isl\.?|isle\.?|ils\.?)$/i

Examples

import { ISLAND_TYPE_PATTERN } from "@johnmorrisdotca/address-plus";

console.log(ISLAND_TYPE_PATTERN.test("Island"));
// → true
true

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/address-plus 1.7.0.