(id: string, attribute: string, context: string)
| 104 | // noop |
| 105 | } else if (name.startsWith(':')) { |
| 106 | const parseExpression = (id: string, attribute: string, context: string) => { |
| 107 | const path = attribute; |
| 108 | |
| 109 | const [triggers, pathToBinding] = parsePathToBinding(path); |
| 110 | |
| 111 | const binding: SVGParserBinding = { |
| 112 | ...pathToBinding, |
| 113 | id, |
| 114 | path: [`${selector}`, name.slice(1)], |
| 115 | expression: context, |
| 116 | triggers |
| 117 | }; |
| 118 | |
| 119 | bindings.push(binding); |
| 120 | }; |
| 121 | |
| 122 | if (cbRegex.test(value)) { |
| 123 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
no test coverage detected