simongregory / is-programme-id

Tests if a string is in the format of a BBC programme identifier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is-programme-id

Tests if a string is in the format of a BBC programme identifier. It does not check if it represents a known programme.

Install

$ yarn add is-programme-id

Usage

const isProgrammeID = require('isProgrammeID');

isProgrammeID('p050hssx');   // true
isProgrammeID('abc');   // false

About

Tests if a string is in the format of a BBC programme identifier

License:ISC License


Languages

Language:JavaScript 100.0%