mirror of https://github.com/LemmyNet/lemmy.git
Update pre-commit regex
parent
d2d3b1f050
commit
f253f0c8f2
|
@ -111,11 +111,11 @@
|
|||
# Whether the site is available over TLS. Needs to be true for federation to work.
|
||||
tls_enabled: true
|
||||
# Address where pictrs is available (for image hosting)
|
||||
pictrs_url: "http:#localhost:8080"
|
||||
pictrs_url: "http://localhost:8080"
|
||||
slur_filter: "(\bThis\b)|(\bis\b)|(\bsample\b)"
|
||||
# Maximum length of local community and user names
|
||||
actor_name_max_length: 20
|
||||
# Maximum number of HTTP requests allowed to handle a single incoming activity (or a single object fetch through the search).
|
||||
http_fetch_retry_limit: 25
|
||||
opentelemetry_url: "http:#localhost:4317"
|
||||
opentelemetry_url: "http://localhost:4317"
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ dest=${1-config/defaults.hjson}
|
|||
|
||||
cargo run -- --print-config-docs > "$dest"
|
||||
# replace // comments with #
|
||||
sed -i "s/\/\//#/" "$dest"
|
||||
sed -i "s/^\([[:space:]]*\)\/\//\1#/" "$dest"
|
||||
# remove trailing commas
|
||||
sed -i "s/,\$//" "$dest"
|
||||
# remove quotes around json keys
|
||||
|
|
Loading…
Reference in New Issue