summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2025-02-07 18:33:24 +0000
committerdakkar <dakkar@thenautilus.net>2025-02-07 18:33:24 +0000
commit09128ef399c8fc4f40c688617869bfbb4c3d526e (patch)
treeedfe071f3f27bd3d93b7a7d5bf1d6624b607f610
parentfix our ruby/group hack (diff)
downloadsharkey-09128ef399c8fc4f40c688617869bfbb4c3d526e.tar.gz
sharkey-09128ef399c8fc4f40c688617869bfbb4c3d526e.tar.bz2
sharkey-09128ef399c8fc4f40c688617869bfbb4c3d526e.zip
pick lints
-rw-r--r--packages/backend/src/core/MfmService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/MfmService.ts b/packages/backend/src/core/MfmService.ts
index 99adad3018..6c2f673217 100644
--- a/packages/backend/src/core/MfmService.ts
+++ b/packages/backend/src/core/MfmService.ts
@@ -315,7 +315,7 @@ export class MfmService {
// is when both sides of the ruby are simple words
const needsGroup = nonRtNodes.length > 1 ||
/\s|\[|\]/.test(getText(nonRtNodes[0])) ||
- /\s|\[|\]/.test(getText(child)) ;
+ /\s|\[|\]/.test(getText(child));
text += '$[ruby ';
if (needsGroup) text += '$[group ';
appendChildren(nonRtNodes);