Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
settyan117 committed Oct 22, 2024
1 parent 33f12ef commit cbceb67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions city-symbol/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,10 +483,10 @@ export default (slackClients: SlackInterface) => {

mutex.runExclusive(async () => {
try {
let matches;
let matches: RegExpMatchArray = null;
if (
message.text &&
(matches = message.text.match(/^(?:市?区?町?村?)章当てクイズ\s?(?<pref>\p{sc=Han}+[都道府県])?$/u))
(matches = (message.text as string).match(/^(?:市?区?町?村?)章当てクイズ\s?(?<pref>\p{sc=Han}+[都道府県])?$/u))
) {
const prefectureSpecified = matches?.groups?.pref;

Expand Down

0 comments on commit cbceb67

Please sign in to comment.