Skip to content

Commit

Permalink
feat: add some service rule
Browse files Browse the repository at this point in the history
  • Loading branch information
bun913 committed Jan 5, 2025
1 parent dc29941 commit 986c36b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
29 changes: 29 additions & 0 deletions dict/auto-create-regular-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,14 @@ rules:
- AWS Omics
options:
wordBoundary: true
- expected: Nova
options:
wordBoundary: true
- expected: Amazon Nova
patterns:
- AWS Nova
options:
wordBoundary: true
- expected: OpenSearch Service
options:
wordBoundary: true
Expand Down Expand Up @@ -2042,6 +2050,14 @@ rules:
- GroundStation
options:
wordBoundary: true
- expected: Health
options:
wordBoundary: true
- expected: AWS Health
patterns:
- Amazon Health
options:
wordBoundary: true
- expected: HealthOmics
options:
wordBoundary: true
Expand Down Expand Up @@ -2725,6 +2741,19 @@ rules:
- TrustedAdvisor
options:
wordBoundary: true
- expected: User Notifications
options:
wordBoundary: true
- expected: AWS User Notifications
patterns:
- Amazon User Notifications
options:
wordBoundary: true
- expected: User Notifications
patterns:
- UserNotifications
options:
wordBoundary: true
- expected: Verified Access
options:
wordBoundary: true
Expand Down
14 changes: 14 additions & 0 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,17 @@ tester.run("AWS Deadline Cloud", report, {
},
],
});

tester.run("AWS Nova", report, {
valid: ["Amazon Nova"],
invalid: [
{
text: "AWS Nova",
errors: [
{
message: "AWS Nova => Amazon Nova",
},
],
},
],
});

0 comments on commit 986c36b

Please sign in to comment.