Skip to content

Commit d13b265

Browse files
committed
chore: deps and fix tests
1 parent 1243de1 commit d13b265

File tree

4 files changed

+381
-263
lines changed

4 files changed

+381
-263
lines changed

package.json

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
"watch": "tsc -w"
2828
},
2929
"dependencies": {
30-
"@discordjs/builders": "^1.10.1",
30+
"@discordjs/builders": "^1.11.2",
3131
"@mikro-orm/sql-highlighter": "^1.0.1",
32-
"@prisma/client": "^6.5.0",
32+
"@prisma/client": "^6.7.0",
3333
"@sapphire/decorators": "^6.1.1",
34-
"@sapphire/discord-utilities": "^3.4.4",
35-
"@sapphire/discord.js-utilities": "^7.3.2",
36-
"@sapphire/framework": "^5.3.2",
34+
"@sapphire/discord-utilities": "^3.5.0",
35+
"@sapphire/discord.js-utilities": "^7.3.3",
36+
"@sapphire/framework": "^5.3.4",
3737
"@sapphire/plugin-logger": "^4.0.2",
3838
"@sapphire/plugin-subcommands": "^6.0.3",
3939
"@sapphire/stopwatch": "^1.5.4",
@@ -44,23 +44,22 @@
4444
"@skyra/jaro-winkler": "^1.1.1",
4545
"colorette": "^2.0.20",
4646
"confusables": "^1.1.1",
47-
"discord-api-types": "^0.37.119",
48-
"discord.js": "^14.18.0",
47+
"discord-api-types": "^0.38.4",
48+
"discord.js": "^14.19.3",
4949
"lru-cache": "^11.1.0",
5050
"re2": "^1.21.4",
51-
"tslib": "^2.8.1",
52-
"zlib-sync": "^0.1.9"
51+
"tslib": "^2.8.1"
5352
},
5453
"devDependencies": {
5554
"@sapphire/prettier-config": "^2.0.0",
5655
"@sapphire/ts-config": "^5.0.1",
57-
"@ts-safeql/eslint-plugin": "^3.6.11",
56+
"@ts-safeql/eslint-plugin": "^3.6.12",
5857
"@types/is-ci": "^3.0.4",
5958
"@types/lodash.merge": "^4.6.9",
60-
"@types/node": "^22.13.14",
61-
"@typescript-eslint/eslint-plugin": "^8.28.0",
62-
"@typescript-eslint/parser": "^8.28.0",
63-
"@vitest/coverage-v8": "^3.0.9",
59+
"@types/node": "^22.15.17",
60+
"@typescript-eslint/eslint-plugin": "^8.32.0",
61+
"@typescript-eslint/parser": "^8.32.0",
62+
"@vitest/coverage-v8": "^3.1.3",
6463
"cross-env": "^7.0.3",
6564
"eslint": "^8.57.1",
6665
"eslint-config-neon": "^0.1.62",
@@ -69,10 +68,10 @@
6968
"libpg-query": "^16.3.0",
7069
"lodash.merge": "^4.6.2",
7170
"prettier": "^3.5.3",
72-
"prisma": "^6.5.0",
71+
"prisma": "^6.7.0",
7372
"rimraf": "^6.0.1",
74-
"typescript": "^5.8.2",
75-
"vitest": "^3.0.9"
73+
"typescript": "^5.8.3",
74+
"vitest": "^3.1.3"
7675
},
7776
"author": {
7877
"name": "Vlad Frangu",

src/lib/workers/WorkerCache.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ export class WorkerCache {
152152

153153
let finalString = input;
154154

155+
if (hadCaseSensitiveMatch) {
156+
finalString = finalString.replace(RegularExpressionCaseSensitiveMatch, '');
157+
}
158+
155159
if (hadWordMarker) {
156160
finalString = finalString.replace(RegularExpressionWordMarker, '');
157161

@@ -164,10 +168,6 @@ export class WorkerCache {
164168
}
165169
}
166170

167-
if (hadCaseSensitiveMatch) {
168-
finalString = finalString.replace(RegularExpressionCaseSensitiveMatch, '');
169-
}
170-
171171
return finalString;
172172
}
173173
}

tests/workers/WorkerCache.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ describe('WorkerCache', () => {
211211
);
212212
});
213213

214-
test.each(['word', 'o', 'help'])('given %p then it should return bolded content', (trigger) => {
214+
test.each(['word', 'o', 'help'])('given "%s" then it should return bolded content', (trigger) => {
215215
const result = cache.parse(
216216
WorkerType.Word,
217217
String(GuildIds.WordGuild),
@@ -229,7 +229,7 @@ describe('WorkerCache', () => {
229229
});
230230

231231
test.each(['word', 'o', 'help'])(
232-
'given multiple mentions of %p then it should return bolded content',
232+
'given multiple mentions of "%s" then it should return bolded content',
233233
(trigger) => {
234234
const result = cache.parse(
235235
WorkerType.Word,
@@ -267,7 +267,7 @@ describe('WorkerCache', () => {
267267
['o', 'o'],
268268
['help', 'help?'],
269269
['hel', 'help?'],
270-
])('given %p then it should return bolded content', (testCase, trigger) => {
270+
])('given "%s" then it should return bolded content', (testCase, trigger) => {
271271
const result = cache.parse(
272272
WorkerType.RegularExpression,
273273
String(GuildIds.RegExpGuild),

0 commit comments

Comments
 (0)