aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2021-10-15 09:44:09 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2021-10-15 09:44:09 -0400
commit7df070f77b150977fbaac2c11ae8ef4544ba6f7f (patch)
tree68b603668e9eb20e17ef19ed34188b50bd3ddd26
parent5d0ce4f5c303f15410fb8346e61504ef6e331fce (diff)
downloadjdtalk_web-master.tar.gz
Update acronymSafe call to include patternHEADmaster
-rw-r--r--source/app.d4
1 files 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;
}
}