From 7df070f77b150977fbaac2c11ae8ef4544ba6f7f Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 15 Oct 2021 09:44:09 -0400 Subject: Update acronymSafe call to include pattern --- source/app.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/app.d b/source/app.d index a6f7786..96b1811 100644 --- a/source/app.d +++ b/source/app.d @@ -67,8 +67,8 @@ void handleRequest(scope HTTPServerRequest req, scope HTTPServerResponse res) if (acronym !is null) { char result = 0; - if ((result = acronymSafe(dict, acronym)) > 0) { - res.bodyWriter.write(format("No words start with: '%c'", result)); + if ((result = acronymSafe(dict, acronym, pattern)) > 0) { + res.bodyWriter.write(format("No words will start with: '%c'", result)); return; } } -- cgit