From b06b353f6aa6665f3421f441f37fb5eeaa758877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 17 Sep 2019 09:58:35 +0200 Subject: [PATCH] Corrected comment to unicode letter(s) --- backend/src/middleware/hashtags/extractHashtags.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/middleware/hashtags/extractHashtags.js b/backend/src/middleware/hashtags/extractHashtags.js index ee90102dc..9a903e4fa 100644 --- a/backend/src/middleware/hashtags/extractHashtags.js +++ b/backend/src/middleware/hashtags/extractHashtags.js @@ -4,8 +4,8 @@ import { exec, build } from 'xregexp/xregexp-all.js' // https://en.wikipedia.org/w/index.php?title=Hashtag&oldid=905141980#Style // here: // 0. Search for whole string. -// 1. Hashtag has only all unicode characters and '0-9'. -// 2. If it starts with a digit '0-9' than a unicode character has to follow. +// 1. Hashtag has only all unicode letters and '0-9'. +// 2. If it starts with a digit '0-9' than a unicode letter has to follow. const regX = build('^((\\pL+[\\pL0-9]*)|([0-9]+\\pL+[\\pL0-9]*))$') export default function(content) {