kanidm/server/core
Jalil David Salamé Messina c4bc1ff546
fix(server/config): reduce string allocations (#3350)
Previously the code would do `key.replace("KANIDM_", "")`, this
allocates a new string, which is unnecessary, as we can simply call
`strip_prefix("KANIDM_")`.

This removes the `KANIDM_` prefix from a bunch of places, and doubles as
a check that the variable is prefixed with `KANIDM_`. Overall I believe
this change makes the code more robust and slightly reduces allocations,
speeding up an admittedly cold function (only called very infrequently).
2025-01-10 23:20:15 +00:00
..
src fix(server/config): reduce string allocations (#3350) 2025-01-10 23:20:15 +00:00
static Add support for prefers-color-scheme using Bootstrap classes. (#3327) 2025-01-06 10:58:42 +00:00
templates Renaming "TOTP" in the login flow (#3338) 2025-01-07 00:05:07 +00:00
askama.toml 20240620 htmx (#2854) 2024-07-02 10:59:06 +00:00
build.rs 20240221 2489 cleanup api v1 (#2573) 2024-02-27 09:25:02 +00:00
Cargo.toml Bump the all group with 6 updates (#3294) 2024-12-15 22:17:05 +00:00
eslint.config.mjs Javascript linting (#3329) 2025-01-04 15:25:46 +10:00
package-lock.json Javascript linting (#3329) 2025-01-04 15:25:46 +10:00
package.json Javascript linting (#3329) 2025-01-04 15:25:46 +10:00
prettier-ignore Javascript linting (#3329) 2025-01-04 15:25:46 +10:00