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