| 1552 | toastr.warning('Invalid custom expression name provided', 'Add Custom Expression'); | 1552 | toastr.warning('Invalid custom expression name provided', 'Add Custom Expression'); |
| 1553 | return; | 1553 | return; |
| 1554 | } | 1554 | } |
| 1555 | if (DEFAULT_EXPRESSIONS.includes(expressionName)) { | 1555 | if (DEFAULT_EXPRESSIONS.includes(expressionName) || DEFAULT_EXPRESSIONS.some(x => expressionName.startsWith(x))) { |
| 1556 | toastr.warning('Expression name already exists', 'Add Custom Expression'); | 1556 | toastr.warning('Expression name already exists', 'Add Custom Expression'); |
| 1557 | return; | 1557 | return; |
| 1558 | } | 1558 | } |