@social-mail/social-mail-web-server 1.5.365 → 1.5.366

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.5.365",
3
+ "version": "1.5.366",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -15,7 +15,7 @@ export const RegExpExtra = {
15
15
  replaceTimeAndEmail(input: string) {
16
16
  return RegExpExtra.replaceAll(
17
17
  input,
18
- /(([^@\s,;]{5,80}@)|([📅📆📆]:\s{0,5}\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{1,5}Z)|((?<=\s)|^)(#\p{L}[\p{L}\d\-_\/]{3,200}))/gui,
18
+ /(([^@\s,;]{5,80}@)|([📅📆📆]:\s{0,5}\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{1,5}Z)|(#\p{L}[\p{L}\d\-_\/]{3,200}))/gui,
19
19
  ({ text, match }) => {
20
20
  if (text) {
21
21
  return text;
@@ -25,6 +25,10 @@ export const RegExpExtra = {
25
25
  if (date) {
26
26
  return `<time datetime="${date}">${m}</time>`;
27
27
  }
28
+ // const empty = match[4];
29
+ // if (empty !== null && empty !== void 0) {
30
+ // return empty;
31
+ // }
28
32
  const tag = match[4];
29
33
  if (tag) {
30
34
  return `<hash-tag>${tag}</hash-tag>`;
@@ -64,7 +64,7 @@ export function *tokenizeRegexAll(text: string, regex: RegExp) {
64
64
  yield { text: text.substring(start, m.index)};
65
65
  }
66
66
  yield { match: m };
67
- start = m.index + m.length;
67
+ start = m.index + m[0].length;
68
68
  }
69
69
  if (start < text.length) {
70
70
  if (start) {