bfg-common 1.4.551 → 1.4.553

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/lib/utils/utils.ts +11 -0
  2. package/package.json +1 -1
@@ -9,3 +9,14 @@ export const enumKeyFromValue = (
9
9
  // Возвращаем ключ, если найдена пара, иначе undefined
10
10
  return dataFromEnum ? dataFromEnum[0] : undefined
11
11
  }
12
+
13
+ export const extractContentLastSlash = (
14
+ inputString: string,
15
+ after = false
16
+ ): string => {
17
+ const regex = after ? /\/([^/]+)\/?$/ : /(.*)\//
18
+
19
+ const match = inputString.match(regex)
20
+
21
+ return match ? match[1] : ''
22
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.551",
4
+ "version": "1.4.553",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",