regex-belt 0.1.3 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +32 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -22,16 +22,40 @@ countries.br.cpf.test('123.456.789-09'); // true
22
22
 
23
23
  ### Countries / BR
24
24
 
25
- | Name | Description | Pattern |
26
- | ----- | ----------------------------------------------------------- | ------------------------------- |
27
- | `cpf` | Matches a Brazilian CPF number in the format XXX.XXX.XXX-XX | `/^\d{3}\.\d{3}\.\d{3}-\d{2}$/` |
25
+ <table>
26
+ <tr>
27
+ <td><b><a href="./src/regexen/countries/br/cpf.ts"><code>cpf</code></a></b></td>
28
+ <td>Matches a Brazilian CPF number in the format XXX.XXX.XXX-XX</td>
29
+ </tr>
30
+ <tr>
31
+ <td colspan="2"><code>/^\d{3}\.\d{3}\.\d{3}-\d{2}$/</code></td>
32
+ </tr>
33
+ </table>
28
34
 
29
35
  ### Datetime
30
36
 
31
- | Name | Description | Pattern |
32
- | ----------------- | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- |
33
- | `dashedDateLoose` | Matches a date in the format YYYY-MM-DD Valid digits are 0000 to 9999 for year, 01 to 12 for month and 01 to 31 for day | `/([0-9]{4}-([0][1-9]|[1][0-2])-([1-2][0-9]|[0][1-9]|[3][0-1]))/` |
34
- | `dashedDate` | Matches a date in the format YYYY-MM-DD Valid digits are 0000 to 9999 for year, 01 to 12 for month and 01 to 31 for day. | `/^([0-9]{4}-([0][1-9]|[1][0-2])-([1-2][0-9]|[0][1-9]|[3][0-1]))$/` |
35
- | `isoUtc` | Regex that matches a UTC ISO String Date in format YYYY-MM-DDTHH:mm:ss.sssZ | `/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{3})?Z$/` |
37
+ <table>
38
+ <tr>
39
+ <td><b><a href="./src/regexen/datetime/dashed-date-loose.ts"><code>dashedDateLoose</code></a></b></td>
40
+ <td>Matches a date in the format YYYY-MM-DD Valid digits are 0000 to 9999 for year, 01 to 12 for month and 01 to 31 for day</td>
41
+ </tr>
42
+ <tr>
43
+ <td colspan="2"><code>/([0-9]{4}-([0][1-9]|[1][0-2])-([1-2][0-9]|[0][1-9]|[3][0-1]))/</code></td>
44
+ </tr>
45
+ <tr>
46
+ <td><b><a href="./src/regexen/datetime/dashed-date.ts"><code>dashedDate</code></a></b></td>
47
+ <td>Matches a date in the format YYYY-MM-DD Valid digits are 0000 to 9999 for year, 01 to 12 for month and 01 to 31 for day.</td>
48
+ </tr>
49
+ <tr>
50
+ <td colspan="2"><code>/^([0-9]{4}-([0][1-9]|[1][0-2])-([1-2][0-9]|[0][1-9]|[3][0-1]))$/</code></td>
51
+ </tr>
52
+ <tr>
53
+ <td><b><a href="./src/regexen/datetime/iso-utc.ts"><code>isoUtc</code></a></b></td>
54
+ <td>Regex that matches a UTC ISO String Date in format YYYY-MM-DDTHH:mm:ss.sssZ</td>
55
+ </tr>
56
+ <tr>
57
+ <td colspan="2"><code>/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{3})?Z$/</code></td>
58
+ </tr>
59
+ </table>
36
60
 
37
61
  <!-- GENERATED:END -->
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "patterns",
11
11
  "validation"
12
12
  ],
13
- "version": "0.1.3",
13
+ "version": "0.1.5",
14
14
  "sideEffects": false,
15
15
  "type": "module",
16
16
  "author": "Adriano Tirloni",