Sha256: 6ec528ac582d1dcedc0dcf16e8194b1511ee3bd353335917621df07da492aab5

Contents?: true

Size: 449 Bytes

Versions: 56

Compression:

Stored size: 449 Bytes

Contents

'use strict';

const canonicalProperties = require('unicode-canonical-property-names-ecmascript');
const propertyAliases = require('unicode-property-aliases-ecmascript');

const matchProperty = function(property) {
	if (canonicalProperties.has(property)) {
		return property;
	}
	if (propertyAliases.has(property)) {
		return propertyAliases.get(property);
	}
	throw new Error(`Unknown property: ${ property }`);
};

module.exports = matchProperty;

Version data entries

56 entries across 55 versions & 11 rubygems

Version Path
immosquare-cleaner-0.1.62 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.61 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.60 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.59 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.58 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.57 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.56 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.55 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.54 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.53 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.52 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.51 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.50 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.49 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.48 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.47 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.46 node_modules/unicode-match-property-ecmascript/index.js
immosquare-cleaner-0.1.45 node_modules/unicode-match-property-ecmascript/index.js
optimacms-0.1.61 spec/dummy/node_modules/unicode-match-property-ecmascript/index.js
disco_app-0.18.0 test/dummy/node_modules/unicode-match-property-ecmascript/index.js