Skip to content

Commit

Permalink
fix: Word sigils not picking up on non-Latin characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern committed Dec 14, 2024
1 parent 5c6932b commit 4208e59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 4.49.3

- Fixed `DexonlineAdapter` applying its own formatting to the etymology section.
- Fixed `CacheStore` deleting `Guild`s instead of `GuildStatistics` and vice-versa.
- Fixed word sigils not picking up non-Latin characters.

## 4.49.2

- Compiled independent functions in `role-selection.ts` into `RoleSelectionComponent`.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "logos",
"description": "A multi-purpose community bot built to cater to language-learning communities on Discord.",
"license": "Apache-2.0",
"version": "4.49.2",
"version": "4.49.3",
"type": "module",
"keywords": [
"discord",
Expand Down
2 changes: 1 addition & 1 deletion source/constants/patterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const patterns = Object.freeze({
/** Used for matching against description localisations. */
localisationDescription: /\.description$/,
/** Used for matching sigil queries. e.g. $word, i$word, i$[multiple words] */
wordSigil: /(\w+)?\$(?:(\w+)|\[(.+)\])/,
wordSigil: /(\w+)?\$(?:(\p{L}+)|\[(.+)\])/u,
} as const);

function isValidSnowflake(snowflake: string): boolean {
Expand Down

0 comments on commit 4208e59

Please sign in to comment.