@cofondateurauchomage/libs 1.1.41 → 1.1.44

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/build/regex.js +2 -2
  2. package/package.json +1 -1
package/build/regex.js CHANGED
@@ -7,7 +7,7 @@ const regex = {
7
7
  linkedin: /^(http(s)?:\/\/)?([\w]+\.)?linkedin\.com\/(pub|in|profile)\/.+$/,
8
8
  name: /^[A-Za-zÜ-ü\s\-]{1,50}$/,
9
9
  tel: /^([+][1-9]{2,3}[ .\-]?)?[0-9]{1,3}([ .\-]?[0-9]{2,3}){3,6}$/,
10
- website: /^https:\/\/([\w]+\.)?[\w-]+\.\w+(:\d+)?(\/.*)?$/,
10
+ website: /^(?:http[s]?:\/\/.)?(?:www\.)?[-a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b(?:[-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)$/,
11
11
  };
12
12
  const pattern = (regex) => String(regex).replace("/^", "").replace("$/", "");
13
13
  exports.RGX = {
@@ -35,6 +35,6 @@ exports.RGX = {
35
35
  Website: {
36
36
  regex: regex.website,
37
37
  pattern: pattern(regex.website),
38
- message: `Le lien doit être un URL HTTPS valide. (ex: https://www.monsite.com)`,
38
+ message: `Le lien doit être un URL valide. (ex: https://www.monsite.com)`,
39
39
  },
40
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofondateurauchomage/libs",
3
- "version": "1.1.41",
3
+ "version": "1.1.44",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {