@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 624 B
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
function t(t){if(!t)return;const e=t.match(o);return e?.groups?e.groups.doubleQuoted??e.groups.singleQuoted??e.groups.dotNotation:void 0}const o=/^(\$feature\[(?:"(?<doubleQuoted>[^"]+)"|'(?<singleQuoted>[^']+)')\]|\$feature\.(?<dotNotation>[a-zA-Z_][a-zA-Z0-9_]*))$/i;function e(t){return t.match(u)?.[1]?.replace(/\\'/g,"'")??null}const u=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/;export{t as getFieldNameFromSimpleExpression,e as matchRandomRotationExpression};