layers-design-system 2.0.8 → 2.0.9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "layers-design-system",
3
3
  "main": "src/main.js",
4
- "version": "2.0.8",
4
+ "version": "2.0.9",
5
5
  "scripts": {
6
6
  "start": "vue-cli-service serve ./src/main-docs.js",
7
7
  "build": "vue-cli-service build --target lib ./src/main.js",
@@ -7,7 +7,7 @@ const customUrlRegex = new RegExp(
7
7
  apostrophes: false,
8
8
  returnString: true,
9
9
  }) +
10
- '((</a>)?)',
10
+ ' ((</a>)?)',
11
11
  'g'
12
12
  )
13
13
 
@@ -29,7 +29,7 @@ export function addProtocol(link) {
29
29
 
30
30
  export function mountLink(text) {
31
31
  // Regular expression to match email addresses
32
- const emailRegex = /(\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b)/g;
32
+ const emailRegex = /(\b[\w.%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b)/g;
33
33
 
34
34
  // Replace each email address in text with a mailto link
35
35
  let finalText = text.replace(emailRegex, (email) => {