Skip to content

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

License

Notifications You must be signed in to change notification settings

simongregory/is-programme-id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published