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

MUSIC_SQUARE_EAST_PATTERNconstant

Nashville's Music Square East, whose name ends in a directional word that is part of it.

Import it

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

Definition

const MUSIC_SQUARE_EAST_PATTERN: RegExp = /^(.*square)\s+(east)\s*$/i

Examples

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

console.log(MUSIC_SQUARE_EAST_PATTERN.test("1 Music Square East"));
// → 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.