reIsDeepProp top-level property
Used to match property names within property paths.
Implementation
final reIsDeepProp =
RegExp(r"\.|\[(?:[^[\]]*|([" "\"'])(?:(?!\1)[^\\]|\\.)*?\1)\]"),
reIsPlainProp = RegExp(r"^\w*$"),
rePropName = RegExp(r'\[^[.\[\]]+\]|\[(?:(-?\d+(?:\.\d+)?)|(["'
'\'])(?:(?!\2)[^\\]|\\.)*?\2)\]|\.(?!\.|\$)|\[\]');