@tolki/str 1.0.7 → 1.0.8

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.
package/dist/str.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Return the remainder of a string after the last occurrence of a given value.
2
+ * Return the remainder of a string after the first occurrence of a given value.
3
3
  *
4
4
  * @param subject - The string to search in
5
5
  * @param search - The value to search for
6
- * @returns The portion of the string after the last occurrence of the search value
6
+ * @returns The portion of the string after the first occurrence of the search value
7
7
  *
8
8
  * @see https://tolki.abe.dev/strings/string-utilities-list.html#after
9
9
  */
package/dist/str.js CHANGED
@@ -163,7 +163,7 @@ function Nt(t, e = []) {
163
163
  "):\\/\\/",
164
164
  "(?:((?:[_.\\p{L}\\p{N}-]|%[0-9A-Fa-f]{2})+:)?((?:[_.\\p{L}\\p{N}-]|%[0-9A-Fa-f]{2})+)@)?",
165
165
  "(",
166
- "(?:(?:xn--[a-z0-9-]+\\.)*xn--[a-z0-9-]+|(?:[\\p{L}\\p{N}\\p{S}\\p{M}_-]+\\.)+[\\p{L}\\p{N}\\p{M}]+|[a-z0-9_-]+)\\.?",
166
+ "(?:(?:[\\p{L}\\p{N}\\p{S}\\p{M}_-]+\\.)+(?:xn--[a-z0-9-]+|[\\p{L}\\p{N}\\p{M}]+)|[a-z0-9_-]+)\\.?",
167
167
  "|",
168
168
  "(?:\\d{1,3}\\.){3}\\d{1,3}",
169
169
  "|",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolki/str",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Utilities for working with strings similar to Laravel's Str & Stringable classes.",
5
5
  "author": "Abraham Arango <https://github.com/abetwothree>",
6
6
  "license": "MIT",
@@ -36,14 +36,22 @@
36
36
  "transliteration": "^2.6.0",
37
37
  "ulid": "^2.4.0",
38
38
  "uuid": "^11.1.0",
39
- "@tolki/utils": "^1.0.2",
40
- "@tolki/num": "^2.0.1"
39
+ "@tolki/num": "^2.0.2",
40
+ "@tolki/utils": "^1.0.2"
41
41
  },
42
42
  "files": [
43
43
  "dist"
44
44
  ],
45
+ "tolki": {
46
+ "docs": [
47
+ "strings/index.md",
48
+ "strings/string-utilities-list.md",
49
+ "strings/stringable-utilities-list.md"
50
+ ]
51
+ },
45
52
  "scripts": {
46
- "build": "vite build"
53
+ "build": "vite build",
54
+ "readme:build": "ts-node ../../scripts/readme-build.ts --filter @tolki/str"
47
55
  },
48
56
  "types": "dist/index.d.ts",
49
57
  "exports": {