Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
fixed a bug with language
Browse files Browse the repository at this point in the history
  • Loading branch information
manzinello committed Oct 16, 2020
1 parent 7de537c commit d1b7200
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion dist/mailgo.dark.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mailgo.dark.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mailgo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/mailgo.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mailgo.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mailgo.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mailgo.nocss.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mailgo.nocss.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion extensions/mailgo.chrome.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion extensions/mailgo.chrome.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion extensions/mailgo.firefox.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion extensions/mailgo.firefox.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/mailgo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/mailgo.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mailgo",
"version": "0.10.3",
"version": "0.10.4",
"description": "a new concept of mailto and tel links",
"scripts": {
"build-js": "webpack",
Expand Down
2 changes: 1 addition & 1 deletion src/mailgo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ const mailgoSetLanguage = (): string => {
// find the correct language using the lang attribute, not just a === because there a are cases like fr-FR or fr_FR in html lang attribute
i18n.languages.forEach((language: any) => {
if (new RegExp("^" + language, "gi").test(htmlLang)) {
lang = htmlLang;
lang = language;
languageType = "html lang";
}
});
Expand Down

0 comments on commit d1b7200

Please sign in to comment.