This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/unicode-match-property-ecmascript/index.js
2019-08-11 20:48:02 +02:00

16 lines
449 B
JavaScript
Executable file

'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;