mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
27 lines
743 B
JavaScript
27 lines
743 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.enableFeature = enableFeature;
|
|
exports.hasFeature = hasFeature;
|
|
exports.runtimeKey = exports.featuresKey = exports.FEATURES = void 0;
|
|
const FEATURES = Object.freeze({
|
|
unicodeFlag: 1 << 0,
|
|
dotAllFlag: 1 << 1,
|
|
unicodePropertyEscape: 1 << 2,
|
|
namedCaptureGroups: 1 << 3
|
|
});
|
|
exports.FEATURES = FEATURES;
|
|
const featuresKey = "@babel/plugin-regexp-features/featuresKey";
|
|
exports.featuresKey = featuresKey;
|
|
const runtimeKey = "@babel/plugin-regexp-features/runtimeKey";
|
|
exports.runtimeKey = runtimeKey;
|
|
|
|
function enableFeature(features, feature) {
|
|
return features | feature;
|
|
}
|
|
|
|
function hasFeature(features, feature) {
|
|
return !!(features & feature);
|
|
} |