Skip to content

Commit 415be14

Browse files
committed
chore: Update AggregateSnippets acronyms
1 parent 6f1dab4 commit 415be14

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

SNIPPETS.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ System.out.println(response.length);
336336
Map<String, ?> response = client.getCustomClient().get("https://rest.nexmo.com/account/get-balance");
337337
System.out.println("" + response.get("value"));
338338
```
339-
### Get Request JSONable
339+
### Get Request Jsonable
340340

341341
```java
342342
BalanceResponse response = client.getCustomClient().get("https://rest.nexmo.com/account/get-balance");
@@ -2737,7 +2737,7 @@ List<Broadcast> broadcasts = videoClient.listBroadcasts();
27372737

27382738
System.out.println("Retrieved list of broadcasts: " + broadcasts);
27392739
```
2740-
### Sip Dial
2740+
### SIP Dial
27412741

27422742
```java
27432743

src/main/java/AggregateSnippets.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ private static boolean isInitialize(File file) {
140140

141141
private static String toHeadingTitle(String title) {
142142
var acronyms = new String[]{
143-
"jwt", "id", "uuid", "url", "sim",
143+
"jwt", "id", "uuid", "url", "sim", "sip",
144144
"sms", "rcs", "mms", "psd2", "dlr", "cnam",
145-
"dtmf", "asr", "tts", "ncco", "rtc"
145+
"dtmf", "asr", "tts", "ncco", "rtc", "json"
146146
};
147147
var result = (title.substring(0, 1).toUpperCase() + title.substring(1))
148148
.replace("NCCO", "ncco") // To avoid adding spaces in the next regex
@@ -152,7 +152,6 @@ private static String toHeadingTitle(String title) {
152152
.replace("Verify\n", "Verify (Legacy)\n")
153153
.replace("Verify2", "Verify v2")
154154
.replace("Whatsapp", "WhatsApp")
155-
.replace("Json", "JSON")
156155
.replace("Simswap", "SIM Swap")
157156
.replace("Callncco", "Call NCCO");
158157
for (var ac : acronyms) {

0 commit comments

Comments
 (0)