Skip to content

Commit

Permalink
_ > ?
Browse files Browse the repository at this point in the history
  • Loading branch information
farhanulju authored Mar 12, 2024
1 parent 7e0125b commit 65b129a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def search_words(pattern, word_list):
if len(word) == len(pattern):
match = True
for i in range(len(pattern)):
if pattern[i] != '_' and pattern[i].lower() != word[i].lower():
if pattern[i] != '?' and pattern[i].lower() != word[i].lower():
match = False
break
if match:
Expand Down
2 changes: 1 addition & 1 deletion templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<body>
<div class="search-container">
<h1>Skribl Word Search</h1>
<input type="text" id="search-input" class="search-input" placeholder="Use _ for unknown letters">
<input type="text" id="search-input" class="search-input" placeholder="Use ? for unknown letters">
<div class="letter-count" id="letter-count">0 letters</div>
<div id="search-results" class="search-results"></div>
</div>
Expand Down

0 comments on commit 65b129a

Please sign in to comment.