bcp-47-match
Advanced tools
Comparing version 1.0.0 to 1.0.1
'use strict' | ||
/* eslint-disable no-constant-condition */ | ||
// See https://tools.ietf.org/html/rfc4647#section-3.1 | ||
@@ -87,3 +85,5 @@ // for more information on the algorithms. | ||
/* eslint-disable no-constant-condition */ | ||
while (true) { | ||
/* eslint-enable no-constant-condition */ | ||
if (range === asterisk || tag === range) { | ||
@@ -90,0 +90,0 @@ return true |
{ | ||
"name": "bcp-47-match", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Match BCP 47 language tags with language ranges per RFC 4647", | ||
@@ -21,5 +21,5 @@ "license": "MIT", | ||
"bugs": "https://github.com/wooorm/bcp-47-match/issues", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
"contributors": [ | ||
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)" | ||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" | ||
], | ||
@@ -33,12 +33,12 @@ "files": [ | ||
"chalk": "^2.4.1", | ||
"nyc": "^12.0.0", | ||
"nyc": "^14.0.0", | ||
"prettier": "^1.11.0", | ||
"remark-cli": "^5.0.0", | ||
"remark-cli": "^6.0.0", | ||
"remark-preset-wooorm": "^4.0.0", | ||
"tape": "^4.0.0", | ||
"tinyify": "^2.4.3", | ||
"xo": "^0.21.0" | ||
"xo": "^0.24.0" | ||
}, | ||
"scripts": { | ||
"format": "remark . -qfo && prettier --write '**/*.js' && xo --fix", | ||
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix", | ||
"build-bundle": "browserify index.js -s bcp47Match > bcp-47-match.js", | ||
@@ -45,0 +45,0 @@ "build-mangle": "browserify index.js -s bcp47Match -p tinyify > bcp-47-match.min.js", |
<!--lint disable no-html--> | ||
# bcp-47-match [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov] | ||
# bcp-47-match | ||
[![Build][build-badge]][build] | ||
[![Coverage][coverage-badge]][coverage] | ||
[![Downloads][downloads-badge]][downloads] | ||
[![Size][size-badge]][size] | ||
Match [BCP 47][spec] language tags with “language ranges” per [RFC 4647][match], | ||
@@ -199,15 +204,23 @@ as done by the `:lang()` pseudo-class in CSS, or the `Accept-Language` HTTP | ||
[travis-badge]: https://img.shields.io/travis/wooorm/bcp-47-match.svg | ||
[build-badge]: https://img.shields.io/travis/wooorm/bcp-47-match.svg | ||
[travis]: https://travis-ci.org/wooorm/bcp-47-match | ||
[build]: https://travis-ci.org/wooorm/bcp-47-match | ||
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/bcp-47-match.svg | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/bcp-47-match.svg | ||
[codecov]: https://codecov.io/github/wooorm/bcp-47-match | ||
[coverage]: https://codecov.io/github/wooorm/bcp-47-match | ||
[downloads-badge]: https://img.shields.io/npm/dm/bcp-47-match.svg | ||
[downloads]: https://www.npmjs.com/package/bcp-47-match | ||
[size-badge]: https://img.shields.io/bundlephobia/minzip/bcp-47-match.svg | ||
[size]: https://bundlephobia.com/result?p=bcp-47-match | ||
[npm]: https://docs.npmjs.com/cli/install | ||
[license]: LICENSE | ||
[license]: license | ||
[author]: http://wooorm.com | ||
[author]: https://wooorm.com | ||
@@ -214,0 +227,0 @@ [bcp47]: https://github.com/wooorm/bcp-47 |
16320
150
235