habitica-self-host/website/server/libs
Bart Enkelaar 9608b9fa9f
Don't link user in markdown code blocks - Fixes #[11504] (#12069)
* Improve whitespacing in highlightMentions.js unit test

* Issue 11504 - Don't link users in markdown code blocks

Use the markdown-it parser to determine what parts of the message are code block first.
Then work from those parser tokens back to content parts that should not be handled.

Still convoluted, but can be improved once a "user mention plugin" is added to habitica-markdown.

* Issue 11504 - Put functions in JavaScript order and fix linting issues

* Issue 11504 - Use includes i.o. multiple or checks and added some context.

* Issue 11504 - Add docstring for highlightMentions and simplify fence regex

* Issue 11504 - Replace inline recursor with default parameter value
2020-04-17 22:19:11 +02:00
..
auth Sign in with Apple (#11793) 2020-04-08 18:44:30 +02:00
challenges fix(challenges): handle case where challenge has no categories or result is empty 2020-03-09 21:17:27 +01:00
chat fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
chatReporting fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
coupons fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
inbox Push Notifications Fixes - Part 2 (#12092) 2020-04-15 21:36:53 +02:00
invites fix(apple auth): minor fixes, make sure apple auth users are considered when sending emails 2020-04-16 23:23:08 +02:00
items fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
payments Push Notifications Fixes - Part 2 (#12092) 2020-04-15 21:36:53 +02:00
user start upgrading eslint 2019-10-08 16:57:10 +02:00
analyticsService.js fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
apiError.js move errors 2019-10-15 17:17:44 +02:00
bannedSlurs.js move a word from slurs to swears as discussed with beffymaroo and mods 2020-02-26 07:44:36 +10:00
bannedWords.js move a word from slurs to swears as discussed with beffymaroo and mods 2020-02-26 07:44:36 +10:00
baseModel.js clarify all "Invalid uuid" messages by making each unique 2020-01-29 15:49:55 +10:00
buildManifest.js fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
chat.js Push Notifications Fixes - Part 2 (#12092) 2020-04-15 21:36:53 +02:00
client.js fix index path0 2019-10-15 18:10:20 +02:00
collectionManipulators.js fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
content.js API-v4 route added: 'api/v4/faq' fixes #11801 (#11905) 2020-04-14 22:14:53 +02:00
cron.js Merge remote-tracking branch 'upstream/develop' into fix-antidotes-from-revert 2019-12-07 22:32:25 +03:00
csvStringify.js start upgrading eslint 2019-10-08 16:57:10 +02:00
email.js improve emails errors 2020-04-06 10:56:39 +02:00
encryption.js start upgrading eslint 2019-10-08 16:57:10 +02:00
errors.js IP Blocking (#12015) 2020-03-28 15:44:54 +01:00
forbiddenUsernames.js fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
gcpTraceAgent.js fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
groupTasks.js fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
guildsAllowingBannedWords.js allow another guild to use banned words in appropriate contexts 2020-02-26 07:45:31 +10:00
highlightMentions.js Don't link user in markdown code blocks - Fixes #[11504] (#12069) 2020-04-17 22:19:11 +02:00
i18n.js Automatically Logout Banned Users (#12037) 2020-04-02 21:46:01 +02:00
inAppPurchases.js remove old module.exports from server aswell 2019-10-02 19:45:27 +02:00
language.js Automatically Logout Banned Users (#12037) 2020-04-02 21:46:01 +02:00
logger.js fix(logger): only two arguments to logger when logging an unhandled promise rejection 2020-03-26 17:10:19 +01:00
password.js fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
preening.js fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
pushNotifications.js Push Notifications Fixes - Part 2 (#12092) 2020-04-15 21:36:53 +02:00
routes.js add basic test, disable etag on post routes as well, paypal ipn: prevent set headers after response error 2020-04-17 14:50:09 +02:00
setupMongoose.js update mongoose options 2020-03-18 19:20:09 +01:00
setupNconf.js misc, fix client tests 2019-10-15 15:32:53 +02:00
setupPassport.js fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
slack.js chore(promo): end g1g1 2020-01-07 10:13:32 -06:00
sleep.js start upgrading eslint 2019-10-08 16:57:10 +02:00
spells.js Fix 2019-10-29 00:27:41 +03:00
stringUtils.js fix linting for server (except for length of apidoc) 2019-10-10 20:11:50 +02:00
taskManager.js fix(analytics): problems (#12032) 2020-03-30 15:37:01 -05:00
webhook.js fix(logs): do not log mongoose object with id and no _id to avoid crashes, see https://github.com/davidmarkclements/fast-safe-stringify/issues/43 2020-04-08 23:31:17 +02:00