1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.hashtagServices = exports.isValidHashtag = exports.isHashtagTextChar = void 0;
|
4 | var regex_lib_1 = require("../regex-lib");
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | function isHashtagTextChar(char) {
|
10 | return char === '_' || regex_lib_1.alphaNumericAndMarksRe.test(char);
|
11 | }
|
12 | exports.isHashtagTextChar = isHashtagTextChar;
|
13 |
|
14 |
|
15 |
|
16 | function isValidHashtag(hashtag) {
|
17 |
|
18 | return hashtag.length <= 140;
|
19 | }
|
20 | exports.isValidHashtag = isValidHashtag;
|
21 | exports.hashtagServices = ['twitter', 'facebook', 'instagram', 'tiktok'];
|
22 |
|
\ | No newline at end of file |