Skip to content

Commit 1c814c2

Browse files
committed
Reordered string formats for better performance
1 parent fc525b8 commit 1c814c2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/formats/index.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,19 @@ export type JSONStringFormat =
6666
| JSONCreditCardFormat;
6767

6868
const formats = [
69-
inferDatetime,
70-
inferTimestamp,
69+
inferUri,
70+
inferTld,
71+
inferHostname,
7172
inferEmail,
73+
inferDatetime,
74+
inferIpAddress,
75+
inferPhoneNumber,
7276
inferCurrency,
7377
inferCountry,
74-
inferTld,
75-
inferIpAddress,
7678
inferLanguage,
77-
inferPhoneNumber,
78-
inferUri,
7979
inferUuid,
8080
inferFilesize,
81-
inferHostname,
81+
inferTimestamp,
8282
inferJson,
8383
inferJsonPointer,
8484
inferEmoji,

0 commit comments

Comments
 (0)