Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
13 lines
549 B
Plaintext
13 lines
549 B
Plaintext
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.RegExp = RegExp;
|
|
const type_1 = require("../create/type");
|
|
const value_1 = require("../guard/value");
|
|
const index_1 = require("../symbols/index");
|
|
/** `[JavaScript]` Creates a RegExp type */
|
|
function RegExp(unresolved, options) {
|
|
const expr = (0, value_1.IsString)(unresolved) ? new globalThis.RegExp(unresolved) : unresolved;
|
|
return (0, type_1.CreateType)({ [index_1.Kind]: 'RegExp', type: 'RegExp', source: expr.source, flags: expr.flags }, options);
|
|
}
|