File tree Expand file tree Collapse file tree 4 files changed +10
-20
lines changed Expand file tree Collapse file tree 4 files changed +10
-20
lines changed Original file line number Diff line number Diff line change 1
- Copyright Mathias Bynens <http ://mathiasbynens.be/>
1
+ Copyright Mathias Bynens <https ://mathiasbynens.be/>
2
2
3
3
Permission is hereby granted, free of charge, to any person obtaining
4
4
a copy of this software and associated documentation files (the
Original file line number Diff line number Diff line change @@ -34,14 +34,14 @@ require('String.prototype.codePointAt');
34
34
35
35
## Notes
36
36
37
- [ A polyfill + test suite for ` String.fromCodePoint ` ] ( http ://mths.be/fromcodepoint) is available, too.
37
+ [ A polyfill + test suite for ` String.fromCodePoint ` ] ( https ://mths.be/fromcodepoint) is available, too.
38
38
39
39
## Author
40
40
41
41
| [ ![ twitter/mathias] ( https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70 )] ( https://twitter.com/mathias " Follow @mathias on Twitter ") |
42
42
| ---|
43
- | [ Mathias Bynens] ( http ://mathiasbynens.be/) |
43
+ | [ Mathias Bynens] ( https ://mathiasbynens.be/) |
44
44
45
45
## License
46
46
47
- This polyfill is available under the [ MIT] ( http ://mths.be/mit) license.
47
+ This polyfill is available under the [ MIT] ( https ://mths.be/mit) license.
Original file line number Diff line number Diff line change 1
- /*! http ://mths.be/codepointat v0.2.0 by @mathias */
1
+ /*! https ://mths.be/codepointat v0.2.0 by @mathias */
2
2
if ( ! String . prototype . codePointAt ) {
3
3
( function ( ) {
4
4
'use strict' ; // needed to support `apply`/`call` with `undefined`/`null`
@@ -35,7 +35,7 @@ if (!String.prototype.codePointAt) {
35
35
) {
36
36
second = string . charCodeAt ( index + 1 ) ;
37
37
if ( second >= 0xDC00 && second <= 0xDFFF ) { // low surrogate
38
- // http ://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
38
+ // https ://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
39
39
return ( first - 0xD800 ) * 0x400 + second - 0xDC00 + 0x10000 ;
40
40
}
41
41
}
Original file line number Diff line number Diff line change 2
2
"name" : " string.prototype.codepointat" ,
3
3
"version" : " 0.2.0" ,
4
4
"description" : " A robust & optimized `String.prototype.codePointAt` polyfill, based on the ECMAScript 6 specification." ,
5
- "homepage" : " http ://mths.be/codepointat" ,
5
+ "homepage" : " https ://mths.be/codepointat" ,
6
6
"main" : " codepointat.js" ,
7
7
"keywords" : [
8
8
" string" ,
11
11
" ecmascript" ,
12
12
" polyfill"
13
13
],
14
- "licenses" : [
15
- {
16
- "type" : " MIT" ,
17
- "url" : " http://mths.be/mit"
18
- }
19
- ],
14
+ "license" : " MIT" ,
20
15
"author" : {
21
16
"name" : " Mathias Bynens" ,
22
- "url" : " http ://mathiasbynens.be/"
17
+ "url" : " https ://mathiasbynens.be/"
23
18
},
24
19
"repository" : {
25
20
"type" : " git" ,
26
21
"url" : " https://github.com/mathiasbynens/String.prototype.codePointAt.git"
27
22
},
28
- "bugs" : {
29
- "url" : " https://github.com/mathiasbynens/String.prototype.codePointAt/issues"
30
- },
23
+ "bugs" : " https://github.com/mathiasbynens/String.prototype.codePointAt/issues" ,
31
24
"files" : [
32
25
" LICENSE-MIT.txt" ,
33
26
" codepointat.js"
34
27
],
35
- "directories" : {
36
- "test" : " tests"
37
- },
38
28
"scripts" : {
39
29
"test" : " node tests/tests.js" ,
40
30
"cover" : " istanbul cover --report html --verbose --dir coverage tests/tests.js"
You can’t perform that action at this time.
0 commit comments