osr-mono/packages/core/constants.js
2025-01-29 17:48:22 +01:00

9 lines
500 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.REGEX_VAR_ALT = exports.REGEX_VAR = void 0;
// standard expression for variables, eg : ${foo}
exports.REGEX_VAR = /\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g;
// alternate expression for variables, eg : %{foo}. this is required
// to deal with parent expression parsers where '$' is reserved, eg: %{my_var}
exports.REGEX_VAR_ALT = /\&\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g;
//# sourceMappingURL=constants.js.map