mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 02:59:07 +08:00
Follow-up cleanup to #41442. No behavior change. - `NODE_REF_RE` and `parseNodeReferenceName` were duplicated verbatim in `expression-context.js` and `reference-label.js`, so the two parsers had to be kept in sync by hand. They are now exported from `expression-context.js` and imported by `reference-label.js`, and the two identical single-quote unescapers in `expression-context.js` are folded into one helper. - Drops four `register_svg_icon` calls (`diagram-project`, `right-to-bracket`, `user`, `gear`) that are already in core's always-bundled base sprite (`SvgSprite::SVG_ICONS`), so re-registering them was a no-op. Only `dollar-sign` still needs registering. The other bracket/quote scanners (`splitLastAccessor`, `resolveBracketSuffix`) are deliberately left separate: they serve different purposes (runtime value resolution vs. picker-current matching) with different escaping semantics, so merging them would change behavior rather than clean it up. |
||
|---|---|---|
| .. | ||
| admin | ||
| discourse | ||