virtual-code-owners 8.2.3 → 8.2.5

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022-2024 Sander Verweij
3
+ Copyright (c) 2022-2025 Sander Verweij
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/utensils.js CHANGED
@@ -1,4 +1,7 @@
1
1
  export function isEmailIshUsername(pUsername) {
2
- const lEmailIshUsernameRE = /^.+@.+$/;
3
- return Boolean(pUsername.match(lEmailIshUsernameRE));
2
+ return (
3
+ !pUsername.startsWith("@") &&
4
+ !pUsername.endsWith("@") &&
5
+ pUsername.includes("@")
6
+ );
4
7
  }
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "8.2.3";
1
+ export const VERSION = "8.2.5";
@@ -62,7 +62,7 @@ function parseSection(pUntreatedLine, pLineNo, pTeamMap) {
62
62
  const lTrimmedLine = pUntreatedLine.trim();
63
63
  const lCommentSplitLine = lTrimmedLine.split(/\s*#/);
64
64
  const lSection = lCommentSplitLine[0]?.match(
65
- /^(?<optionalIndicator>\^)?\[(?<name>[^\]]+)\](\[(?<minApprovers>[0-9]+)\])?(?<spaces>\s+)?(?<userNames>.+)?$/,
65
+ /^(?<optionalIndicator>\^)?\[(?<name>[^\]]+)\](\[(?<minApprovers>\d+)\])?(?<spaces>\s+)?(?<userNames>.+)?$/,
66
66
  );
67
67
  if (!lSection?.groups) {
68
68
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virtual-code-owners",
3
- "version": "8.2.3",
3
+ "version": "8.2.5",
4
4
  "description": "CODEOWNERS with teams for teams that can't use GitHub teams",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,7 +26,7 @@
26
26
  "url": "https://github.com/sverweij/virtual-code-owners/issues"
27
27
  },
28
28
  "dependencies": {
29
- "yaml": "^2.6.1"
29
+ "yaml": "^2.7.1"
30
30
  },
31
31
  "engines": {
32
32
  "node": "^18.11.0||>=20.0.0"