incyclist-services 1.7.92 → 1.7.93

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.
@@ -159,11 +159,12 @@ let RouteCard = (() => {
159
159
  const videoUrl = descr.videoUrl;
160
160
  if (!descr.videoUrl)
161
161
  return true;
162
+ const normalizedUrl = videoUrl.replace('video:////', 'video:///').replace('file:////', 'file:///');
162
163
  let path = undefined;
163
- if (videoUrl.startsWith('file:///'))
164
- path = videoUrl.replace('file:///', '');
165
- if (videoUrl.startsWith('video:///'))
166
- path = videoUrl.replace('video:///', '');
164
+ if (normalizedUrl.startsWith('file:///'))
165
+ path = normalizedUrl.replace('file://', '');
166
+ if (normalizedUrl.startsWith('video:///'))
167
+ path = normalizedUrl.replace('video://', '');
167
168
  if (path) {
168
169
  return await this.fileExists(path);
169
170
  }
@@ -156,11 +156,12 @@ let RouteCard = (() => {
156
156
  const videoUrl = descr.videoUrl;
157
157
  if (!descr.videoUrl)
158
158
  return true;
159
+ const normalizedUrl = videoUrl.replace('video:////', 'video:///').replace('file:////', 'file:///');
159
160
  let path = undefined;
160
- if (videoUrl.startsWith('file:///'))
161
- path = videoUrl.replace('file:///', '');
162
- if (videoUrl.startsWith('video:///'))
163
- path = videoUrl.replace('video:///', '');
161
+ if (normalizedUrl.startsWith('file:///'))
162
+ path = normalizedUrl.replace('file://', '');
163
+ if (normalizedUrl.startsWith('video:///'))
164
+ path = normalizedUrl.replace('video://', '');
164
165
  if (path) {
165
166
  return await this.fileExists(path);
166
167
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-services",
3
- "version": "1.7.92",
3
+ "version": "1.7.93",
4
4
  "peerDependencies": {
5
5
  "gd-eventlog": "^0.1.27"
6
6
  },