Skip to content

Commit

Permalink
Merge pull request #3 from Georepublic/add-japanese-style-regex
Browse files Browse the repository at this point in the history
Add an another phone number types
  • Loading branch information
chansuke authored Oct 16, 2020
2 parents 0304846 + a30224e commit 821b4b4
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/Autolinker.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/Autolinker.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/es2015/matcher/phone-matcher.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/es2015/matcher/phone-matcher.js.map

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

2 changes: 1 addition & 1 deletion docs/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h3>Others...</h3>



<div id='footer-content' style='display: none'>Generated on Fri 16 Oct 2020 18:16:46 by <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> 5.3.4.</div>
<div id='footer-content' style='display: none'>Generated on Fri 16 Oct 2020 18:44:35 by <a href='https://github.com/senchalabs/jsduck'>JSDuck</a> 5.3.4.</div>



Expand Down
2 changes: 1 addition & 1 deletion docs/api/output/global.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/api/source/phone-matcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// called multiple times, thus instantiating PhoneMatcher and its RegExp
// objects each time (which is very expensive - see https://github.com/gregjacobs/Autolinker.js/issues/314).
// See descriptions of the properties where they are used for details about them
var phoneMatcherRegex = /(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*|(?:(\+)?\d{2,3}[-\040.]?)?\(?\d{4}\)?[-\040.]?\d{4}/g;
var phoneMatcherRegex = /(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*|(?:(\+)?\d{2,3}[-\040.]?)?\(?\d{4}\)?[-\040.]?\d{4}|(?:(\+)?\d{4}[-\040.]?)?\(?\d{2}\)?[-\040.]?\d{4}|(?:[#])\d{4,10}/g;
<span id='Autolinker-matcher-Phone'>/**
</span> * @class Autolinker.matcher.Phone
* @extends Autolinker.matcher.Matcher
Expand Down
2 changes: 1 addition & 1 deletion docs/dist/Autolinker.js

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

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/matcher/phone-matcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { nonDigitRe } from '../regex-lib';
// called multiple times, thus instantiating PhoneMatcher and its RegExp
// objects each time (which is very expensive - see https://github.com/gregjacobs/Autolinker.js/issues/314).
// See descriptions of the properties where they are used for details about them
const phoneMatcherRegex = /(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*|(?:(\+)?\d{2,3}[-\040.]?)?\(?\d{4}\)?[-\040.]?\d{4}/g;
const phoneMatcherRegex = /(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*|(?:(\+)?\d{2,3}[-\040.]?)?\(?\d{4}\)?[-\040.]?\d{4}|(?:(\+)?\d{4}[-\040.]?)?\(?\d{2}\)?[-\040.]?\d{4}|(?:[#])\d{4,10}/g;

/**
* @class Autolinker.matcher.Phone
Expand Down

0 comments on commit 821b4b4

Please sign in to comment.