main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
882 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
---|
| 4 | value: true
|
---|
| 5 | });
|
---|
| 6 | exports.FEATURES = void 0;
|
---|
| 7 | exports.enableFeature = enableFeature;
|
---|
| 8 | exports.featuresKey = void 0;
|
---|
| 9 | exports.hasFeature = hasFeature;
|
---|
| 10 | exports.runtimeKey = void 0;
|
---|
| 11 | const FEATURES = exports.FEATURES = Object.freeze({
|
---|
| 12 | unicodeFlag: 1 << 0,
|
---|
| 13 | dotAllFlag: 1 << 1,
|
---|
| 14 | unicodePropertyEscape: 1 << 2,
|
---|
| 15 | namedCaptureGroups: 1 << 3,
|
---|
| 16 | unicodeSetsFlag_syntax: 1 << 4,
|
---|
| 17 | unicodeSetsFlag: 1 << 5,
|
---|
| 18 | duplicateNamedCaptureGroups: 1 << 6,
|
---|
| 19 | modifiers: 1 << 7
|
---|
| 20 | });
|
---|
| 21 | const featuresKey = exports.featuresKey = "@babel/plugin-regexp-features/featuresKey";
|
---|
| 22 | const runtimeKey = exports.runtimeKey = "@babel/plugin-regexp-features/runtimeKey";
|
---|
| 23 | function enableFeature(features, feature) {
|
---|
| 24 | return features | feature;
|
---|
| 25 | }
|
---|
| 26 | function hasFeature(features, feature) {
|
---|
| 27 | return !!(features & feature);
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | //# sourceMappingURL=features.js.map
|
---|
Note:
See
TracBrowser
for help on using the repository browser.