@osimatic/helpers-js 1.0.105 → 1.0.106

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.
@@ -41,6 +41,10 @@ class Email {
41
41
  let regExEmail = /^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,5}$/;
42
42
  return regExEmail.exec(email) != null;
43
43
  }
44
+
45
+ static getMailToLink(email) {
46
+ return '<a href="mailto:'+email+'">'+email+'</a>';
47
+ }
44
48
  }
45
49
 
46
50
  class TelephoneNumber {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osimatic/helpers-js",
3
- "version": "1.0.105",
3
+ "version": "1.0.106",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"