@appartmint/mint 1.2.6 → 1.2.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.
@@ -94,6 +94,8 @@ $border-radius: 1rem !default;
94
94
  /// Root
95
95
  $root-bg-image: null !default;
96
96
  $root-bg-filter: null !default;
97
+ $root-bg-size: null !default;
98
+ $root-bg-position: null !default;
97
99
 
98
100
  /// Header
99
101
  $header-height: 4rem !default;
@@ -9,7 +9,13 @@ export abstract class MintText {
9
9
  * @returns The slugified string
10
10
  */
11
11
  static slug (text?: string): string {
12
- return text?.toLowerCase().replace(/\W+/g, '-').replace(/^-+|-+$/g, '') ?? '';
12
+ return text?.trim()
13
+ .toLowerCase()
14
+ .replace(/'/g, '')
15
+ .replace(/\W+/g, '-')
16
+ .replace(/-+/g, '-')
17
+ .replace(/^-+|-+$/g, '')
18
+ .replace(/^\/+|\/+$/g, '') ?? '';
13
19
  }
14
20
 
15
21
  /**
@@ -65,7 +71,7 @@ export abstract class MintText {
65
71
  /**
66
72
  * Pluralize the given word
67
73
  */
68
- static pluralize (word: string): string {
74
+ static plural (word: string): string {
69
75
  if (word.endsWith('ies') ||
70
76
  word.endsWith('es') ||
71
77
  (word.endsWith('s') && !word.endsWith('us') && !word.endsWith('is') && !word.endsWith('ss'))) {