UNPKG

@abaplint/core

Version:
14 lines 586 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CDSString = void 0; const combi_1 = require("../../abap/2_statements/combi"); class CDSString extends combi_1.Expression { getRunnable() { const abap = (0, combi_1.seq)("abap", ".", (0, combi_1.regex)(/^char'\w'$/)); // https://stackoverflow.com/a/57754227 const reg = (0, combi_1.regex)(/^'([A-Za-zÀ-ž\u0370-\u03FF\u0400-\u04FF:\| -_]|'')*'$/); return (0, combi_1.altPrio)(reg, abap); } } exports.CDSString = CDSString; //# sourceMappingURL=cds_string.js.map