human-regex
Advanced tools
+1
-1
| { | ||
| "name": "human-regex", | ||
| "version": "2.0.4", | ||
| "version": "2.0.5", | ||
| "description": "Human-friendly regex builder with English-like syntax", | ||
@@ -5,0 +5,0 @@ "main": "dist/human-regex.cjs.js", |
+6
-6
@@ -127,8 +127,8 @@ [](https://www.npmjs.com/package/human-regex) | ||
| | Method | Description | Example Output | | ||
| | ------------- | -------------------------------------- | -------------- | ------- | ----- | --- | ----- | | ||
| | `.protocol()` | Adds a protocol pattern (`https?://`). | `https?://` | | ||
| | `.www()` | Adds a www pattern (`(www\.)?`). | `(www\.)?` | | ||
| | `.tld()` | Adds a top-level domain pattern (`(com | org | net)`). | `(com | org | net)` | | ||
| | `.path()` | Adds a path pattern (`(/\w+)*`). | `(/\w+)*` | | ||
| | Method | Description | Example Output | | ||
| | ------------- | -------------------------------------- | --------------------- | | ||
| | `.protocol()` | Adds a protocol pattern (`https?://`). | `https?://` | | ||
| | `.www()` | Adds a www pattern (`(www\.)?`). | `(www\.)?` | | ||
| | `.tld()` | Adds a top-level domain pattern. | `["(com\|org\|net)"]` | | ||
| | `.path()` | Adds a path pattern (`(/\w+)*`). | `(/\w+)*` | | ||
@@ -135,0 +135,0 @@ ### Flags |
33535
-0.07%