From 596cc4b1cbe9c0db6cf3bfe1f2910d3883ac8ae8 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Mon, 2 Oct 2023 18:19:40 +0300 Subject: [PATCH] Helper scripts: minor simplification --- contrib/gen_http_methods_insert.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/gen_http_methods_insert.sh b/contrib/gen_http_methods_insert.sh index 49e25fef..e1c5143f 100755 --- a/contrib/gen_http_methods_insert.sh +++ b/contrib/gen_http_methods_insert.sh @@ -89,7 +89,7 @@ FNR > 1 { { indem_m = "Idempotent. " } else { indem_m = "Not idempotent." } - idx_str = gensub(/[^0-9A-Za-z]+/, " ", "g", reference_m) + idx_str = reference_m main_methods[idx_str] = sprintf ("%s\n", "/* " safe_m " " indem_m " " reference_m ". */") mthd_tkn = gensub(/\*/, "ASTERISK", "g", mthd_m) gsub(/[^a-zA-Z0-9_]/, "_", mthd_tkn)