@review-vir/common 3.1.1 → 3.1.2

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.
@@ -16,8 +16,10 @@ export function parseDescriptionUsers({ triggerText, bodyText, }) {
16
16
  }
17
17
  const [, restrictedMatch,] = safeMatch(match, /((?:@[\w-]+[^\w@]*)+)/);
18
18
  const userTags = Array.from(restrictedMatch?.matchAll(/@[\w-]+/g) || []);
19
- return userTags.map((userTag) => removePrefix({
20
- value: userTag[0],
21
- prefix: '@',
22
- }));
19
+ return userTags.map((userTag) => {
20
+ return removePrefix({
21
+ value: userTag[0],
22
+ prefix: '@',
23
+ });
24
+ });
23
25
  }
@@ -40,8 +40,10 @@ export function parseInsertedCodeOwners(body) {
40
40
  .filter((line) => !fileLinkLineRegExp.test(line))
41
41
  .join('\n');
42
42
  const userTags = Array.from(ownerLines.matchAll(userTagRegExp));
43
- return removeDuplicates(userTags.map((userTag) => removePrefix({
44
- value: userTag[0],
45
- prefix: '@',
46
- })));
43
+ return removeDuplicates(userTags.map((userTag) => {
44
+ return removePrefix({
45
+ value: userTag[0],
46
+ prefix: '@',
47
+ });
48
+ }));
47
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@review-vir/common",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Common functionality that review-vir primary uses but other external packages need as well.",
5
5
  "keywords": [
6
6
  "review-vir",
@@ -35,11 +35,11 @@
35
35
  "test:docs": "virmator docs check"
36
36
  },
37
37
  "dependencies": {
38
- "@augment-vir/assert": "^32.2.1",
39
- "@augment-vir/common": "^32.2.1"
38
+ "@augment-vir/assert": "^32.5.0",
39
+ "@augment-vir/common": "^32.5.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@augment-vir/test": "^32.2.1",
42
+ "@augment-vir/test": "^32.5.0",
43
43
  "@web/dev-server-esbuild": "^2.0.0",
44
44
  "@web/test-runner": "^1.0.0",
45
45
  "@web/test-runner-commands": "^1.0.1",