source: frontend/node_modules/unicode-match-property-ecmascript/index.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 449 bytes
Line 
1'use strict';
2
3const canonicalProperties = require('unicode-canonical-property-names-ecmascript');
4const propertyAliases = require('unicode-property-aliases-ecmascript');
5
6const matchProperty = function(property) {
7 if (canonicalProperties.has(property)) {
8 return property;
9 }
10 if (propertyAliases.has(property)) {
11 return propertyAliases.get(property);
12 }
13 throw new Error(`Unknown property: ${ property }`);
14};
15
16module.exports = matchProperty;
Note: See TracBrowser for help on using the repository browser.