@naturalcycles/js-lib 14.219.1 → 14.219.2

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.
@@ -71,12 +71,12 @@ function _substringBeforeLast(s, delimiter) {
71
71
  exports._substringBeforeLast = _substringBeforeLast;
72
72
  function _substringAfter(s, delimiter) {
73
73
  const pos = s.indexOf(delimiter);
74
- return pos !== -1 ? s.slice(pos + 1) : s;
74
+ return pos !== -1 ? s.slice(pos + delimiter.length) : s;
75
75
  }
76
76
  exports._substringAfter = _substringAfter;
77
77
  function _substringAfterLast(s, delimiter) {
78
78
  const pos = s.lastIndexOf(delimiter);
79
- return pos !== -1 ? s.slice(pos + 1) : s;
79
+ return pos !== -1 ? s.slice(pos + delimiter.length) : s;
80
80
  }
81
81
  exports._substringAfterLast = _substringAfterLast;
82
82
  /**
@@ -59,11 +59,11 @@ export function _substringBeforeLast(s, delimiter) {
59
59
  }
60
60
  export function _substringAfter(s, delimiter) {
61
61
  const pos = s.indexOf(delimiter);
62
- return pos !== -1 ? s.slice(pos + 1) : s;
62
+ return pos !== -1 ? s.slice(pos + delimiter.length) : s;
63
63
  }
64
64
  export function _substringAfterLast(s, delimiter) {
65
65
  const pos = s.lastIndexOf(delimiter);
66
- return pos !== -1 ? s.slice(pos + 1) : s;
66
+ return pos !== -1 ? s.slice(pos + delimiter.length) : s;
67
67
  }
68
68
  /**
69
69
  * Returns the substring between LAST `leftDelimiter` and then FIRST `rightDelimiter`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/js-lib",
3
- "version": "14.219.1",
3
+ "version": "14.219.2",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "build-prod": "build-prod-esm-cjs",
@@ -65,12 +65,12 @@ export function _substringBeforeLast(s: string, delimiter: string): string {
65
65
 
66
66
  export function _substringAfter(s: string, delimiter: string): string {
67
67
  const pos = s.indexOf(delimiter)
68
- return pos !== -1 ? s.slice(pos + 1) : s
68
+ return pos !== -1 ? s.slice(pos + delimiter.length) : s
69
69
  }
70
70
 
71
71
  export function _substringAfterLast(s: string, delimiter: string): string {
72
72
  const pos = s.lastIndexOf(delimiter)
73
- return pos !== -1 ? s.slice(pos + 1) : s
73
+ return pos !== -1 ? s.slice(pos + delimiter.length) : s
74
74
  }
75
75
 
76
76
  /**