Skip to content

Commit 821b4b4

Browse files
authored
Merge pull request #3 from Georepublic/add-japanese-style-regex
Add an another phone number types
2 parents 0304846 + a30224e commit 821b4b4

12 files changed

+12
-12
lines changed

dist/Autolinker.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Autolinker.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Autolinker.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Autolinker.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/es2015/matcher/phone-matcher.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/es2015/matcher/phone-matcher.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ <h3>Others...</h3>
7979

8080

8181

82-
<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>
82+
<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>
8383

8484

8585

docs/api/output/global.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/source/phone-matcher.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// called multiple times, thus instantiating PhoneMatcher and its RegExp
2727
// objects each time (which is very expensive - see https://github.com/gregjacobs/Autolinker.js/issues/314).
2828
// See descriptions of the properties where they are used for details about them
29-
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;
29+
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;
3030
<span id='Autolinker-matcher-Phone'>/**
3131
</span> * @class Autolinker.matcher.Phone
3232
* @extends Autolinker.matcher.Matcher

docs/dist/Autolinker.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/dist/Autolinker.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/matcher/phone-matcher.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { nonDigitRe } from '../regex-lib';
88
// called multiple times, thus instantiating PhoneMatcher and its RegExp
99
// objects each time (which is very expensive - see https://github.com/gregjacobs/Autolinker.js/issues/314).
1010
// See descriptions of the properties where they are used for details about them
11-
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;
11+
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;
1212

1313
/**
1414
* @class Autolinker.matcher.Phone

0 commit comments

Comments
 (0)