Update pre-commit regex

asonix/opentelemetry
Aode (Lion) 2022-01-06 10:05:50 -06:00
parent d2d3b1f050
commit f253f0c8f2
2 changed files with 3 additions and 3 deletions

View File

@ -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"
}

View File

@ -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