Skip to content

Commit

Permalink
fix: return exact note from isException instead of regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Jun 25, 2024
1 parent 168035a commit 5c8d6f3
Show file tree
Hide file tree
Showing 8 changed files with 239 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

120 changes: 120 additions & 0 deletions dist/validation/tracker-validator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/validation/tracker-validator.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

112 changes: 112 additions & 0 deletions dist/validation/upstream-validator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/validation/upstream-validator.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/validation/tracker-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class TrackerValidator {

for (const match of matches) {
if (Array.isArray(match) && match.length >= 3) {
return exception;
return match[2];
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/validation/upstream-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class UpstreamValidator {

for (const match of matches) {
if (Array.isArray(match) && match.length >= 3) {
return exception;
return match[2];
}
}
}
Expand Down

0 comments on commit 5c8d6f3

Please sign in to comment.