Comfy-Org / Comfy-Org/ComfyUI_frontend

i18n: interpolationPattern lost its (?<!\\) lookbehind with no explanation

Open
#15,650 1 comment 0 reactions 1 assignee Claimed by @benceruleanlu View on GitHub
area:i18n
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

## Problem

`scripts/i18n/protected-tokens.ts` on `main`:

```ts
const interpolationPattern = /\{(?:[A-Za-z][A-Za-z0-9_.-]*|\d+|'[^']*')\}/g
```

An earlier revision of the same file carried a negative lookbehind:

```ts
const interpolationPattern = /(?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.