A field also needs work if it starts with '/' (a leading slash would double up at the "topic/field" junction), not just when it has internal "//".
| 61 | // A field also needs work if it starts with '/' (a leading slash would double up at |
| 62 | // the "topic/field" junction), not just when it has internal "//". |
| 63 | [[nodiscard]] bool needsFieldNormalization(std::string_view name) { |
| 64 | return needsSlashNormalization(name) || (!name.empty() && name.front() == '/'); |
| 65 | } |
| 66 | |
| 67 | [[nodiscard]] std::string normalizeSlashes(std::string_view name) { |
| 68 | std::string out; |
no test coverage detected