From 3597297b1813c1c7dbe0a51b7ea7fcb0401c9a7e Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 7 Dec 2018 18:26:54 +0900 Subject: [PATCH] Update parser.ts --- src/mfm/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mfm/parser.ts b/src/mfm/parser.ts index 8970d1484..ae2ae7246 100644 --- a/src/mfm/parser.ts +++ b/src/mfm/parser.ts @@ -211,7 +211,7 @@ const mfm = P.createLanguage({ hashtag = hashtag.substr(0, getTrailingPosition(hashtag)); if (hashtag.match(/^[0-9]+$/)) return P.makeFailure(i, 'not a hashtag'); if (input[i - 1] != null && input[i - 1].match(/[a-z0-9]/i)) return P.makeFailure(i, 'not a hashtag'); - if (hashtag.length > 30) return P.makeFailure(i, 'not a hashtag'); + if (hashtag.length > 50) return P.makeFailure(i, 'not a hashtag'); return P.makeSuccess(i + ('#' + hashtag).length, makeNode('hashtag', { hashtag: hashtag })); }), //#endregion