fix(path-map): disallow nested tokens
This commit is contained in:
parent
03352e8665
commit
c63d0984f4
|
@ -444,8 +444,8 @@ export default function PathMap() {
|
|||
|
||||
// helpers //////////////////////
|
||||
|
||||
// copied from https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js
|
||||
var tokenRegex = /\{([^}]+)\}/g,
|
||||
// copied and adjusted from https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js
|
||||
var tokenRegex = /\{([^{}]+)\}/g,
|
||||
objNotationRegex = /(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g; // matches .xxxxx or ["xxxxx"] to run over object properties
|
||||
|
||||
function replacer(all, key, obj) {
|
||||
|
|
Loading…
Reference in New Issue