summaryrefslogtreecommitdiff
path: root/loleaflet/archived-packages/ignore-5.1.8-04ca5f0fb.tar
blob: 31c59d6b23d9a558d3b5fedb9f31900bb5c61dd0 (plain)
ofshex dumpascii
0000 70 61 63 6b 61 67 65 2f 4c 49 43 45 4e 53 45 2d 4d 49 54 00 00 00 00 00 00 00 00 00 00 00 00 00 package/LICENSE-MIT.............
0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0060 00 00 00 00 30 30 30 36 34 34 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30 30 30 30 ....000644..................0000
0080 30 30 32 31 30 37 20 00 33 35 36 30 31 31 36 36 30 34 20 00 30 31 30 37 31 34 20 00 30 00 00 00 002107..3560116604..010714..0...
00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0100 00 75 73 74 61 72 00 30 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .ustar.00.......................
0120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0140 00 00 00 00 00 00 00 00 00 30 30 30 30 30 30 20 00 30 30 30 30 30 30 20 00 00 00 00 00 00 00 00 .........000000..000000.........
0160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
01a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
01c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
01e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0200 43 6f 70 79 72 69 67 68 74 20 28 63 29 20 32 30 31 33 20 4b 61 65 6c 20 5a 68 61 6e 67 20 3c 69 Copyright.(c).2013.Kael.Zhang.<i
0220 40 6b 61 65 6c 2e 6d 65 3e 2c 20 63 6f 6e 74 72 69 62 75 74 6f 72 73 0a 68 74 74 70 3a 2f 2f 6b @kael.me>,.contributors.http://k
0240 61 65 6c 2e 6d 65 2f 0a 0a 50 65 72 6d 69 73 73 69 6f 6e 20 69 73 20 68 65 72 65 62 79 20 67 72 ael.me/..Permission.is.hereby.gr
0260 61 6e 74 65 64 2c 20 66 72 65 65 20 6f 66 20 63 68 61 72 67 65 2c 20 74 6f 20 61 6e 79 20 70 65 anted,.free.of.charge,.to.any.pe
0280 72 73 6f 6e 20 6f 62 74 61 69 6e 69 6e 67 0a 61 20 63 6f 70 79 20 6f 66 20 74 68 69 73 20 73 6f rson.obtaining.a.copy.of.this.so
02a0 66 74 77 61 72 65 20 61 6e 64 20 61 73 73 6f 63 69 61 74 65 64 20 64 6f 63 75 6d 65 6e 74 61 74 ftware.and.associated.documentat
02c0 69 6f 6e 20 66 69 6c 65 73 20 28 74 68 65 0a 22 53 6f 66 74 77 61 72 65 22 29 2c 20 74 6f 20 64 ion.files.(the."Software"),.to.d
02e0 65 61 6c 20 69 6e 20 74 68 65 20 53 6f 66 74 77 61 72 65 20 77 69 74 68 6f 75 74 20 72 65 73 74 eal.in.the.Software.without.rest
0300 72 69 63 74 69 6f 6e 2c 20 69 6e 63 6c 75 64 69 6e 67 0a 77 69 74 68 6f 75 74 20 6c 69 6d 69 74 riction,.including.without.limit
0320 61 74 69 6f 6e 20 74 68 65 20 72 69 67 68 74 73 20 74 6f 20 75 73 65 2c 20 63 6f 70 79 2c 20 6d ation.the.rights.to.use,.copy,.m
0340 6f 64 69 66 79 2c 20 6d 65 72 67 65 2c 20 70 75 62 6c 69 73 68 2c 0a 64 69 73 74 72 69 62 75 74 odify,.merge,.publish,.distribut
0360 65 2c 20 73 75 62 6c 69 63 65 6e 73 65 2c 20 61 6e 64 2f 6f 72 20 73 65 6c 6c 20 63 6f 70 69 65 e,.sublicense,.and/or.sell.copie
0380 73 20 6f 66 20 74 68 65 20 53 6f 66 74 77 61 72 65 2c 20 61 6e 64 20 74 6f 0a 70 65 72 6d 69 74 s.of.the.Software,.and.to.permit
03a0 20 70 65 72 73 6f 6e 73 20 74 6f 20 77 68 6f 6d 20 74 68 65 20 53 6f 66 74 77 61 72 65 20 69 73 .persons.to.whom.the.Software.is
03c0 20 66 75 72 6e 69 73 68 65 64 20 74 6f 20 64 6f 20 73 6f 2c 20 73 75 62 6a 65 63 74 20 74 6f 0a .furnished.to.do.so,.subject.to.
03e0 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 63 6f 6e 64 69 74 69 6f 6e 73 3a 0a 0a 54 68 65 20 61 the.following.conditions:..The.a
0400 62 6f 76 65 20 63 6f 70 79 72 69 67 68 74 20 6e 6f 74 69 63 65 20 61 6e 64 20 74 68 69 73 20 70 bove.copyright.notice.and.this.p
0420 65 72 6d 69 73 73 69 6f 6e 20 6e 6f 74 69 63 65 20 73 68 61 6c 6c 20 62 65 0a 69 6e 63 6c 75 64 ermission.notice.shall.be.includ
0440 65 64 20 69 6e 20 61 6c 6c 20 63 6f 70 69 65 73 20 6f 72 20 73 75 62 73 74 61 6e 74 69 61 6c 20 ed.in.all.copies.or.substantial.
0460 70 6f 72 74 69 6f 6e 73 20 6f 66 20 74 68 65 20 53 6f 66 74 77 61 72 65 2e 0a 0a 54 48 45 20 53 portions.of.the.Software...THE.S
0480 4f 46 54 57 41 52 45 20 49 53 20 50 52 4f 56 49 44 45 44 20 22 41 53 20 49 53 22 2c 20 57 49 54 OFTWARE.IS.PROVIDED."AS.IS",.WIT
04a0 48 4f 55 54 20 57 41 52 52 41 4e 54 59 20 4f 46 20 41 4e 59 20 4b 49 4e 44 2c 0a 45 58 50 52 45 HOUT.WARRANTY.OF.ANY.KIND,.EXPRE
04c0 53 53 20 4f 52 20 49 4d 50 4c 49 45 44 2c 20 49 4e 43 4c 55 44 49 4e 47 20 42 55 54 20 4e 4f 54 SS.OR.IMPLIED,.INCLUDING.BUT.NOT
04e0 20 4c 49 4d 49 54 45 44 20 54 4f 20 54 48 45 20 57 41 52 52 41 4e 54 49 45 53 20 4f 46 0a 4d 45 .LIMITED.TO.THE.WARRANTIES.OF.ME
0500 52 43 48 41 4e 54 41 42 49 4c 49 54 59 2c 20 46 49 54 4e 45 53 53 20 46 4f 52 20 41 20 50 41 52 RCHANTABILITY,.FITNESS.FOR.A.PAR
0520 54 49 43 55 4c 41 52 20 50 55 52 50 4f 53 45 20 41 4e 44 0a 4e 4f 4e 49 4e 46 52 49 4e 47 45 4d TICULAR.PURPOSE.AND.NONINFRINGEM
0540 45 4e 54 2e 20 49 4e 20 4e 4f 20 45 56 45 4e 54 20 53 48 41 4c 4c 20 54 48 45 20 41 55 54 48 4f ENT..IN.NO.EVENT.SHALL.THE.AUTHO
0560 52 53 20 4f 52 20 43 4f 50 59 52 49 47 48 54 20 48 4f 4c 44 45 52 53 20 42 45 0a 4c 49 41 42 4c RS.OR.COPYRIGHT.HOLDERS.BE.LIABL
0580 45 20 46 4f 52 20 41 4e 59 20 43 4c 41 49 4d 2c 20 44 41 4d 41 47 45 53 20 4f 52 20 4f 54 48 45 E.FOR.ANY.CLAIM,.DAMAGES.OR.OTHE
05a0 52 20 4c 49 41 42 49 4c 49 54 59 2c 20 57 48 45 54 48 45 52 20 49 4e 20 41 4e 20 41 43 54 49 4f R.LIABILITY,.WHETHER.IN.AN.ACTIO
05c0 4e 0a 4f 46 20 43 4f 4e 54 52 41 43 54 2c 20 54 4f 52 54 20 4f 52 20 4f 54 48 45 52 57 49 53 45 N.OF.CONTRACT,.TORT.OR.OTHERWISE
05e0 2c 20 41 52 49 53 49 4e 47 20 46 52 4f 4d 2c 20 4f 55 54 20 4f 46 20 4f 52 20 49 4e 20 43 4f 4e ,.ARISING.FROM,.OUT.OF.OR.IN.CON
0600 4e 45 43 54 49 4f 4e 0a 57 49 54 48 20 54 48 45 20 53 4f 46 54 57 41 52 45 20 4f 52 20 54 48 45 NECTION.WITH.THE.SOFTWARE.OR.THE
0620 20 55 53 45 20 4f 52 20 4f 54 48 45 52 20 44 45 41 4c 49 4e 47 53 20 49 4e 20 54 48 45 20 53 4f .USE.OR.OTHER.DEALINGS.IN.THE.SO
0640 46 54 57 41 52 45 2e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FTWARE..........................
0660 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0680 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
06a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
06c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
06e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0720 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0740 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
07a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
07c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
07e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0800 70 61 63 6b 61 67 65 2f 69 6e 64 65 78 2e 6a 73 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 package/index.js................
0820 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0860 00 00 00 00 30 30 30 36 34 34 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30 30 30 30 ....000644..................0000
0880 30 33 35 37 37 30 20 00 33 35 36 30 31 31 36 36 30 34 20 00 30 31 30 37 34 31 20 00 30 00 00 00 035770..3560116604..010741..0...
08a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
08c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
08e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0900 00 75 73 74 61 72 00 30 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .ustar.00.......................
0920 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0940 00 00 00 00 00 00 00 00 00 30 30 30 30 30 30 20 00 30 30 30 30 30 30 20 00 00 00 00 00 00 00 00 .........000000..000000.........
0960 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0980 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
09a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
09c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
09e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0a00 2f 2f 20 41 20 73 69 6d 70 6c 65 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 6f 66 20 6d 61 //.A.simple.implementation.of.ma
0a20 6b 65 2d 61 72 72 61 79 0a 66 75 6e 63 74 69 6f 6e 20 6d 61 6b 65 41 72 72 61 79 20 28 73 75 62 ke-array.function.makeArray.(sub
0a40 6a 65 63 74 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 41 72 72 61 79 2e 69 73 41 72 72 61 79 28 73 ject).{...return.Array.isArray(s
0a60 75 62 6a 65 63 74 29 0a 20 20 20 20 3f 20 73 75 62 6a 65 63 74 0a 20 20 20 20 3a 20 5b 73 75 62 ubject).....?.subject.....:.[sub
0a80 6a 65 63 74 5d 0a 7d 0a 0a 63 6f 6e 73 74 20 45 4d 50 54 59 20 3d 20 27 27 0a 63 6f 6e 73 74 20 ject].}..const.EMPTY.=.''.const.
0aa0 53 50 41 43 45 20 3d 20 27 20 27 0a 63 6f 6e 73 74 20 45 53 43 41 50 45 20 3d 20 27 5c 5c 27 0a SPACE.=.'.'.const.ESCAPE.=.'\\'.
0ac0 63 6f 6e 73 74 20 52 45 47 45 58 5f 54 45 53 54 5f 42 4c 41 4e 4b 5f 4c 49 4e 45 20 3d 20 2f 5e const.REGEX_TEST_BLANK_LINE.=./^
0ae0 5c 73 2b 24 2f 0a 63 6f 6e 73 74 20 52 45 47 45 58 5f 52 45 50 4c 41 43 45 5f 4c 45 41 44 49 4e \s+$/.const.REGEX_REPLACE_LEADIN
0b00 47 5f 45 58 43 41 50 45 44 5f 45 58 43 4c 41 4d 41 54 49 4f 4e 20 3d 20 2f 5e 5c 5c 21 2f 0a 63 G_EXCAPED_EXCLAMATION.=./^\\!/.c
0b20 6f 6e 73 74 20 52 45 47 45 58 5f 52 45 50 4c 41 43 45 5f 4c 45 41 44 49 4e 47 5f 45 58 43 41 50 onst.REGEX_REPLACE_LEADING_EXCAP
0b40 45 44 5f 48 41 53 48 20 3d 20 2f 5e 5c 5c 23 2f 0a 63 6f 6e 73 74 20 52 45 47 45 58 5f 53 50 4c ED_HASH.=./^\\#/.const.REGEX_SPL
0b60 49 54 41 4c 4c 5f 43 52 4c 46 20 3d 20 2f 5c 72 3f 5c 6e 2f 67 0a 2f 2f 20 2f 66 6f 6f 2c 0a 2f ITALL_CRLF.=./\r?\n/g.//./foo,./
0b80 2f 20 2e 2f 66 6f 6f 2c 0a 2f 2f 20 2e 2e 2f 66 6f 6f 2c 0a 2f 2f 20 2e 0a 2f 2f 20 2e 2e 0a 63 /../foo,.//.../foo,.//...//....c
0ba0 6f 6e 73 74 20 52 45 47 45 58 5f 54 45 53 54 5f 49 4e 56 41 4c 49 44 5f 50 41 54 48 20 3d 20 2f onst.REGEX_TEST_INVALID_PATH.=./
0bc0 5e 5c 2e 2a 5c 2f 7c 5e 5c 2e 2b 24 2f 0a 0a 63 6f 6e 73 74 20 53 4c 41 53 48 20 3d 20 27 2f 27 ^\.*\/|^\.+$/..const.SLASH.=.'/'
0be0 0a 63 6f 6e 73 74 20 4b 45 59 5f 49 47 4e 4f 52 45 20 3d 20 74 79 70 65 6f 66 20 53 79 6d 62 6f .const.KEY_IGNORE.=.typeof.Symbo
0c00 6c 20 21 3d 3d 20 27 75 6e 64 65 66 69 6e 65 64 27 0a 20 20 3f 20 53 79 6d 62 6f 6c 2e 66 6f 72 l.!==.'undefined'...?.Symbol.for
0c20 28 27 6e 6f 64 65 2d 69 67 6e 6f 72 65 27 29 0a 20 20 2f 2a 20 69 73 74 61 6e 62 75 6c 20 69 67 ('node-ignore').../*.istanbul.ig
0c40 6e 6f 72 65 20 6e 65 78 74 20 2a 2f 0a 20 20 3a 20 27 6e 6f 64 65 2d 69 67 6e 6f 72 65 27 0a 0a nore.next.*/...:.'node-ignore'..
0c60 63 6f 6e 73 74 20 64 65 66 69 6e 65 20 3d 20 28 6f 62 6a 65 63 74 2c 20 6b 65 79 2c 20 76 61 6c const.define.=.(object,.key,.val
0c80 75 65 29 20 3d 3e 0a 20 20 4f 62 6a 65 63 74 2e 64 65 66 69 6e 65 50 72 6f 70 65 72 74 79 28 6f ue).=>...Object.defineProperty(o
0ca0 62 6a 65 63 74 2c 20 6b 65 79 2c 20 7b 76 61 6c 75 65 7d 29 0a 0a 63 6f 6e 73 74 20 52 45 47 45 bject,.key,.{value})..const.REGE
0cc0 58 5f 52 45 47 45 58 50 5f 52 41 4e 47 45 20 3d 20 2f 28 5b 30 2d 7a 5d 29 2d 28 5b 30 2d 7a 5d X_REGEXP_RANGE.=./([0-z])-([0-z]
0ce0 29 2f 67 0a 0a 2f 2f 20 53 61 6e 69 74 69 7a 65 20 74 68 65 20 72 61 6e 67 65 20 6f 66 20 61 20 )/g..//.Sanitize.the.range.of.a.
0d00 72 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e 0a 2f 2f 20 54 68 65 20 63 61 73 65 73 20 regular.expression.//.The.cases.
0d20 61 72 65 20 63 6f 6d 70 6c 69 63 61 74 65 64 2c 20 73 65 65 20 74 65 73 74 20 63 61 73 65 73 20 are.complicated,.see.test.cases.
0d40 66 6f 72 20 64 65 74 61 69 6c 73 0a 63 6f 6e 73 74 20 73 61 6e 69 74 69 7a 65 52 61 6e 67 65 20 for.details.const.sanitizeRange.
0d60 3d 20 72 61 6e 67 65 20 3d 3e 20 72 61 6e 67 65 2e 72 65 70 6c 61 63 65 28 0a 20 20 52 45 47 45 =.range.=>.range.replace(...REGE
0d80 58 5f 52 45 47 45 58 50 5f 52 41 4e 47 45 2c 0a 20 20 28 6d 61 74 63 68 2c 20 66 72 6f 6d 2c 20 X_REGEXP_RANGE,...(match,.from,.
0da0 74 6f 29 20 3d 3e 20 66 72 6f 6d 2e 63 68 61 72 43 6f 64 65 41 74 28 30 29 20 3c 3d 20 74 6f 2e to).=>.from.charCodeAt(0).<=.to.
0dc0 63 68 61 72 43 6f 64 65 41 74 28 30 29 0a 20 20 20 20 3f 20 6d 61 74 63 68 0a 20 20 20 20 2f 2f charCodeAt(0).....?.match.....//
0de0 20 49 6e 76 61 6c 69 64 20 72 61 6e 67 65 20 28 6f 75 74 20 6f 66 20 6f 72 64 65 72 29 20 77 68 .Invalid.range.(out.of.order).wh
0e00 69 63 68 20 69 73 20 6f 6b 20 66 6f 72 20 67 69 74 69 67 6e 6f 72 65 20 72 75 6c 65 73 20 62 75 ich.is.ok.for.gitignore.rules.bu
0e20 74 0a 20 20 20 20 2f 2f 20 20 20 66 61 74 61 6c 20 66 6f 72 20 4a 61 76 61 53 63 72 69 70 74 20 t.....//...fatal.for.JavaScript.
0e40 72 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e 2c 20 73 6f 20 65 6c 69 6d 69 6e 61 74 65 regular.expression,.so.eliminate
0e60 20 69 74 2e 0a 20 20 20 20 3a 20 45 4d 50 54 59 0a 29 0a 0a 2f 2f 20 53 65 65 20 66 69 78 74 75 .it......:.EMPTY.)..//.See.fixtu
0e80 72 65 73 20 23 35 39 0a 63 6f 6e 73 74 20 63 6c 65 61 6e 52 61 6e 67 65 42 61 63 6b 53 6c 61 73 res.#59.const.cleanRangeBackSlas
0ea0 68 20 3d 20 73 6c 61 73 68 65 73 20 3d 3e 20 7b 0a 20 20 63 6f 6e 73 74 20 7b 6c 65 6e 67 74 68 h.=.slashes.=>.{...const.{length
0ec0 7d 20 3d 20 73 6c 61 73 68 65 73 0a 20 20 72 65 74 75 72 6e 20 73 6c 61 73 68 65 73 2e 73 6c 69 }.=.slashes...return.slashes.sli
0ee0 63 65 28 30 2c 20 6c 65 6e 67 74 68 20 2d 20 6c 65 6e 67 74 68 20 25 20 32 29 0a 7d 0a 0a 2f 2f ce(0,.length.-.length.%.2).}..//
0f00 20 3e 20 49 66 20 74 68 65 20 70 61 74 74 65 72 6e 20 65 6e 64 73 20 77 69 74 68 20 61 20 73 6c .>.If.the.pattern.ends.with.a.sl
0f20 61 73 68 2c 0a 2f 2f 20 3e 20 69 74 20 69 73 20 72 65 6d 6f 76 65 64 20 66 6f 72 20 74 68 65 20 ash,.//.>.it.is.removed.for.the.
0f40 70 75 72 70 6f 73 65 20 6f 66 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 64 65 73 63 72 69 70 purpose.of.the.following.descrip
0f60 74 69 6f 6e 2c 0a 2f 2f 20 3e 20 62 75 74 20 69 74 20 77 6f 75 6c 64 20 6f 6e 6c 79 20 66 69 6e tion,.//.>.but.it.would.only.fin
0f80 64 20 61 20 6d 61 74 63 68 20 77 69 74 68 20 61 20 64 69 72 65 63 74 6f 72 79 2e 0a 2f 2f 20 3e d.a.match.with.a.directory..//.>
0fa0 20 49 6e 20 6f 74 68 65 72 20 77 6f 72 64 73 2c 20 66 6f 6f 2f 20 77 69 6c 6c 20 6d 61 74 63 68 .In.other.words,.foo/.will.match
0fc0 20 61 20 64 69 72 65 63 74 6f 72 79 20 66 6f 6f 20 61 6e 64 20 70 61 74 68 73 20 75 6e 64 65 72 .a.directory.foo.and.paths.under
0fe0 6e 65 61 74 68 20 69 74 2c 0a 2f 2f 20 3e 20 62 75 74 20 77 69 6c 6c 20 6e 6f 74 20 6d 61 74 63 neath.it,.//.>.but.will.not.matc
1000 68 20 61 20 72 65 67 75 6c 61 72 20 66 69 6c 65 20 6f 72 20 61 20 73 79 6d 62 6f 6c 69 63 20 6c h.a.regular.file.or.a.symbolic.l
1020 69 6e 6b 20 66 6f 6f 0a 2f 2f 20 3e 20 20 28 74 68 69 73 20 69 73 20 63 6f 6e 73 69 73 74 65 6e ink.foo.//.>..(this.is.consisten
1040 74 20 77 69 74 68 20 74 68 65 20 77 61 79 20 68 6f 77 20 70 61 74 68 73 70 65 63 20 77 6f 72 6b t.with.the.way.how.pathspec.work
1060 73 20 69 6e 20 67 65 6e 65 72 61 6c 20 69 6e 20 47 69 74 29 2e 0a 2f 2f 20 27 60 66 6f 6f 2f 60 s.in.general.in.Git)..//.'`foo/`
1080 27 20 77 69 6c 6c 20 6e 6f 74 20 6d 61 74 63 68 20 72 65 67 75 6c 61 72 20 66 69 6c 65 20 27 60 '.will.not.match.regular.file.'`
10a0 66 6f 6f 60 27 20 6f 72 20 73 79 6d 62 6f 6c 69 63 20 6c 69 6e 6b 20 27 60 66 6f 6f 60 27 0a 2f foo`'.or.symbolic.link.'`foo`'./
10c0 2f 20 2d 3e 20 69 67 6e 6f 72 65 2d 72 75 6c 65 73 20 77 69 6c 6c 20 6e 6f 74 20 64 65 61 6c 20 /.->.ignore-rules.will.not.deal.
10e0 77 69 74 68 20 69 74 2c 20 62 65 63 61 75 73 65 20 69 74 20 63 6f 73 74 73 20 65 78 74 72 61 20 with.it,.because.it.costs.extra.
1100 60 66 73 2e 73 74 61 74 60 20 63 61 6c 6c 0a 2f 2f 20 20 20 20 20 20 79 6f 75 20 63 6f 75 6c 64 `fs.stat`.call.//......you.could
1120 20 75 73 65 20 6f 70 74 69 6f 6e 20 60 6d 61 72 6b 3a 20 74 72 75 65 60 20 77 69 74 68 20 60 67 .use.option.`mark:.true`.with.`g
1140 6c 6f 62 60 0a 0a 2f 2f 20 27 60 66 6f 6f 2f 60 27 20 73 68 6f 75 6c 64 20 6e 6f 74 20 63 6f 6e lob`..//.'`foo/`'.should.not.con
1160 74 69 6e 75 65 20 77 69 74 68 20 74 68 65 20 27 60 2e 2e 60 27 0a 63 6f 6e 73 74 20 52 45 50 4c tinue.with.the.'`..`'.const.REPL
1180 41 43 45 52 53 20 3d 20 5b 0a 0a 20 20 2f 2f 20 3e 20 54 72 61 69 6c 69 6e 67 20 73 70 61 63 65 ACERS.=.[....//.>.Trailing.space
11a0 73 20 61 72 65 20 69 67 6e 6f 72 65 64 20 75 6e 6c 65 73 73 20 74 68 65 79 20 61 72 65 20 71 75 s.are.ignored.unless.they.are.qu
11c0 6f 74 65 64 20 77 69 74 68 20 62 61 63 6b 73 6c 61 73 68 20 28 22 5c 22 29 0a 20 20 5b 0a 20 20 oted.with.backslash.("\")...[...
11e0 20 20 2f 2f 20 28 61 5c 20 29 20 2d 3e 20 28 61 20 29 0a 20 20 20 20 2f 2f 20 28 61 20 20 29 20 ..//.(a\.).->.(a.).....//.(a..).
1200 2d 3e 20 28 61 29 0a 20 20 20 20 2f 2f 20 28 61 20 5c 20 29 20 2d 3e 20 28 61 20 20 29 0a 20 20 ->.(a).....//.(a.\.).->.(a..)...
1220 20 20 2f 5c 5c 3f 5c 73 2b 24 2f 2c 0a 20 20 20 20 6d 61 74 63 68 20 3d 3e 20 6d 61 74 63 68 2e ../\\?\s+$/,.....match.=>.match.
1240 69 6e 64 65 78 4f 66 28 27 5c 5c 27 29 20 3d 3d 3d 20 30 0a 20 20 20 20 20 20 3f 20 53 50 41 43 indexOf('\\').===.0.......?.SPAC
1260 45 0a 20 20 20 20 20 20 3a 20 45 4d 50 54 59 0a 20 20 5d 2c 0a 0a 20 20 2f 2f 20 72 65 70 6c 61 E.......:.EMPTY...],....//.repla
1280 63 65 20 28 5c 20 29 20 77 69 74 68 20 27 20 27 0a 20 20 5b 0a 20 20 20 20 2f 5c 5c 5c 73 2f 67 ce.(\.).with.'.'...[...../\\\s/g
12a0 2c 0a 20 20 20 20 28 29 20 3d 3e 20 53 50 41 43 45 0a 20 20 5d 2c 0a 0a 20 20 2f 2f 20 45 73 63 ,.....().=>.SPACE...],....//.Esc
12c0 61 70 65 20 6d 65 74 61 63 68 61 72 61 63 74 65 72 73 0a 20 20 2f 2f 20 77 68 69 63 68 20 69 73 ape.metacharacters...//.which.is
12e0 20 77 72 69 74 74 65 6e 20 64 6f 77 6e 20 62 79 20 75 73 65 72 73 20 62 75 74 20 6d 65 61 6e 73 .written.down.by.users.but.means
1300 20 73 70 65 63 69 61 6c 20 66 6f 72 20 72 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e 73 .special.for.regular.expressions
1320 2e 0a 0a 20 20 2f 2f 20 3e 20 54 68 65 72 65 20 61 72 65 20 31 32 20 63 68 61 72 61 63 74 65 72 .....//.>.There.are.12.character
1340 73 20 77 69 74 68 20 73 70 65 63 69 61 6c 20 6d 65 61 6e 69 6e 67 73 3a 0a 20 20 2f 2f 20 3e 20 s.with.special.meanings:...//.>.
1360 2d 20 74 68 65 20 62 61 63 6b 73 6c 61 73 68 20 5c 2c 0a 20 20 2f 2f 20 3e 20 2d 20 74 68 65 20 -.the.backslash.\,...//.>.-.the.
1380 63 61 72 65 74 20 5e 2c 0a 20 20 2f 2f 20 3e 20 2d 20 74 68 65 20 64 6f 6c 6c 61 72 20 73 69 67 caret.^,...//.>.-.the.dollar.sig
13a0 6e 20 24 2c 0a 20 20 2f 2f 20 3e 20 2d 20 74 68 65 20 70 65 72 69 6f 64 20 6f 72 20 64 6f 74 20 n.$,...//.>.-.the.period.or.dot.
13c0 2e 2c 0a 20 20 2f 2f 20 3e 20 2d 20 74 68 65 20 76 65 72 74 69 63 61 6c 20 62 61 72 20 6f 72 20 .,...//.>.-.the.vertical.bar.or.
13e0 70 69 70 65 20 73 79 6d 62 6f 6c 20 7c 2c 0a 20 20 2f 2f 20 3e 20 2d 20 74 68 65 20 71 75 65 73 pipe.symbol.|,...//.>.-.the.ques
1400 74 69 6f 6e 20 6d 61 72 6b 20 3f 2c 0a 20 20 2f 2f 20 3e 20 2d 20 74 68 65 20 61 73 74 65 72 69 tion.mark.?,...//.>.-.the.asteri
1420 73 6b 20 6f 72 20 73 74 61 72 20 2a 2c 0a 20 20 2f 2f 20 3e 20 2d 20 74 68 65 20 70 6c 75 73 20 sk.or.star.*,...//.>.-.the.plus.
1440 73 69 67 6e 20 2b 2c 0a 20 20 2f 2f 20 3e 20 2d 20 74 68 65 20 6f 70 65 6e 69 6e 67 20 70 61 72 sign.+,...//.>.-.the.opening.par
1460 65 6e 74 68 65 73 69 73 20 28 2c 0a 20 20 2f 2f 20 3e 20 2d 20 74 68 65 20 63 6c 6f 73 69 6e 67 enthesis.(,...//.>.-.the.closing
1480 20 70 61 72 65 6e 74 68 65 73 69 73 20 29 2c 0a 20 20 2f 2f 20 3e 20 2d 20 61 6e 64 20 74 68 65 .parenthesis.),...//.>.-.and.the
14a0 20 6f 70 65 6e 69 6e 67 20 73 71 75 61 72 65 20 62 72 61 63 6b 65 74 20 5b 2c 0a 20 20 2f 2f 20 .opening.square.bracket.[,...//.
14c0 3e 20 2d 20 74 68 65 20 6f 70 65 6e 69 6e 67 20 63 75 72 6c 79 20 62 72 61 63 65 20 7b 2c 0a 20 >.-.the.opening.curly.brace.{,..
14e0 20 2f 2f 20 3e 20 54 68 65 73 65 20 73 70 65 63 69 61 6c 20 63 68 61 72 61 63 74 65 72 73 20 61 .//.>.These.special.characters.a
1500 72 65 20 6f 66 74 65 6e 20 63 61 6c 6c 65 64 20 22 6d 65 74 61 63 68 61 72 61 63 74 65 72 73 22 re.often.called."metacharacters"
1520 2e 0a 20 20 5b 0a 20 20 20 20 2f 5b 5c 5c 24 2e 7c 2a 2b 28 29 7b 5e 5d 2f 67 2c 0a 20 20 20 20 ....[...../[\\$.|*+(){^]/g,.....
1540 6d 61 74 63 68 20 3d 3e 20 60 5c 5c 24 7b 6d 61 74 63 68 7d 60 0a 20 20 5d 2c 0a 0a 20 20 5b 0a match.=>.`\\${match}`...],....[.
1560 20 20 20 20 2f 2f 20 3e 20 61 20 71 75 65 73 74 69 6f 6e 20 6d 61 72 6b 20 28 3f 29 20 6d 61 74 ....//.>.a.question.mark.(?).mat
1580 63 68 65 73 20 61 20 73 69 6e 67 6c 65 20 63 68 61 72 61 63 74 65 72 0a 20 20 20 20 2f 28 3f 21 ches.a.single.character...../(?!
15a0 5c 5c 29 5c 3f 2f 67 2c 0a 20 20 20 20 28 29 20 3d 3e 20 27 5b 5e 2f 5d 27 0a 20 20 5d 2c 0a 0a \\)\?/g,.....().=>.'[^/]'...],..
15c0 20 20 2f 2f 20 6c 65 61 64 69 6e 67 20 73 6c 61 73 68 0a 20 20 5b 0a 0a 20 20 20 20 2f 2f 20 3e ..//.leading.slash...[......//.>
15e0 20 41 20 6c 65 61 64 69 6e 67 20 73 6c 61 73 68 20 6d 61 74 63 68 65 73 20 74 68 65 20 62 65 67 .A.leading.slash.matches.the.beg
1600 69 6e 6e 69 6e 67 20 6f 66 20 74 68 65 20 70 61 74 68 6e 61 6d 65 2e 0a 20 20 20 20 2f 2f 20 3e inning.of.the.pathname......//.>
1620 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 22 2f 2a 2e 63 22 20 6d 61 74 63 68 65 73 20 22 63 61 .For.example,."/*.c".matches."ca
1640 74 2d 66 69 6c 65 2e 63 22 20 62 75 74 20 6e 6f 74 20 22 6d 6f 7a 69 6c 6c 61 2d 73 68 61 31 2f t-file.c".but.not."mozilla-sha1/
1660 73 68 61 31 2e 63 22 2e 0a 20 20 20 20 2f 2f 20 41 20 6c 65 61 64 69 6e 67 20 73 6c 61 73 68 20 sha1.c"......//.A.leading.slash.
1680 6d 61 74 63 68 65 73 20 74 68 65 20 62 65 67 69 6e 6e 69 6e 67 20 6f 66 20 74 68 65 20 70 61 74 matches.the.beginning.of.the.pat
16a0 68 6e 61 6d 65 0a 20 20 20 20 2f 5e 5c 2f 2f 2c 0a 20 20 20 20 28 29 20 3d 3e 20 27 5e 27 0a 20 hname...../^\//,.....().=>.'^'..
16c0 20 5d 2c 0a 0a 20 20 2f 2f 20 72 65 70 6c 61 63 65 20 73 70 65 63 69 61 6c 20 6d 65 74 61 63 68 .],....//.replace.special.metach
16e0 61 72 61 63 74 65 72 20 73 6c 61 73 68 20 61 66 74 65 72 20 74 68 65 20 6c 65 61 64 69 6e 67 20 aracter.slash.after.the.leading.
1700 73 6c 61 73 68 0a 20 20 5b 0a 20 20 20 20 2f 5c 2f 2f 67 2c 0a 20 20 20 20 28 29 20 3d 3e 20 27 slash...[...../\//g,.....().=>.'
1720 5c 5c 2f 27 0a 20 20 5d 2c 0a 0a 20 20 5b 0a 20 20 20 20 2f 2f 20 3e 20 41 20 6c 65 61 64 69 6e \\/'...],....[.....//.>.A.leadin
1740 67 20 22 2a 2a 22 20 66 6f 6c 6c 6f 77 65 64 20 62 79 20 61 20 73 6c 61 73 68 20 6d 65 61 6e 73 g."**".followed.by.a.slash.means
1760 20 6d 61 74 63 68 20 69 6e 20 61 6c 6c 20 64 69 72 65 63 74 6f 72 69 65 73 2e 0a 20 20 20 20 2f .match.in.all.directories....../
1780 2f 20 3e 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 22 2a 2a 2f 66 6f 6f 22 20 6d 61 74 63 68 65 /.>.For.example,."**/foo".matche
17a0 73 20 66 69 6c 65 20 6f 72 20 64 69 72 65 63 74 6f 72 79 20 22 66 6f 6f 22 20 61 6e 79 77 68 65 s.file.or.directory."foo".anywhe
17c0 72 65 2c 0a 20 20 20 20 2f 2f 20 3e 20 74 68 65 20 73 61 6d 65 20 61 73 20 70 61 74 74 65 72 6e re,.....//.>.the.same.as.pattern
17e0 20 22 66 6f 6f 22 2e 0a 20 20 20 20 2f 2f 20 3e 20 22 2a 2a 2f 66 6f 6f 2f 62 61 72 22 20 6d 61 ."foo"......//.>."**/foo/bar".ma
1800 74 63 68 65 73 20 66 69 6c 65 20 6f 72 20 64 69 72 65 63 74 6f 72 79 20 22 62 61 72 22 20 61 6e tches.file.or.directory."bar".an
1820 79 77 68 65 72 65 20 74 68 61 74 20 69 73 20 64 69 72 65 63 74 6c 79 0a 20 20 20 20 2f 2f 20 3e ywhere.that.is.directly.....//.>
1840 20 20 20 75 6e 64 65 72 20 64 69 72 65 63 74 6f 72 79 20 22 66 6f 6f 22 2e 0a 20 20 20 20 2f 2f ...under.directory."foo"......//
1860 20 4e 6f 74 69 63 65 20 74 68 61 74 20 74 68 65 20 27 2a 27 73 20 68 61 76 65 20 62 65 65 6e 20 .Notice.that.the.'*'s.have.been.
1880 72 65 70 6c 61 63 65 64 20 61 73 20 27 5c 5c 2a 27 0a 20 20 20 20 2f 5e 5c 5e 2a 5c 5c 5c 2a 5c replaced.as.'\\*'...../^\^*\\\*\
18a0 5c 5c 2a 5c 5c 5c 2f 2f 2c 0a 0a 20 20 20 20 2f 2f 20 27 2a 2a 2f 66 6f 6f 27 20 3c 2d 3e 20 27 \\*\\\//,......//.'**/foo'.<->.'
18c0 66 6f 6f 27 0a 20 20 20 20 28 29 20 3d 3e 20 27 5e 28 3f 3a 2e 2a 5c 5c 2f 29 3f 27 0a 20 20 5d foo'.....().=>.'^(?:.*\\/)?'...]
18e0 2c 0a 0a 20 20 2f 2f 20 73 74 61 72 74 69 6e 67 0a 20 20 5b 0a 20 20 20 20 2f 2f 20 74 68 65 72 ,....//.starting...[.....//.ther
1900 65 20 77 69 6c 6c 20 62 65 20 6e 6f 20 6c 65 61 64 69 6e 67 20 27 2f 27 0a 20 20 20 20 2f 2f 20 e.will.be.no.leading.'/'.....//.
1920 20 20 28 77 68 69 63 68 20 68 61 73 20 62 65 65 6e 20 72 65 70 6c 61 63 65 64 20 62 79 20 73 65 ..(which.has.been.replaced.by.se
1940 63 74 69 6f 6e 20 22 6c 65 61 64 69 6e 67 20 73 6c 61 73 68 22 29 0a 20 20 20 20 2f 2f 20 49 66 ction."leading.slash").....//.If
1960 20 73 74 61 72 74 73 20 77 69 74 68 20 27 2a 2a 27 2c 20 61 64 64 69 6e 67 20 61 20 27 5e 27 20 .starts.with.'**',.adding.a.'^'.
1980 74 6f 20 74 68 65 20 72 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e 20 61 6c 73 6f 20 77 to.the.regular.expression.also.w
19a0 6f 72 6b 73 0a 20 20 20 20 2f 5e 28 3f 3d 5b 5e 5e 5d 29 2f 2c 0a 20 20 20 20 66 75 6e 63 74 69 orks...../^(?=[^^])/,.....functi
19c0 6f 6e 20 73 74 61 72 74 69 6e 67 52 65 70 6c 61 63 65 72 20 28 29 20 7b 0a 20 20 20 20 20 20 2f on.startingReplacer.().{......./
19e0 2f 20 49 66 20 68 61 73 20 61 20 73 6c 61 73 68 20 60 2f 60 20 61 74 20 74 68 65 20 62 65 67 69 /.If.has.a.slash.`/`.at.the.begi
1a00 6e 6e 69 6e 67 20 6f 72 20 6d 69 64 64 6c 65 0a 20 20 20 20 20 20 72 65 74 75 72 6e 20 21 2f 5c nning.or.middle.......return.!/\
1a20 2f 28 3f 21 24 29 2f 2e 74 65 73 74 28 74 68 69 73 29 0a 20 20 20 20 20 20 20 20 2f 2f 20 3e 20 /(?!$)/.test(this).........//.>.
1a40 50 72 69 6f 72 20 74 6f 20 32 2e 32 32 2e 31 0a 20 20 20 20 20 20 20 20 2f 2f 20 3e 20 49 66 20 Prior.to.2.22.1.........//.>.If.
1a60 74 68 65 20 70 61 74 74 65 72 6e 20 64 6f 65 73 20 6e 6f 74 20 63 6f 6e 74 61 69 6e 20 61 20 73 the.pattern.does.not.contain.a.s
1a80 6c 61 73 68 20 2f 2c 0a 20 20 20 20 20 20 20 20 2f 2f 20 3e 20 20 20 47 69 74 20 74 72 65 61 74 lash./,.........//.>...Git.treat
1aa0 73 20 69 74 20 61 73 20 61 20 73 68 65 6c 6c 20 67 6c 6f 62 20 70 61 74 74 65 72 6e 0a 20 20 20 s.it.as.a.shell.glob.pattern....
1ac0 20 20 20 20 20 2f 2f 20 41 63 74 75 61 6c 6c 79 2c 20 69 66 20 74 68 65 72 65 20 69 73 20 6f 6e .....//.Actually,.if.there.is.on
1ae0 6c 79 20 61 20 74 72 61 69 6c 69 6e 67 20 73 6c 61 73 68 2c 0a 20 20 20 20 20 20 20 20 2f 2f 20 ly.a.trailing.slash,.........//.
1b00 20 20 67 69 74 20 61 6c 73 6f 20 74 72 65 61 74 73 20 69 74 20 61 73 20 61 20 73 68 65 6c 6c 20 ..git.also.treats.it.as.a.shell.
1b20 67 6c 6f 62 20 70 61 74 74 65 72 6e 0a 0a 20 20 20 20 20 20 20 20 2f 2f 20 41 66 74 65 72 20 32 glob.pattern..........//.After.2
1b40 2e 32 32 2e 31 20 28 63 6f 6d 70 61 74 69 62 6c 65 20 62 75 74 20 63 6c 65 61 72 65 72 29 0a 20 .22.1.(compatible.but.clearer)..
1b60 20 20 20 20 20 20 20 2f 2f 20 3e 20 49 66 20 74 68 65 72 65 20 69 73 20 61 20 73 65 70 61 72 61 .......//.>.If.there.is.a.separa
1b80 74 6f 72 20 61 74 20 74 68 65 20 62 65 67 69 6e 6e 69 6e 67 20 6f 72 20 6d 69 64 64 6c 65 20 28 tor.at.the.beginning.or.middle.(
1ba0 6f 72 20 62 6f 74 68 29 0a 20 20 20 20 20 20 20 20 2f 2f 20 3e 20 6f 66 20 74 68 65 20 70 61 74 or.both).........//.>.of.the.pat
1bc0 74 65 72 6e 2c 20 74 68 65 6e 20 74 68 65 20 70 61 74 74 65 72 6e 20 69 73 20 72 65 6c 61 74 69 tern,.then.the.pattern.is.relati
1be0 76 65 20 74 6f 20 74 68 65 20 64 69 72 65 63 74 6f 72 79 0a 20 20 20 20 20 20 20 20 2f 2f 20 3e ve.to.the.directory.........//.>
1c00 20 6c 65 76 65 6c 20 6f 66 20 74 68 65 20 70 61 72 74 69 63 75 6c 61 72 20 2e 67 69 74 69 67 6e .level.of.the.particular..gitign
1c20 6f 72 65 20 66 69 6c 65 20 69 74 73 65 6c 66 2e 0a 20 20 20 20 20 20 20 20 2f 2f 20 3e 20 4f 74 ore.file.itself..........//.>.Ot
1c40 68 65 72 77 69 73 65 20 74 68 65 20 70 61 74 74 65 72 6e 20 6d 61 79 20 61 6c 73 6f 20 6d 61 74 herwise.the.pattern.may.also.mat
1c60 63 68 20 61 74 20 61 6e 79 20 6c 65 76 65 6c 20 62 65 6c 6f 77 0a 20 20 20 20 20 20 20 20 2f 2f ch.at.any.level.below.........//
1c80 20 3e 20 74 68 65 20 2e 67 69 74 69 67 6e 6f 72 65 20 6c 65 76 65 6c 2e 0a 20 20 20 20 20 20 20 .>.the..gitignore.level.........
1ca0 20 3f 20 27 28 3f 3a 5e 7c 5c 5c 2f 29 27 0a 0a 20 20 20 20 20 20 20 20 2f 2f 20 3e 20 4f 74 68 .?.'(?:^|\\/)'..........//.>.Oth
1cc0 65 72 77 69 73 65 2c 20 47 69 74 20 74 72 65 61 74 73 20 74 68 65 20 70 61 74 74 65 72 6e 20 61 erwise,.Git.treats.the.pattern.a
1ce0 73 20 61 20 73 68 65 6c 6c 20 67 6c 6f 62 20 73 75 69 74 61 62 6c 65 20 66 6f 72 0a 20 20 20 20 s.a.shell.glob.suitable.for.....
1d00 20 20 20 20 2f 2f 20 3e 20 20 20 63 6f 6e 73 75 6d 70 74 69 6f 6e 20 62 79 20 66 6e 6d 61 74 63 ....//.>...consumption.by.fnmatc
1d20 68 28 33 29 0a 20 20 20 20 20 20 20 20 3a 20 27 5e 27 0a 20 20 20 20 7d 0a 20 20 5d 2c 0a 0a 20 h(3).........:.'^'.....}...],...
1d40 20 2f 2f 20 74 77 6f 20 67 6c 6f 62 73 74 61 72 73 0a 20 20 5b 0a 20 20 20 20 2f 2f 20 55 73 65 .//.two.globstars...[.....//.Use
1d60 20 6c 6f 6f 6b 61 68 65 61 64 20 61 73 73 65 72 74 69 6f 6e 73 20 73 6f 20 74 68 61 74 20 77 65 .lookahead.assertions.so.that.we
1d80 20 63 6f 75 6c 64 20 6d 61 74 63 68 20 6d 6f 72 65 20 74 68 61 6e 20 6f 6e 65 20 60 27 2f 2a 2a .could.match.more.than.one.`'/**
1da0 27 60 0a 20 20 20 20 2f 5c 5c 5c 2f 5c 5c 5c 2a 5c 5c 5c 2a 28 3f 3d 5c 5c 5c 2f 7c 24 29 2f 67 '`...../\\\/\\\*\\\*(?=\\\/|$)/g
1dc0 2c 0a 0a 20 20 20 20 2f 2f 20 5a 65 72 6f 2c 20 6f 6e 65 20 6f 72 20 73 65 76 65 72 61 6c 20 64 ,......//.Zero,.one.or.several.d
1de0 69 72 65 63 74 6f 72 69 65 73 0a 20 20 20 20 2f 2f 20 73 68 6f 75 6c 64 20 6e 6f 74 20 75 73 65 irectories.....//.should.not.use
1e00 20 27 2a 27 2c 20 6f 72 20 69 74 20 77 69 6c 6c 20 62 65 20 72 65 70 6c 61 63 65 64 20 62 79 20 .'*',.or.it.will.be.replaced.by.
1e20 74 68 65 20 6e 65 78 74 20 72 65 70 6c 61 63 65 72 0a 0a 20 20 20 20 2f 2f 20 43 68 65 63 6b 20 the.next.replacer......//.Check.
1e40 69 66 20 69 74 20 69 73 20 6e 6f 74 20 74 68 65 20 6c 61 73 74 20 60 27 2f 2a 2a 27 60 0a 20 20 if.it.is.not.the.last.`'/**'`...
1e60 20 20 28 5f 2c 20 69 6e 64 65 78 2c 20 73 74 72 29 20 3d 3e 20 69 6e 64 65 78 20 2b 20 36 20 3c ..(_,.index,.str).=>.index.+.6.<
1e80 20 73 74 72 2e 6c 65 6e 67 74 68 0a 0a 20 20 20 20 20 20 2f 2f 20 63 61 73 65 3a 20 2f 2a 2a 2f .str.length........//.case:./**/
1ea0 0a 20 20 20 20 20 20 2f 2f 20 3e 20 41 20 73 6c 61 73 68 20 66 6f 6c 6c 6f 77 65 64 20 62 79 20 .......//.>.A.slash.followed.by.
1ec0 74 77 6f 20 63 6f 6e 73 65 63 75 74 69 76 65 20 61 73 74 65 72 69 73 6b 73 20 74 68 65 6e 20 61 two.consecutive.asterisks.then.a
1ee0 20 73 6c 61 73 68 20 6d 61 74 63 68 65 73 0a 20 20 20 20 20 20 2f 2f 20 3e 20 20 20 7a 65 72 6f .slash.matches.......//.>...zero
1f00 20 6f 72 20 6d 6f 72 65 20 64 69 72 65 63 74 6f 72 69 65 73 2e 0a 20 20 20 20 20 20 2f 2f 20 3e .or.more.directories........//.>
1f20 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 22 61 2f 2a 2a 2f 62 22 20 6d 61 74 63 68 65 73 20 22 .For.example,."a/**/b".matches."
1f40 61 2f 62 22 2c 20 22 61 2f 78 2f 62 22 2c 20 22 61 2f 78 2f 79 2f 62 22 20 61 6e 64 20 73 6f 20 a/b",."a/x/b",."a/x/y/b".and.so.
1f60 6f 6e 2e 0a 20 20 20 20 20 20 2f 2f 20 27 2f 2a 2a 2f 27 0a 20 20 20 20 20 20 3f 20 27 28 3f 3a on........//.'/**/'.......?.'(?:
1f80 5c 5c 2f 5b 5e 5c 5c 2f 5d 2b 29 2a 27 0a 0a 20 20 20 20 20 20 2f 2f 20 63 61 73 65 3a 20 2f 2a \\/[^\\/]+)*'........//.case:./*
1fa0 2a 0a 20 20 20 20 20 20 2f 2f 20 3e 20 41 20 74 72 61 69 6c 69 6e 67 20 60 22 2f 2a 2a 22 60 20 *.......//.>.A.trailing.`"/**"`.
1fc0 6d 61 74 63 68 65 73 20 65 76 65 72 79 74 68 69 6e 67 20 69 6e 73 69 64 65 2e 0a 0a 20 20 20 20 matches.everything.inside.......
1fe0 20 20 2f 2f 20 23 32 31 3a 20 65 76 65 72 79 74 68 69 6e 67 20 69 6e 73 69 64 65 20 62 75 74 20 ..//.#21:.everything.inside.but.
2000 69 74 20 73 68 6f 75 6c 64 20 6e 6f 74 20 69 6e 63 6c 75 64 65 20 74 68 65 20 63 75 72 72 65 6e it.should.not.include.the.curren
2020 74 20 66 6f 6c 64 65 72 0a 20 20 20 20 20 20 3a 20 27 5c 5c 2f 2e 2b 27 0a 20 20 5d 2c 0a 0a 20 t.folder.......:.'\\/.+'...],...
2040 20 2f 2f 20 69 6e 74 65 72 6d 65 64 69 61 74 65 20 77 69 6c 64 63 61 72 64 73 0a 20 20 5b 0a 20 .//.intermediate.wildcards...[..
2060 20 20 20 2f 2f 20 4e 65 76 65 72 20 72 65 70 6c 61 63 65 20 65 73 63 61 70 65 64 20 27 2a 27 0a ...//.Never.replace.escaped.'*'.
2080 20 20 20 20 2f 2f 20 69 67 6e 6f 72 65 20 72 75 6c 65 20 27 5c 2a 27 20 77 69 6c 6c 20 6d 61 74 ....//.ignore.rule.'\*'.will.mat
20a0 63 68 20 74 68 65 20 70 61 74 68 20 27 2a 27 0a 0a 20 20 20 20 2f 2f 20 27 61 62 63 2e 2a 2f 27 ch.the.path.'*'......//.'abc.*/'
20c0 20 2d 3e 20 67 6f 0a 20 20 20 20 2f 2f 20 27 61 62 63 2e 2a 27 20 20 2d 3e 20 73 6b 69 70 20 74 .->.go.....//.'abc.*'..->.skip.t
20e0 68 69 73 20 72 75 6c 65 0a 20 20 20 20 2f 28 5e 7c 5b 5e 5c 5c 5d 2b 29 5c 5c 5c 2a 28 3f 3d 2e his.rule...../(^|[^\\]+)\\\*(?=.
2100 2b 29 2f 67 2c 0a 0a 20 20 20 20 2f 2f 20 27 2a 2e 6a 73 27 20 6d 61 74 63 68 65 73 20 27 2e 6a +)/g,......//.'*.js'.matches.'.j
2120 73 27 0a 20 20 20 20 2f 2f 20 27 2a 2e 6a 73 27 20 64 6f 65 73 6e 27 74 20 6d 61 74 63 68 20 27 s'.....//.'*.js'.doesn't.match.'
2140 61 62 63 27 0a 20 20 20 20 28 5f 2c 20 70 31 29 20 3d 3e 20 60 24 7b 70 31 7d 5b 5e 5c 5c 2f 5d abc'.....(_,.p1).=>.`${p1}[^\\/]
2160 2a 60 0a 20 20 5d 2c 0a 0a 20 20 5b 0a 20 20 20 20 2f 2f 20 75 6e 65 73 63 61 70 65 2c 20 72 65 *`...],....[.....//.unescape,.re
2180 76 65 72 74 20 73 74 65 70 20 33 20 65 78 63 65 70 74 20 66 6f 72 20 62 61 63 6b 20 73 6c 61 73 vert.step.3.except.for.back.slas
21a0 68 0a 20 20 20 20 2f 2f 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 69 66 20 61 20 75 73 65 72 20 h.....//.For.example,.if.a.user.
21c0 65 73 63 61 70 65 20 61 20 27 5c 5c 2a 27 2c 0a 20 20 20 20 2f 2f 20 61 66 74 65 72 20 73 74 65 escape.a.'\\*',.....//.after.ste
21e0 70 20 33 2c 20 74 68 65 20 72 65 73 75 6c 74 20 77 69 6c 6c 20 62 65 20 27 5c 5c 5c 5c 5c 5c 2a p.3,.the.result.will.be.'\\\\\\*
2200 27 0a 20 20 20 20 2f 5c 5c 5c 5c 5c 5c 28 3f 3d 5b 24 2e 7c 2a 2b 28 29 7b 5e 5d 29 2f 67 2c 0a '...../\\\\\\(?=[$.|*+(){^])/g,.
2220 20 20 20 20 28 29 20 3d 3e 20 45 53 43 41 50 45 0a 20 20 5d 2c 0a 0a 20 20 5b 0a 20 20 20 20 2f ....().=>.ESCAPE...],....[...../
2240 2f 20 27 5c 5c 5c 5c 27 20 2d 3e 20 27 5c 5c 27 0a 20 20 20 20 2f 5c 5c 5c 5c 2f 67 2c 0a 20 20 /.'\\\\'.->.'\\'...../\\\\/g,...
2260 20 20 28 29 20 3d 3e 20 45 53 43 41 50 45 0a 20 20 5d 2c 0a 0a 20 20 5b 0a 20 20 20 20 2f 2f 20 ..().=>.ESCAPE...],....[.....//.
2280 3e 20 54 68 65 20 72 61 6e 67 65 20 6e 6f 74 61 74 69 6f 6e 2c 20 65 2e 67 2e 20 5b 61 2d 7a 41 >.The.range.notation,.e.g..[a-zA
22a0 2d 5a 5d 2c 0a 20 20 20 20 2f 2f 20 3e 20 63 61 6e 20 62 65 20 75 73 65 64 20 74 6f 20 6d 61 74 -Z],.....//.>.can.be.used.to.mat
22c0 63 68 20 6f 6e 65 20 6f 66 20 74 68 65 20 63 68 61 72 61 63 74 65 72 73 20 69 6e 20 61 20 72 61 ch.one.of.the.characters.in.a.ra
22e0 6e 67 65 2e 0a 0a 20 20 20 20 2f 2f 20 60 5c 60 20 69 73 20 65 73 63 61 70 65 64 20 62 79 20 73 nge.......//.`\`.is.escaped.by.s
2300 74 65 70 20 33 0a 20 20 20 20 2f 28 5c 5c 29 3f 5c 5b 28 5b 5e 5c 5d 2f 5d 2a 3f 29 28 5c 5c 2a tep.3...../(\\)?\[([^\]/]*?)(\\*
2320 29 28 24 7c 5c 5d 29 2f 67 2c 0a 20 20 20 20 28 6d 61 74 63 68 2c 20 6c 65 61 64 45 73 63 61 70 )($|\])/g,.....(match,.leadEscap
2340 65 2c 20 72 61 6e 67 65 2c 20 65 6e 64 45 73 63 61 70 65 2c 20 63 6c 6f 73 65 29 20 3d 3e 20 6c e,.range,.endEscape,.close).=>.l
2360 65 61 64 45 73 63 61 70 65 20 3d 3d 3d 20 45 53 43 41 50 45 0a 20 20 20 20 20 20 2f 2f 20 27 5c eadEscape.===.ESCAPE.......//.'\
2380 5c 5b 62 61 72 5d 27 20 2d 3e 20 27 5c 5c 5c 5c 5b 62 61 72 5c 5c 5d 27 0a 20 20 20 20 20 20 3f \[bar]'.->.'\\\\[bar\\]'.......?
23a0 20 60 5c 5c 5b 24 7b 72 61 6e 67 65 7d 24 7b 63 6c 65 61 6e 52 61 6e 67 65 42 61 63 6b 53 6c 61 .`\\[${range}${cleanRangeBackSla
23c0 73 68 28 65 6e 64 45 73 63 61 70 65 29 7d 24 7b 63 6c 6f 73 65 7d 60 0a 20 20 20 20 20 20 3a 20 sh(endEscape)}${close}`.......:.
23e0 63 6c 6f 73 65 20 3d 3d 3d 20 27 5d 27 0a 20 20 20 20 20 20 20 20 3f 20 65 6e 64 45 73 63 61 70 close.===.']'.........?.endEscap
2400 65 2e 6c 65 6e 67 74 68 20 25 20 32 20 3d 3d 3d 20 30 0a 20 20 20 20 20 20 20 20 20 20 2f 2f 20 e.length.%.2.===.0...........//.
2420 41 20 6e 6f 72 6d 61 6c 20 63 61 73 65 2c 20 61 6e 64 20 69 74 20 69 73 20 61 20 72 61 6e 67 65 A.normal.case,.and.it.is.a.range
2440 20 6e 6f 74 61 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 2f 2f 20 27 5b 62 61 72 5d 27 0a 20 .notation...........//.'[bar]'..
2460 20 20 20 20 20 20 20 20 20 2f 2f 20 27 5b 62 61 72 5c 5c 5c 5c 5d 27 0a 20 20 20 20 20 20 20 20 .........//.'[bar\\\\]'.........
2480 20 20 3f 20 60 5b 24 7b 73 61 6e 69 74 69 7a 65 52 61 6e 67 65 28 72 61 6e 67 65 29 7d 24 7b 65 ..?.`[${sanitizeRange(range)}${e
24a0 6e 64 45 73 63 61 70 65 7d 5d 60 0a 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 6e 76 61 6c 69 64 ndEscape}]`...........//.Invalid
24c0 20 72 61 6e 67 65 20 6e 6f 74 61 74 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 2f 2f 20 27 5b 62 61 .range.notaton...........//.'[ba
24e0 72 5c 5c 5d 27 20 2d 3e 20 27 5b 62 61 72 5c 5c 5c 5c 5d 27 0a 20 20 20 20 20 20 20 20 20 20 3a r\\]'.->.'[bar\\\\]'...........:
2500 20 27 5b 5d 27 0a 20 20 20 20 20 20 20 20 3a 20 27 5b 5d 27 0a 20 20 5d 2c 0a 0a 20 20 2f 2f 20 .'[]'.........:.'[]'...],....//.
2520 65 6e 64 69 6e 67 0a 20 20 5b 0a 20 20 20 20 2f 2f 20 27 6a 73 27 20 77 69 6c 6c 20 6e 6f 74 20 ending...[.....//.'js'.will.not.
2540 6d 61 74 63 68 20 27 6a 73 2e 27 0a 20 20 20 20 2f 2f 20 27 61 62 27 20 77 69 6c 6c 20 6e 6f 74 match.'js.'.....//.'ab'.will.not
2560 20 6d 61 74 63 68 20 27 61 62 63 27 0a 20 20 20 20 2f 28 3f 3a 5b 5e 2a 5d 29 24 2f 2c 0a 0a 20 .match.'abc'...../(?:[^*])$/,...
2580 20 20 20 2f 2f 20 57 54 46 21 0a 20 20 20 20 2f 2f 20 68 74 74 70 73 3a 2f 2f 67 69 74 2d 73 63 ...//.WTF!.....//.https://git-sc
25a0 6d 2e 63 6f 6d 2f 64 6f 63 73 2f 67 69 74 69 67 6e 6f 72 65 0a 20 20 20 20 2f 2f 20 63 68 61 6e m.com/docs/gitignore.....//.chan
25c0 67 65 73 20 69 6e 20 5b 32 2e 32 32 2e 31 5d 28 68 74 74 70 73 3a 2f 2f 67 69 74 2d 73 63 6d 2e ges.in.[2.22.1](https://git-scm.
25e0 63 6f 6d 2f 64 6f 63 73 2f 67 69 74 69 67 6e 6f 72 65 2f 32 2e 32 32 2e 31 29 0a 20 20 20 20 2f com/docs/gitignore/2.22.1)...../
2600 2f 20 77 68 69 63 68 20 72 65 2d 66 69 78 65 73 20 23 32 34 2c 20 23 33 38 0a 0a 20 20 20 20 2f /.which.re-fixes.#24,.#38....../
2620 2f 20 3e 20 49 66 20 74 68 65 72 65 20 69 73 20 61 20 73 65 70 61 72 61 74 6f 72 20 61 74 20 74 /.>.If.there.is.a.separator.at.t
2640 68 65 20 65 6e 64 20 6f 66 20 74 68 65 20 70 61 74 74 65 72 6e 20 74 68 65 6e 20 74 68 65 20 70 he.end.of.the.pattern.then.the.p
2660 61 74 74 65 72 6e 0a 20 20 20 20 2f 2f 20 3e 20 77 69 6c 6c 20 6f 6e 6c 79 20 6d 61 74 63 68 20 attern.....//.>.will.only.match.
2680 64 69 72 65 63 74 6f 72 69 65 73 2c 20 6f 74 68 65 72 77 69 73 65 20 74 68 65 20 70 61 74 74 65 directories,.otherwise.the.patte
26a0 72 6e 20 63 61 6e 20 6d 61 74 63 68 20 62 6f 74 68 0a 20 20 20 20 2f 2f 20 3e 20 66 69 6c 65 73 rn.can.match.both.....//.>.files
26c0 20 61 6e 64 20 64 69 72 65 63 74 6f 72 69 65 73 2e 0a 0a 20 20 20 20 2f 2f 20 27 6a 73 2a 27 20 .and.directories.......//.'js*'.
26e0 77 69 6c 6c 20 6e 6f 74 20 6d 61 74 63 68 20 27 61 2e 6a 73 27 0a 20 20 20 20 2f 2f 20 27 6a 73 will.not.match.'a.js'.....//.'js
2700 2f 27 20 77 69 6c 6c 20 6e 6f 74 20 6d 61 74 63 68 20 27 61 2e 6a 73 27 0a 20 20 20 20 2f 2f 20 /'.will.not.match.'a.js'.....//.
2720 27 6a 73 27 20 77 69 6c 6c 20 6d 61 74 63 68 20 27 61 2e 6a 73 27 20 61 6e 64 20 27 61 2e 6a 73 'js'.will.match.'a.js'.and.'a.js
2740 2f 27 0a 20 20 20 20 6d 61 74 63 68 20 3d 3e 20 2f 5c 2f 24 2f 2e 74 65 73 74 28 6d 61 74 63 68 /'.....match.=>./\/$/.test(match
2760 29 0a 20 20 20 20 20 20 2f 2f 20 66 6f 6f 2f 20 77 69 6c 6c 20 6e 6f 74 20 6d 61 74 63 68 20 27 ).......//.foo/.will.not.match.'
2780 66 6f 6f 27 0a 20 20 20 20 20 20 3f 20 60 24 7b 6d 61 74 63 68 7d 24 60 0a 20 20 20 20 20 20 2f foo'.......?.`${match}$`......./
27a0 2f 20 66 6f 6f 20 6d 61 74 63 68 65 73 20 27 66 6f 6f 27 20 61 6e 64 20 27 66 6f 6f 2f 27 0a 20 /.foo.matches.'foo'.and.'foo/'..
27c0 20 20 20 20 20 3a 20 60 24 7b 6d 61 74 63 68 7d 28 3f 3d 24 7c 5c 5c 2f 24 29 60 0a 20 20 5d 2c .....:.`${match}(?=$|\\/$)`...],
27e0 0a 0a 20 20 2f 2f 20 74 72 61 69 6c 69 6e 67 20 77 69 6c 64 63 61 72 64 0a 20 20 5b 0a 20 20 20 ....//.trailing.wildcard...[....
2800 20 2f 28 5c 5e 7c 5c 5c 5c 2f 29 3f 5c 5c 5c 2a 24 2f 2c 0a 20 20 20 20 28 5f 2c 20 70 31 29 20 ./(\^|\\\/)?\\\*$/,.....(_,.p1).
2820 3d 3e 20 7b 0a 20 20 20 20 20 20 63 6f 6e 73 74 20 70 72 65 66 69 78 20 3d 20 70 31 0a 20 20 20 =>.{.......const.prefix.=.p1....
2840 20 20 20 20 20 2f 2f 20 27 5c 5e 27 3a 0a 20 20 20 20 20 20 20 20 2f 2f 20 27 2f 2a 27 20 64 6f .....//.'\^':.........//.'/*'.do
2860 65 73 20 6e 6f 74 20 6d 61 74 63 68 20 45 4d 50 54 59 0a 20 20 20 20 20 20 20 20 2f 2f 20 27 2f es.not.match.EMPTY.........//.'/
2880 2a 27 20 64 6f 65 73 20 6e 6f 74 20 6d 61 74 63 68 20 65 76 65 72 79 74 68 69 6e 67 0a 0a 20 20 *'.does.not.match.everything....
28a0 20 20 20 20 20 20 2f 2f 20 27 5c 5c 5c 2f 27 3a 0a 20 20 20 20 20 20 20 20 2f 2f 20 27 61 62 63 ......//.'\\\/':.........//.'abc
28c0 2f 2a 27 20 64 6f 65 73 20 6e 6f 74 20 6d 61 74 63 68 20 27 61 62 63 2f 27 0a 20 20 20 20 20 20 /*'.does.not.match.'abc/'.......
28e0 20 20 3f 20 60 24 7b 70 31 7d 5b 5e 2f 5d 2b 60 0a 0a 20 20 20 20 20 20 20 20 2f 2f 20 27 61 2a ..?.`${p1}[^/]+`..........//.'a*
2900 27 20 6d 61 74 63 68 65 73 20 27 61 27 0a 20 20 20 20 20 20 20 20 2f 2f 20 27 61 2a 27 20 6d 61 '.matches.'a'.........//.'a*'.ma
2920 74 63 68 65 73 20 27 61 61 27 0a 20 20 20 20 20 20 20 20 3a 20 27 5b 5e 2f 5d 2a 27 0a 0a 20 20 tches.'aa'.........:.'[^/]*'....
2940 20 20 20 20 72 65 74 75 72 6e 20 60 24 7b 70 72 65 66 69 78 7d 28 3f 3d 24 7c 5c 5c 2f 24 29 60 ....return.`${prefix}(?=$|\\/$)`
2960 0a 20 20 20 20 7d 0a 20 20 5d 2c 0a 5d 0a 0a 2f 2f 20 41 20 73 69 6d 70 6c 65 20 63 61 63 68 65 .....}...],.]..//.A.simple.cache
2980 2c 20 62 65 63 61 75 73 65 20 61 6e 20 69 67 6e 6f 72 65 20 72 75 6c 65 20 6f 6e 6c 79 20 68 61 ,.because.an.ignore.rule.only.ha
29a0 73 20 6f 6e 6c 79 20 6f 6e 65 20 63 65 72 74 61 69 6e 20 6d 65 61 6e 69 6e 67 0a 63 6f 6e 73 74 s.only.one.certain.meaning.const
29c0 20 72 65 67 65 78 43 61 63 68 65 20 3d 20 4f 62 6a 65 63 74 2e 63 72 65 61 74 65 28 6e 75 6c 6c .regexCache.=.Object.create(null
29e0 29 0a 0a 2f 2f 20 40 70 61 72 61 6d 20 7b 70 61 74 74 65 72 6e 7d 0a 63 6f 6e 73 74 20 6d 61 6b )..//.@param.{pattern}.const.mak
2a00 65 52 65 67 65 78 20 3d 20 28 70 61 74 74 65 72 6e 2c 20 6e 65 67 61 74 69 76 65 2c 20 69 67 6e eRegex.=.(pattern,.negative,.ign
2a20 6f 72 65 63 61 73 65 29 20 3d 3e 20 7b 0a 20 20 63 6f 6e 73 74 20 72 20 3d 20 72 65 67 65 78 43 orecase).=>.{...const.r.=.regexC
2a40 61 63 68 65 5b 70 61 74 74 65 72 6e 5d 0a 20 20 69 66 20 28 72 29 20 7b 0a 20 20 20 20 72 65 74 ache[pattern]...if.(r).{.....ret
2a60 75 72 6e 20 72 0a 20 20 7d 0a 0a 20 20 2f 2f 20 63 6f 6e 73 74 20 72 65 70 6c 61 63 65 72 73 20 urn.r...}....//.const.replacers.
2a80 3d 20 6e 65 67 61 74 69 76 65 0a 20 20 2f 2f 20 20 20 3f 20 4e 45 47 41 54 49 56 45 5f 52 45 50 =.negative...//...?.NEGATIVE_REP
2aa0 4c 41 43 45 52 53 0a 20 20 2f 2f 20 20 20 3a 20 50 4f 53 49 54 49 56 45 5f 52 45 50 4c 41 43 45 LACERS...//...:.POSITIVE_REPLACE
2ac0 52 53 0a 0a 20 20 63 6f 6e 73 74 20 73 6f 75 72 63 65 20 3d 20 52 45 50 4c 41 43 45 52 53 2e 72 RS....const.source.=.REPLACERS.r
2ae0 65 64 75 63 65 28 0a 20 20 20 20 28 70 72 65 76 2c 20 63 75 72 72 65 6e 74 29 20 3d 3e 20 70 72 educe(.....(prev,.current).=>.pr
2b00 65 76 2e 72 65 70 6c 61 63 65 28 63 75 72 72 65 6e 74 5b 30 5d 2c 20 63 75 72 72 65 6e 74 5b 31 ev.replace(current[0],.current[1
2b20 5d 2e 62 69 6e 64 28 70 61 74 74 65 72 6e 29 29 2c 0a 20 20 20 20 70 61 74 74 65 72 6e 0a 20 20 ].bind(pattern)),.....pattern...
2b40 29 0a 0a 20 20 72 65 74 75 72 6e 20 72 65 67 65 78 43 61 63 68 65 5b 70 61 74 74 65 72 6e 5d 20 )....return.regexCache[pattern].
2b60 3d 20 69 67 6e 6f 72 65 63 61 73 65 0a 20 20 20 20 3f 20 6e 65 77 20 52 65 67 45 78 70 28 73 6f =.ignorecase.....?.new.RegExp(so
2b80 75 72 63 65 2c 20 27 69 27 29 0a 20 20 20 20 3a 20 6e 65 77 20 52 65 67 45 78 70 28 73 6f 75 72 urce,.'i').....:.new.RegExp(sour
2ba0 63 65 29 0a 7d 0a 0a 63 6f 6e 73 74 20 69 73 53 74 72 69 6e 67 20 3d 20 73 75 62 6a 65 63 74 20 ce).}..const.isString.=.subject.
2bc0 3d 3e 20 74 79 70 65 6f 66 20 73 75 62 6a 65 63 74 20 3d 3d 3d 20 27 73 74 72 69 6e 67 27 0a 0a =>.typeof.subject.===.'string'..
2be0 2f 2f 20 3e 20 41 20 62 6c 61 6e 6b 20 6c 69 6e 65 20 6d 61 74 63 68 65 73 20 6e 6f 20 66 69 6c //.>.A.blank.line.matches.no.fil
2c00 65 73 2c 20 73 6f 20 69 74 20 63 61 6e 20 73 65 72 76 65 20 61 73 20 61 20 73 65 70 61 72 61 74 es,.so.it.can.serve.as.a.separat
2c20 6f 72 20 66 6f 72 20 72 65 61 64 61 62 69 6c 69 74 79 2e 0a 63 6f 6e 73 74 20 63 68 65 63 6b 50 or.for.readability..const.checkP
2c40 61 74 74 65 72 6e 20 3d 20 70 61 74 74 65 72 6e 20 3d 3e 20 70 61 74 74 65 72 6e 0a 20 20 26 26 attern.=.pattern.=>.pattern...&&
2c60 20 69 73 53 74 72 69 6e 67 28 70 61 74 74 65 72 6e 29 0a 20 20 26 26 20 21 52 45 47 45 58 5f 54 .isString(pattern)...&&.!REGEX_T
2c80 45 53 54 5f 42 4c 41 4e 4b 5f 4c 49 4e 45 2e 74 65 73 74 28 70 61 74 74 65 72 6e 29 0a 0a 20 20 EST_BLANK_LINE.test(pattern)....
2ca0 2f 2f 20 3e 20 41 20 6c 69 6e 65 20 73 74 61 72 74 69 6e 67 20 77 69 74 68 20 23 20 73 65 72 76 //.>.A.line.starting.with.#.serv
2cc0 65 73 20 61 73 20 61 20 63 6f 6d 6d 65 6e 74 2e 0a 20 20 26 26 20 70 61 74 74 65 72 6e 2e 69 6e es.as.a.comment....&&.pattern.in
2ce0 64 65 78 4f 66 28 27 23 27 29 20 21 3d 3d 20 30 0a 0a 63 6f 6e 73 74 20 73 70 6c 69 74 50 61 74 dexOf('#').!==.0..const.splitPat
2d00 74 65 72 6e 20 3d 20 70 61 74 74 65 72 6e 20 3d 3e 20 70 61 74 74 65 72 6e 2e 73 70 6c 69 74 28 tern.=.pattern.=>.pattern.split(
2d20 52 45 47 45 58 5f 53 50 4c 49 54 41 4c 4c 5f 43 52 4c 46 29 0a 0a 63 6c 61 73 73 20 49 67 6e 6f REGEX_SPLITALL_CRLF)..class.Igno
2d40 72 65 52 75 6c 65 20 7b 0a 20 20 63 6f 6e 73 74 72 75 63 74 6f 72 20 28 0a 20 20 20 20 6f 72 69 reRule.{...constructor.(.....ori
2d60 67 69 6e 2c 0a 20 20 20 20 70 61 74 74 65 72 6e 2c 0a 20 20 20 20 6e 65 67 61 74 69 76 65 2c 0a gin,.....pattern,.....negative,.
2d80 20 20 20 20 72 65 67 65 78 0a 20 20 29 20 7b 0a 20 20 20 20 74 68 69 73 2e 6f 72 69 67 69 6e 20 ....regex...).{.....this.origin.
2da0 3d 20 6f 72 69 67 69 6e 0a 20 20 20 20 74 68 69 73 2e 70 61 74 74 65 72 6e 20 3d 20 70 61 74 74 =.origin.....this.pattern.=.patt
2dc0 65 72 6e 0a 20 20 20 20 74 68 69 73 2e 6e 65 67 61 74 69 76 65 20 3d 20 6e 65 67 61 74 69 76 65 ern.....this.negative.=.negative
2de0 0a 20 20 20 20 74 68 69 73 2e 72 65 67 65 78 20 3d 20 72 65 67 65 78 0a 20 20 7d 0a 7d 0a 0a 63 .....this.regex.=.regex...}.}..c
2e00 6f 6e 73 74 20 63 72 65 61 74 65 52 75 6c 65 20 3d 20 28 70 61 74 74 65 72 6e 2c 20 69 67 6e 6f onst.createRule.=.(pattern,.igno
2e20 72 65 63 61 73 65 29 20 3d 3e 20 7b 0a 20 20 63 6f 6e 73 74 20 6f 72 69 67 69 6e 20 3d 20 70 61 recase).=>.{...const.origin.=.pa
2e40 74 74 65 72 6e 0a 20 20 6c 65 74 20 6e 65 67 61 74 69 76 65 20 3d 20 66 61 6c 73 65 0a 0a 20 20 ttern...let.negative.=.false....
2e60 2f 2f 20 3e 20 41 6e 20 6f 70 74 69 6f 6e 61 6c 20 70 72 65 66 69 78 20 22 21 22 20 77 68 69 63 //.>.An.optional.prefix."!".whic
2e80 68 20 6e 65 67 61 74 65 73 20 74 68 65 20 70 61 74 74 65 72 6e 3b 0a 20 20 69 66 20 28 70 61 74 h.negates.the.pattern;...if.(pat
2ea0 74 65 72 6e 2e 69 6e 64 65 78 4f 66 28 27 21 27 29 20 3d 3d 3d 20 30 29 20 7b 0a 20 20 20 20 6e tern.indexOf('!').===.0).{.....n
2ec0 65 67 61 74 69 76 65 20 3d 20 74 72 75 65 0a 20 20 20 20 70 61 74 74 65 72 6e 20 3d 20 70 61 74 egative.=.true.....pattern.=.pat
2ee0 74 65 72 6e 2e 73 75 62 73 74 72 28 31 29 0a 20 20 7d 0a 0a 20 20 70 61 74 74 65 72 6e 20 3d 20 tern.substr(1)...}....pattern.=.
2f00 70 61 74 74 65 72 6e 0a 20 20 2f 2f 20 3e 20 50 75 74 20 61 20 62 61 63 6b 73 6c 61 73 68 20 28 pattern...//.>.Put.a.backslash.(
2f20 22 5c 22 29 20 69 6e 20 66 72 6f 6e 74 20 6f 66 20 74 68 65 20 66 69 72 73 74 20 22 21 22 20 66 "\").in.front.of.the.first."!".f
2f40 6f 72 20 70 61 74 74 65 72 6e 73 20 74 68 61 74 0a 20 20 2f 2f 20 3e 20 20 20 62 65 67 69 6e 20 or.patterns.that...//.>...begin.
2f60 77 69 74 68 20 61 20 6c 69 74 65 72 61 6c 20 22 21 22 2c 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c with.a.literal."!",.for.example,
2f80 20 60 22 5c 21 69 6d 70 6f 72 74 61 6e 74 21 2e 74 78 74 22 60 2e 0a 20 20 2e 72 65 70 6c 61 63 .`"\!important!.txt"`.....replac
2fa0 65 28 52 45 47 45 58 5f 52 45 50 4c 41 43 45 5f 4c 45 41 44 49 4e 47 5f 45 58 43 41 50 45 44 5f e(REGEX_REPLACE_LEADING_EXCAPED_
2fc0 45 58 43 4c 41 4d 41 54 49 4f 4e 2c 20 27 21 27 29 0a 20 20 2f 2f 20 3e 20 50 75 74 20 61 20 62 EXCLAMATION,.'!')...//.>.Put.a.b
2fe0 61 63 6b 73 6c 61 73 68 20 28 22 5c 22 29 20 69 6e 20 66 72 6f 6e 74 20 6f 66 20 74 68 65 20 66 ackslash.("\").in.front.of.the.f
3000 69 72 73 74 20 68 61 73 68 20 66 6f 72 20 70 61 74 74 65 72 6e 73 20 74 68 61 74 0a 20 20 2f 2f irst.hash.for.patterns.that...//
3020 20 3e 20 20 20 62 65 67 69 6e 20 77 69 74 68 20 61 20 68 61 73 68 2e 0a 20 20 2e 72 65 70 6c 61 .>...begin.with.a.hash.....repla
3040 63 65 28 52 45 47 45 58 5f 52 45 50 4c 41 43 45 5f 4c 45 41 44 49 4e 47 5f 45 58 43 41 50 45 44 ce(REGEX_REPLACE_LEADING_EXCAPED
3060 5f 48 41 53 48 2c 20 27 23 27 29 0a 0a 20 20 63 6f 6e 73 74 20 72 65 67 65 78 20 3d 20 6d 61 6b _HASH,.'#')....const.regex.=.mak
3080 65 52 65 67 65 78 28 70 61 74 74 65 72 6e 2c 20 6e 65 67 61 74 69 76 65 2c 20 69 67 6e 6f 72 65 eRegex(pattern,.negative,.ignore
30a0 63 61 73 65 29 0a 0a 20 20 72 65 74 75 72 6e 20 6e 65 77 20 49 67 6e 6f 72 65 52 75 6c 65 28 0a case)....return.new.IgnoreRule(.
30c0 20 20 20 20 6f 72 69 67 69 6e 2c 0a 20 20 20 20 70 61 74 74 65 72 6e 2c 0a 20 20 20 20 6e 65 67 ....origin,.....pattern,.....neg
30e0 61 74 69 76 65 2c 0a 20 20 20 20 72 65 67 65 78 0a 20 20 29 0a 7d 0a 0a 63 6f 6e 73 74 20 74 68 ative,.....regex...).}..const.th
3100 72 6f 77 45 72 72 6f 72 20 3d 20 28 6d 65 73 73 61 67 65 2c 20 43 74 6f 72 29 20 3d 3e 20 7b 0a rowError.=.(message,.Ctor).=>.{.
3120 20 20 74 68 72 6f 77 20 6e 65 77 20 43 74 6f 72 28 6d 65 73 73 61 67 65 29 0a 7d 0a 0a 63 6f 6e ..throw.new.Ctor(message).}..con
3140 73 74 20 63 68 65 63 6b 50 61 74 68 20 3d 20 28 70 61 74 68 2c 20 6f 72 69 67 69 6e 61 6c 50 61 st.checkPath.=.(path,.originalPa
3160 74 68 2c 20 64 6f 54 68 72 6f 77 29 20 3d 3e 20 7b 0a 20 20 69 66 20 28 21 69 73 53 74 72 69 6e th,.doThrow).=>.{...if.(!isStrin
3180 67 28 70 61 74 68 29 29 20 7b 0a 20 20 20 20 72 65 74 75 72 6e 20 64 6f 54 68 72 6f 77 28 0a 20 g(path)).{.....return.doThrow(..
31a0 20 20 20 20 20 60 70 61 74 68 20 6d 75 73 74 20 62 65 20 61 20 73 74 72 69 6e 67 2c 20 62 75 74 .....`path.must.be.a.string,.but
31c0 20 67 6f 74 20 5c 60 24 7b 6f 72 69 67 69 6e 61 6c 50 61 74 68 7d 5c 60 60 2c 0a 20 20 20 20 20 .got.\`${originalPath}\``,......
31e0 20 54 79 70 65 45 72 72 6f 72 0a 20 20 20 20 29 0a 20 20 7d 0a 0a 20 20 2f 2f 20 57 65 20 64 6f .TypeError.....)...}....//.We.do
3200 6e 27 74 20 6b 6e 6f 77 20 69 66 20 77 65 20 73 68 6f 75 6c 64 20 69 67 6e 6f 72 65 20 45 4d 50 n't.know.if.we.should.ignore.EMP
3220 54 59 2c 20 73 6f 20 74 68 72 6f 77 0a 20 20 69 66 20 28 21 70 61 74 68 29 20 7b 0a 20 20 20 20 TY,.so.throw...if.(!path).{.....
3240 72 65 74 75 72 6e 20 64 6f 54 68 72 6f 77 28 60 70 61 74 68 20 6d 75 73 74 20 6e 6f 74 20 62 65 return.doThrow(`path.must.not.be
3260 20 65 6d 70 74 79 60 2c 20 54 79 70 65 45 72 72 6f 72 29 0a 20 20 7d 0a 0a 20 20 2f 2f 20 43 68 .empty`,.TypeError)...}....//.Ch
3280 65 63 6b 20 69 66 20 69 74 20 69 73 20 61 20 72 65 6c 61 74 69 76 65 20 70 61 74 68 0a 20 20 69 eck.if.it.is.a.relative.path...i
32a0 66 20 28 63 68 65 63 6b 50 61 74 68 2e 69 73 4e 6f 74 52 65 6c 61 74 69 76 65 28 70 61 74 68 29 f.(checkPath.isNotRelative(path)
32c0 29 20 7b 0a 20 20 20 20 63 6f 6e 73 74 20 72 20 3d 20 27 60 70 61 74 68 2e 72 65 6c 61 74 69 76 ).{.....const.r.=.'`path.relativ
32e0 65 28 29 60 64 27 0a 20 20 20 20 72 65 74 75 72 6e 20 64 6f 54 68 72 6f 77 28 0a 20 20 20 20 20 e()`d'.....return.doThrow(......
3300 20 60 70 61 74 68 20 73 68 6f 75 6c 64 20 62 65 20 61 20 24 7b 72 7d 20 73 74 72 69 6e 67 2c 20 .`path.should.be.a.${r}.string,.
3320 62 75 74 20 67 6f 74 20 22 24 7b 6f 72 69 67 69 6e 61 6c 50 61 74 68 7d 22 60 2c 0a 20 20 20 20 but.got."${originalPath}"`,.....
3340 20 20 52 61 6e 67 65 45 72 72 6f 72 0a 20 20 20 20 29 0a 20 20 7d 0a 0a 20 20 72 65 74 75 72 6e ..RangeError.....)...}....return
3360 20 74 72 75 65 0a 7d 0a 0a 63 6f 6e 73 74 20 69 73 4e 6f 74 52 65 6c 61 74 69 76 65 20 3d 20 70 .true.}..const.isNotRelative.=.p
3380 61 74 68 20 3d 3e 20 52 45 47 45 58 5f 54 45 53 54 5f 49 4e 56 41 4c 49 44 5f 50 41 54 48 2e 74 ath.=>.REGEX_TEST_INVALID_PATH.t
33a0 65 73 74 28 70 61 74 68 29 0a 0a 63 68 65 63 6b 50 61 74 68 2e 69 73 4e 6f 74 52 65 6c 61 74 69 est(path)..checkPath.isNotRelati
33c0 76 65 20 3d 20 69 73 4e 6f 74 52 65 6c 61 74 69 76 65 0a 63 68 65 63 6b 50 61 74 68 2e 63 6f 6e ve.=.isNotRelative.checkPath.con
33e0 76 65 72 74 20 3d 20 70 20 3d 3e 20 70 0a 0a 63 6c 61 73 73 20 49 67 6e 6f 72 65 20 7b 0a 20 20 vert.=.p.=>.p..class.Ignore.{...
3400 63 6f 6e 73 74 72 75 63 74 6f 72 20 28 7b 0a 20 20 20 20 69 67 6e 6f 72 65 63 61 73 65 20 3d 20 constructor.({.....ignorecase.=.
3420 74 72 75 65 0a 20 20 7d 20 3d 20 7b 7d 29 20 7b 0a 20 20 20 20 74 68 69 73 2e 5f 72 75 6c 65 73 true...}.=.{}).{.....this._rules
3440 20 3d 20 5b 5d 0a 20 20 20 20 74 68 69 73 2e 5f 69 67 6e 6f 72 65 63 61 73 65 20 3d 20 69 67 6e .=.[].....this._ignorecase.=.ign
3460 6f 72 65 63 61 73 65 0a 20 20 20 20 64 65 66 69 6e 65 28 74 68 69 73 2c 20 4b 45 59 5f 49 47 4e orecase.....define(this,.KEY_IGN
3480 4f 52 45 2c 20 74 72 75 65 29 0a 20 20 20 20 74 68 69 73 2e 5f 69 6e 69 74 43 61 63 68 65 28 29 ORE,.true).....this._initCache()
34a0 0a 20 20 7d 0a 0a 20 20 5f 69 6e 69 74 43 61 63 68 65 20 28 29 20 7b 0a 20 20 20 20 74 68 69 73 ...}...._initCache.().{.....this
34c0 2e 5f 69 67 6e 6f 72 65 43 61 63 68 65 20 3d 20 4f 62 6a 65 63 74 2e 63 72 65 61 74 65 28 6e 75 ._ignoreCache.=.Object.create(nu
34e0 6c 6c 29 0a 20 20 20 20 74 68 69 73 2e 5f 74 65 73 74 43 61 63 68 65 20 3d 20 4f 62 6a 65 63 74 ll).....this._testCache.=.Object
3500 2e 63 72 65 61 74 65 28 6e 75 6c 6c 29 0a 20 20 7d 0a 0a 20 20 5f 61 64 64 50 61 74 74 65 72 6e .create(null)...}...._addPattern
3520 20 28 70 61 74 74 65 72 6e 29 20 7b 0a 20 20 20 20 2f 2f 20 23 33 32 0a 20 20 20 20 69 66 20 28 .(pattern).{.....//.#32.....if.(
3540 70 61 74 74 65 72 6e 20 26 26 20 70 61 74 74 65 72 6e 5b 4b 45 59 5f 49 47 4e 4f 52 45 5d 29 20 pattern.&&.pattern[KEY_IGNORE]).
3560 7b 0a 20 20 20 20 20 20 74 68 69 73 2e 5f 72 75 6c 65 73 20 3d 20 74 68 69 73 2e 5f 72 75 6c 65 {.......this._rules.=.this._rule
3580 73 2e 63 6f 6e 63 61 74 28 70 61 74 74 65 72 6e 2e 5f 72 75 6c 65 73 29 0a 20 20 20 20 20 20 74 s.concat(pattern._rules).......t
35a0 68 69 73 2e 5f 61 64 64 65 64 20 3d 20 74 72 75 65 0a 20 20 20 20 20 20 72 65 74 75 72 6e 0a 20 his._added.=.true.......return..
35c0 20 20 20 7d 0a 0a 20 20 20 20 69 66 20 28 63 68 65 63 6b 50 61 74 74 65 72 6e 28 70 61 74 74 65 ...}......if.(checkPattern(patte
35e0 72 6e 29 29 20 7b 0a 20 20 20 20 20 20 63 6f 6e 73 74 20 72 75 6c 65 20 3d 20 63 72 65 61 74 65 rn)).{.......const.rule.=.create
3600 52 75 6c 65 28 70 61 74 74 65 72 6e 2c 20 74 68 69 73 2e 5f 69 67 6e 6f 72 65 63 61 73 65 29 0a Rule(pattern,.this._ignorecase).
3620 20 20 20 20 20 20 74 68 69 73 2e 5f 61 64 64 65 64 20 3d 20 74 72 75 65 0a 20 20 20 20 20 20 74 ......this._added.=.true.......t
3640 68 69 73 2e 5f 72 75 6c 65 73 2e 70 75 73 68 28 72 75 6c 65 29 0a 20 20 20 20 7d 0a 20 20 7d 0a his._rules.push(rule).....}...}.
3660 0a 20 20 2f 2f 20 40 70 61 72 61 6d 20 7b 41 72 72 61 79 3c 73 74 72 69 6e 67 3e 20 7c 20 73 74 ...//.@param.{Array<string>.|.st
3680 72 69 6e 67 20 7c 20 49 67 6e 6f 72 65 7d 20 70 61 74 74 65 72 6e 0a 20 20 61 64 64 20 28 70 61 ring.|.Ignore}.pattern...add.(pa
36a0 74 74 65 72 6e 29 20 7b 0a 20 20 20 20 74 68 69 73 2e 5f 61 64 64 65 64 20 3d 20 66 61 6c 73 65 ttern).{.....this._added.=.false
36c0 0a 0a 20 20 20 20 6d 61 6b 65 41 72 72 61 79 28 0a 20 20 20 20 20 20 69 73 53 74 72 69 6e 67 28 ......makeArray(.......isString(
36e0 70 61 74 74 65 72 6e 29 0a 20 20 20 20 20 20 20 20 3f 20 73 70 6c 69 74 50 61 74 74 65 72 6e 28 pattern).........?.splitPattern(
3700 70 61 74 74 65 72 6e 29 0a 20 20 20 20 20 20 20 20 3a 20 70 61 74 74 65 72 6e 0a 20 20 20 20 29 pattern).........:.pattern.....)
3720 2e 66 6f 72 45 61 63 68 28 74 68 69 73 2e 5f 61 64 64 50 61 74 74 65 72 6e 2c 20 74 68 69 73 29 .forEach(this._addPattern,.this)
3740 0a 0a 20 20 20 20 2f 2f 20 53 6f 6d 65 20 72 75 6c 65 73 20 68 61 76 65 20 6a 75 73 74 20 61 64 ......//.Some.rules.have.just.ad
3760 64 65 64 20 74 6f 20 74 68 65 20 69 67 6e 6f 72 65 2c 0a 20 20 20 20 2f 2f 20 6d 61 6b 69 6e 67 ded.to.the.ignore,.....//.making
3780 20 74 68 65 20 62 65 68 61 76 69 6f 72 20 63 68 61 6e 67 65 64 2e 0a 20 20 20 20 69 66 20 28 74 .the.behavior.changed......if.(t
37a0 68 69 73 2e 5f 61 64 64 65 64 29 20 7b 0a 20 20 20 20 20 20 74 68 69 73 2e 5f 69 6e 69 74 43 61 his._added).{.......this._initCa
37c0 63 68 65 28 29 0a 20 20 20 20 7d 0a 0a 20 20 20 20 72 65 74 75 72 6e 20 74 68 69 73 0a 20 20 7d che().....}......return.this...}
37e0 0a 0a 20 20 2f 2f 20 6c 65 67 61 63 79 0a 20 20 61 64 64 50 61 74 74 65 72 6e 20 28 70 61 74 74 ....//.legacy...addPattern.(patt
3800 65 72 6e 29 20 7b 0a 20 20 20 20 72 65 74 75 72 6e 20 74 68 69 73 2e 61 64 64 28 70 61 74 74 65 ern).{.....return.this.add(patte
3820 72 6e 29 0a 20 20 7d 0a 0a 20 20 2f 2f 20 20 20 20 20 20 20 20 20 20 7c 20 20 20 20 20 20 20 20 rn)...}....//..........|........
3840 20 20 20 69 67 6e 6f 72 65 64 20 3a 20 75 6e 69 67 6e 6f 72 65 64 0a 20 20 2f 2f 20 6e 65 67 61 ...ignored.:.unignored...//.nega
3860 74 69 76 65 20 7c 20 20 20 30 3a 30 20 20 20 7c 20 20 20 30 3a 31 20 20 20 7c 20 20 20 31 3a 30 tive.|...0:0...|...0:1...|...1:0
3880 20 20 20 7c 20 20 20 31 3a 31 0a 20 20 2f 2f 20 2d 2d 2d 2d 2d 2d 2d 2d 20 7c 20 2d 2d 2d 2d 2d ...|...1:1...//.--------.|.-----
38a0 2d 2d 20 7c 20 2d 2d 2d 2d 2d 2d 2d 20 7c 20 2d 2d 2d 2d 2d 2d 2d 20 7c 20 2d 2d 2d 2d 2d 2d 2d --.|.-------.|.-------.|.-------
38c0 2d 0a 20 20 2f 2f 20 20 20 20 20 30 20 20 20 20 7c 20 20 54 45 53 54 20 20 20 7c 20 20 54 45 53 -...//.....0....|..TEST...|..TES
38e0 54 20 20 20 7c 20 20 53 4b 49 50 20 20 20 7c 20 20 20 20 58 0a 20 20 2f 2f 20 20 20 20 20 31 20 T...|..SKIP...|....X...//.....1.
3900 20 20 20 7c 20 20 54 45 53 54 49 46 20 7c 20 20 53 4b 49 50 20 20 20 7c 20 20 54 45 53 54 20 20 ...|..TESTIF.|..SKIP...|..TEST..
3920 20 7c 20 20 20 20 58 0a 0a 20 20 2f 2f 20 2d 20 53 4b 49 50 3a 20 61 6c 77 61 79 73 20 73 6b 69 .|....X....//.-.SKIP:.always.ski
3940 70 0a 20 20 2f 2f 20 2d 20 54 45 53 54 3a 20 61 6c 77 61 79 73 20 74 65 73 74 0a 20 20 2f 2f 20 p...//.-.TEST:.always.test...//.
3960 2d 20 54 45 53 54 49 46 3a 20 6f 6e 6c 79 20 74 65 73 74 20 69 66 20 63 68 65 63 6b 55 6e 69 67 -.TESTIF:.only.test.if.checkUnig
3980 6e 6f 72 65 64 0a 20 20 2f 2f 20 2d 20 58 3a 20 74 68 61 74 20 6e 65 76 65 72 20 68 61 70 70 65 nored...//.-.X:.that.never.happe
39a0 6e 0a 0a 20 20 2f 2f 20 40 70 61 72 61 6d 20 7b 62 6f 6f 6c 65 61 6e 7d 20 77 68 65 74 68 65 72 n....//.@param.{boolean}.whether
39c0 20 73 68 6f 75 6c 64 20 63 68 65 63 6b 20 69 66 20 74 68 65 20 70 61 74 68 20 69 73 20 75 6e 69 .should.check.if.the.path.is.uni
39e0 67 6e 6f 72 65 64 2c 0a 20 20 2f 2f 20 20 20 73 65 74 74 69 6e 67 20 60 63 68 65 63 6b 55 6e 69 gnored,...//...setting.`checkUni
3a00 67 6e 6f 72 65 64 60 20 74 6f 20 60 66 61 6c 73 65 60 20 63 6f 75 6c 64 20 72 65 64 75 63 65 20 gnored`.to.`false`.could.reduce.
3a20 61 64 64 69 74 69 6f 6e 61 6c 0a 20 20 2f 2f 20 20 20 70 61 74 68 20 6d 61 74 63 68 69 6e 67 2e additional...//...path.matching.
3a40 0a 0a 20 20 2f 2f 20 40 72 65 74 75 72 6e 73 20 7b 54 65 73 74 52 65 73 75 6c 74 7d 20 74 72 75 ....//.@returns.{TestResult}.tru
3a60 65 20 69 66 20 61 20 66 69 6c 65 20 69 73 20 69 67 6e 6f 72 65 64 0a 20 20 5f 74 65 73 74 4f 6e e.if.a.file.is.ignored..._testOn
3a80 65 20 28 70 61 74 68 2c 20 63 68 65 63 6b 55 6e 69 67 6e 6f 72 65 64 29 20 7b 0a 20 20 20 20 6c e.(path,.checkUnignored).{.....l
3aa0 65 74 20 69 67 6e 6f 72 65 64 20 3d 20 66 61 6c 73 65 0a 20 20 20 20 6c 65 74 20 75 6e 69 67 6e et.ignored.=.false.....let.unign
3ac0 6f 72 65 64 20 3d 20 66 61 6c 73 65 0a 0a 20 20 20 20 74 68 69 73 2e 5f 72 75 6c 65 73 2e 66 6f ored.=.false......this._rules.fo
3ae0 72 45 61 63 68 28 72 75 6c 65 20 3d 3e 20 7b 0a 20 20 20 20 20 20 63 6f 6e 73 74 20 7b 6e 65 67 rEach(rule.=>.{.......const.{neg
3b00 61 74 69 76 65 7d 20 3d 20 72 75 6c 65 0a 20 20 20 20 20 20 69 66 20 28 0a 20 20 20 20 20 20 20 ative}.=.rule.......if.(........
3b20 20 75 6e 69 67 6e 6f 72 65 64 20 3d 3d 3d 20 6e 65 67 61 74 69 76 65 20 26 26 20 69 67 6e 6f 72 .unignored.===.negative.&&.ignor
3b40 65 64 20 21 3d 3d 20 75 6e 69 67 6e 6f 72 65 64 0a 20 20 20 20 20 20 20 20 7c 7c 20 6e 65 67 61 ed.!==.unignored.........||.nega
3b60 74 69 76 65 20 26 26 20 21 69 67 6e 6f 72 65 64 20 26 26 20 21 75 6e 69 67 6e 6f 72 65 64 20 26 tive.&&.!ignored.&&.!unignored.&
3b80 26 20 21 63 68 65 63 6b 55 6e 69 67 6e 6f 72 65 64 0a 20 20 20 20 20 20 29 20 7b 0a 20 20 20 20 &.!checkUnignored.......).{.....
3ba0 20 20 20 20 72 65 74 75 72 6e 0a 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 63 6f 6e 73 74 20 ....return.......}........const.
3bc0 6d 61 74 63 68 65 64 20 3d 20 72 75 6c 65 2e 72 65 67 65 78 2e 74 65 73 74 28 70 61 74 68 29 0a matched.=.rule.regex.test(path).
3be0 0a 20 20 20 20 20 20 69 66 20 28 6d 61 74 63 68 65 64 29 20 7b 0a 20 20 20 20 20 20 20 20 69 67 .......if.(matched).{.........ig
3c00 6e 6f 72 65 64 20 3d 20 21 6e 65 67 61 74 69 76 65 0a 20 20 20 20 20 20 20 20 75 6e 69 67 6e 6f nored.=.!negative.........unigno
3c20 72 65 64 20 3d 20 6e 65 67 61 74 69 76 65 0a 20 20 20 20 20 20 7d 0a 20 20 20 20 7d 29 0a 0a 20 red.=.negative.......}.....})...
3c40 20 20 20 72 65 74 75 72 6e 20 7b 0a 20 20 20 20 20 20 69 67 6e 6f 72 65 64 2c 0a 20 20 20 20 20 ...return.{.......ignored,......
3c60 20 75 6e 69 67 6e 6f 72 65 64 0a 20 20 20 20 7d 0a 20 20 7d 0a 0a 20 20 2f 2f 20 40 72 65 74 75 .unignored.....}...}....//.@retu
3c80 72 6e 73 20 7b 54 65 73 74 52 65 73 75 6c 74 7d 0a 20 20 5f 74 65 73 74 20 28 6f 72 69 67 69 6e rns.{TestResult}..._test.(origin
3ca0 61 6c 50 61 74 68 2c 20 63 61 63 68 65 2c 20 63 68 65 63 6b 55 6e 69 67 6e 6f 72 65 64 2c 20 73 alPath,.cache,.checkUnignored,.s
3cc0 6c 69 63 65 73 29 20 7b 0a 20 20 20 20 63 6f 6e 73 74 20 70 61 74 68 20 3d 20 6f 72 69 67 69 6e lices).{.....const.path.=.origin
3ce0 61 6c 50 61 74 68 0a 20 20 20 20 20 20 2f 2f 20 53 75 70 70 6f 72 74 73 20 6e 75 6c 6c 61 62 6c alPath.......//.Supports.nullabl
3d00 65 20 70 61 74 68 0a 20 20 20 20 20 20 26 26 20 63 68 65 63 6b 50 61 74 68 2e 63 6f 6e 76 65 72 e.path.......&&.checkPath.conver
3d20 74 28 6f 72 69 67 69 6e 61 6c 50 61 74 68 29 0a 0a 20 20 20 20 63 68 65 63 6b 50 61 74 68 28 70 t(originalPath)......checkPath(p
3d40 61 74 68 2c 20 6f 72 69 67 69 6e 61 6c 50 61 74 68 2c 20 74 68 72 6f 77 45 72 72 6f 72 29 0a 0a ath,.originalPath,.throwError)..
3d60 20 20 20 20 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 74 28 70 61 74 68 2c 20 63 61 63 68 65 2c 20 ....return.this._t(path,.cache,.
3d80 63 68 65 63 6b 55 6e 69 67 6e 6f 72 65 64 2c 20 73 6c 69 63 65 73 29 0a 20 20 7d 0a 0a 20 20 5f checkUnignored,.slices)...}...._
3da0 74 20 28 70 61 74 68 2c 20 63 61 63 68 65 2c 20 63 68 65 63 6b 55 6e 69 67 6e 6f 72 65 64 2c 20 t.(path,.cache,.checkUnignored,.
3dc0 73 6c 69 63 65 73 29 20 7b 0a 20 20 20 20 69 66 20 28 70 61 74 68 20 69 6e 20 63 61 63 68 65 29 slices).{.....if.(path.in.cache)
3de0 20 7b 0a 20 20 20 20 20 20 72 65 74 75 72 6e 20 63 61 63 68 65 5b 70 61 74 68 5d 0a 20 20 20 20 .{.......return.cache[path].....
3e00 7d 0a 0a 20 20 20 20 69 66 20 28 21 73 6c 69 63 65 73 29 20 7b 0a 20 20 20 20 20 20 2f 2f 20 70 }......if.(!slices).{.......//.p
3e20 61 74 68 2f 74 6f 2f 61 2e 6a 73 0a 20 20 20 20 20 20 2f 2f 20 5b 27 70 61 74 68 27 2c 20 27 74 ath/to/a.js.......//.['path',.'t
3e40 6f 27 2c 20 27 61 2e 6a 73 27 5d 0a 20 20 20 20 20 20 73 6c 69 63 65 73 20 3d 20 70 61 74 68 2e o',.'a.js'].......slices.=.path.
3e60 73 70 6c 69 74 28 53 4c 41 53 48 29 0a 20 20 20 20 7d 0a 0a 20 20 20 20 73 6c 69 63 65 73 2e 70 split(SLASH).....}......slices.p
3e80 6f 70 28 29 0a 0a 20 20 20 20 2f 2f 20 49 66 20 74 68 65 20 70 61 74 68 20 68 61 73 20 6e 6f 20 op()......//.If.the.path.has.no.
3ea0 70 61 72 65 6e 74 20 64 69 72 65 63 74 6f 72 79 2c 20 6a 75 73 74 20 74 65 73 74 20 69 74 0a 20 parent.directory,.just.test.it..
3ec0 20 20 20 69 66 20 28 21 73 6c 69 63 65 73 2e 6c 65 6e 67 74 68 29 20 7b 0a 20 20 20 20 20 20 72 ...if.(!slices.length).{.......r
3ee0 65 74 75 72 6e 20 63 61 63 68 65 5b 70 61 74 68 5d 20 3d 20 74 68 69 73 2e 5f 74 65 73 74 4f 6e eturn.cache[path].=.this._testOn
3f00 65 28 70 61 74 68 2c 20 63 68 65 63 6b 55 6e 69 67 6e 6f 72 65 64 29 0a 20 20 20 20 7d 0a 0a 20 e(path,.checkUnignored).....}...
3f20 20 20 20 63 6f 6e 73 74 20 70 61 72 65 6e 74 20 3d 20 74 68 69 73 2e 5f 74 28 0a 20 20 20 20 20 ...const.parent.=.this._t(......
3f40 20 73 6c 69 63 65 73 2e 6a 6f 69 6e 28 53 4c 41 53 48 29 20 2b 20 53 4c 41 53 48 2c 0a 20 20 20 .slices.join(SLASH).+.SLASH,....
3f60 20 20 20 63 61 63 68 65 2c 0a 20 20 20 20 20 20 63 68 65 63 6b 55 6e 69 67 6e 6f 72 65 64 2c 0a ...cache,.......checkUnignored,.
3f80 20 20 20 20 20 20 73 6c 69 63 65 73 0a 20 20 20 20 29 0a 0a 20 20 20 20 2f 2f 20 49 66 20 74 68 ......slices.....)......//.If.th
3fa0 65 20 70 61 74 68 20 63 6f 6e 74 61 69 6e 73 20 61 20 70 61 72 65 6e 74 20 64 69 72 65 63 74 6f e.path.contains.a.parent.directo
3fc0 72 79 2c 20 63 68 65 63 6b 20 74 68 65 20 70 61 72 65 6e 74 20 66 69 72 73 74 0a 20 20 20 20 72 ry,.check.the.parent.first.....r
3fe0 65 74 75 72 6e 20 63 61 63 68 65 5b 70 61 74 68 5d 20 3d 20 70 61 72 65 6e 74 2e 69 67 6e 6f 72 eturn.cache[path].=.parent.ignor
4000 65 64 0a 20 20 20 20 20 20 2f 2f 20 3e 20 49 74 20 69 73 20 6e 6f 74 20 70 6f 73 73 69 62 6c 65 ed.......//.>.It.is.not.possible
4020 20 74 6f 20 72 65 2d 69 6e 63 6c 75 64 65 20 61 20 66 69 6c 65 20 69 66 20 61 20 70 61 72 65 6e .to.re-include.a.file.if.a.paren
4040 74 20 64 69 72 65 63 74 6f 72 79 20 6f 66 0a 20 20 20 20 20 20 2f 2f 20 3e 20 20 20 74 68 61 74 t.directory.of.......//.>...that
4060 20 66 69 6c 65 20 69 73 20 65 78 63 6c 75 64 65 64 2e 0a 20 20 20 20 20 20 3f 20 70 61 72 65 6e .file.is.excluded........?.paren
4080 74 0a 20 20 20 20 20 20 3a 20 74 68 69 73 2e 5f 74 65 73 74 4f 6e 65 28 70 61 74 68 2c 20 63 68 t.......:.this._testOne(path,.ch
40a0 65 63 6b 55 6e 69 67 6e 6f 72 65 64 29 0a 20 20 7d 0a 0a 20 20 69 67 6e 6f 72 65 73 20 28 70 61 eckUnignored)...}....ignores.(pa
40c0 74 68 29 20 7b 0a 20 20 20 20 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 74 65 73 74 28 70 61 74 68 th).{.....return.this._test(path
40e0 2c 20 74 68 69 73 2e 5f 69 67 6e 6f 72 65 43 61 63 68 65 2c 20 66 61 6c 73 65 29 2e 69 67 6e 6f ,.this._ignoreCache,.false).igno
4100 72 65 64 0a 20 20 7d 0a 0a 20 20 63 72 65 61 74 65 46 69 6c 74 65 72 20 28 29 20 7b 0a 20 20 20 red...}....createFilter.().{....
4120 20 72 65 74 75 72 6e 20 70 61 74 68 20 3d 3e 20 21 74 68 69 73 2e 69 67 6e 6f 72 65 73 28 70 61 .return.path.=>.!this.ignores(pa
4140 74 68 29 0a 20 20 7d 0a 0a 20 20 66 69 6c 74 65 72 20 28 70 61 74 68 73 29 20 7b 0a 20 20 20 20 th)...}....filter.(paths).{.....
4160 72 65 74 75 72 6e 20 6d 61 6b 65 41 72 72 61 79 28 70 61 74 68 73 29 2e 66 69 6c 74 65 72 28 74 return.makeArray(paths).filter(t
4180 68 69 73 2e 63 72 65 61 74 65 46 69 6c 74 65 72 28 29 29 0a 20 20 7d 0a 0a 20 20 2f 2f 20 40 72 his.createFilter())...}....//.@r
41a0 65 74 75 72 6e 73 20 7b 54 65 73 74 52 65 73 75 6c 74 7d 0a 20 20 74 65 73 74 20 28 70 61 74 68 eturns.{TestResult}...test.(path
41c0 29 20 7b 0a 20 20 20 20 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 74 65 73 74 28 70 61 74 68 2c 20 ).{.....return.this._test(path,.
41e0 74 68 69 73 2e 5f 74 65 73 74 43 61 63 68 65 2c 20 74 72 75 65 29 0a 20 20 7d 0a 7d 0a 0a 63 6f this._testCache,.true)...}.}..co
4200 6e 73 74 20 66 61 63 74 6f 72 79 20 3d 20 6f 70 74 69 6f 6e 73 20 3d 3e 20 6e 65 77 20 49 67 6e nst.factory.=.options.=>.new.Ign
4220 6f 72 65 28 6f 70 74 69 6f 6e 73 29 0a 0a 63 6f 6e 73 74 20 72 65 74 75 72 6e 46 61 6c 73 65 20 ore(options)..const.returnFalse.
4240 3d 20 28 29 20 3d 3e 20 66 61 6c 73 65 0a 0a 63 6f 6e 73 74 20 69 73 50 61 74 68 56 61 6c 69 64 =.().=>.false..const.isPathValid
4260 20 3d 20 70 61 74 68 20 3d 3e 0a 20 20 63 68 65 63 6b 50 61 74 68 28 70 61 74 68 20 26 26 20 63 .=.path.=>...checkPath(path.&&.c
4280 68 65 63 6b 50 61 74 68 2e 63 6f 6e 76 65 72 74 28 70 61 74 68 29 2c 20 70 61 74 68 2c 20 72 65 heckPath.convert(path),.path,.re
42a0 74 75 72 6e 46 61 6c 73 65 29 0a 0a 66 61 63 74 6f 72 79 2e 69 73 50 61 74 68 56 61 6c 69 64 20 turnFalse)..factory.isPathValid.
42c0 3d 20 69 73 50 61 74 68 56 61 6c 69 64 0a 0a 2f 2f 20 46 69 78 65 73 20 74 79 70 65 73 63 72 69 =.isPathValid..//.Fixes.typescri
42e0 70 74 0a 66 61 63 74 6f 72 79 2e 64 65 66 61 75 6c 74 20 3d 20 66 61 63 74 6f 72 79 0a 0a 6d 6f pt.factory.default.=.factory..mo
4300 64 75 6c 65 2e 65 78 70 6f 72 74 73 20 3d 20 66 61 63 74 6f 72 79 0a 0a 2f 2f 20 57 69 6e 64 6f dule.exports.=.factory..//.Windo
4320 77 73 0a 2f 2f 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ws.//.--------------------------
4340 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d --------------------------------
4360 2d 2d 2d 2d 0a 2f 2a 20 69 73 74 61 6e 62 75 6c 20 69 67 6e 6f 72 65 20 69 66 20 20 2a 2f 0a 69 ----./*.istanbul.ignore.if..*/.i
4380 66 20 28 0a 20 20 2f 2f 20 44 65 74 65 63 74 20 60 70 72 6f 63 65 73 73 60 20 73 6f 20 74 68 61 f.(...//.Detect.`process`.so.tha
43a0 74 20 69 74 20 63 61 6e 20 72 75 6e 20 69 6e 20 62 72 6f 77 73 65 72 73 2e 0a 20 20 74 79 70 65 t.it.can.run.in.browsers....type
43c0 6f 66 20 70 72 6f 63 65 73 73 20 21 3d 3d 20 27 75 6e 64 65 66 69 6e 65 64 27 0a 20 20 26 26 20 of.process.!==.'undefined'...&&.
43e0 28 0a 20 20 20 20 70 72 6f 63 65 73 73 2e 65 6e 76 20 26 26 20 70 72 6f 63 65 73 73 2e 65 6e 76 (.....process.env.&&.process.env
4400 2e 49 47 4e 4f 52 45 5f 54 45 53 54 5f 57 49 4e 33 32 0a 20 20 20 20 7c 7c 20 70 72 6f 63 65 73 .IGNORE_TEST_WIN32.....||.proces
4420 73 2e 70 6c 61 74 66 6f 72 6d 20 3d 3d 3d 20 27 77 69 6e 33 32 27 0a 20 20 29 0a 29 20 7b 0a 20 s.platform.===.'win32'...).).{..
4440 20 2f 2a 20 65 73 6c 69 6e 74 20 6e 6f 2d 63 6f 6e 74 72 6f 6c 2d 72 65 67 65 78 3a 20 22 6f 66 ./*.eslint.no-control-regex:."of
4460 66 22 20 2a 2f 0a 20 20 63 6f 6e 73 74 20 6d 61 6b 65 50 6f 73 69 78 20 3d 20 73 74 72 20 3d 3e f".*/...const.makePosix.=.str.=>
4480 20 2f 5e 5c 5c 5c 5c 5c 3f 5c 5c 2f 2e 74 65 73 74 28 73 74 72 29 0a 20 20 7c 7c 20 2f 5b 22 3c ./^\\\\\?\\/.test(str)...||./["<
44a0 3e 7c 5c 75 30 30 30 30 2d 5c 75 30 30 31 46 5d 2b 2f 75 2e 74 65 73 74 28 73 74 72 29 0a 20 20 >|\u0000-\u001F]+/u.test(str)...
44c0 20 20 3f 20 73 74 72 0a 20 20 20 20 3a 20 73 74 72 2e 72 65 70 6c 61 63 65 28 2f 5c 5c 2f 67 2c ..?.str.....:.str.replace(/\\/g,
44e0 20 27 2f 27 29 0a 0a 20 20 63 68 65 63 6b 50 61 74 68 2e 63 6f 6e 76 65 72 74 20 3d 20 6d 61 6b .'/')....checkPath.convert.=.mak
4500 65 50 6f 73 69 78 0a 0a 20 20 2f 2f 20 27 43 3a 5c 5c 66 6f 6f 27 20 20 20 20 20 3c 2d 20 27 43 ePosix....//.'C:\\foo'.....<-.'C
4520 3a 5c 5c 66 6f 6f 27 20 68 61 73 20 62 65 65 6e 20 63 6f 6e 76 65 72 74 65 64 20 74 6f 20 27 43 :\\foo'.has.been.converted.to.'C
4540 3a 2f 27 0a 20 20 2f 2f 20 27 64 3a 5c 5c 66 6f 6f 27 0a 20 20 63 6f 6e 73 74 20 52 45 47 49 58 :/'...//.'d:\\foo'...const.REGIX
4560 5f 49 53 5f 57 49 4e 44 4f 57 53 5f 50 41 54 48 5f 41 42 53 4f 4c 55 54 45 20 3d 20 2f 5e 5b 61 _IS_WINDOWS_PATH_ABSOLUTE.=./^[a
4580 2d 7a 5d 3a 5c 2f 2f 69 0a 20 20 63 68 65 63 6b 50 61 74 68 2e 69 73 4e 6f 74 52 65 6c 61 74 69 -z]:\//i...checkPath.isNotRelati
45a0 76 65 20 3d 20 70 61 74 68 20 3d 3e 0a 20 20 20 20 52 45 47 49 58 5f 49 53 5f 57 49 4e 44 4f 57 ve.=.path.=>.....REGIX_IS_WINDOW
45c0 53 5f 50 41 54 48 5f 41 42 53 4f 4c 55 54 45 2e 74 65 73 74 28 70 61 74 68 29 0a 20 20 20 20 7c S_PATH_ABSOLUTE.test(path).....|
45e0 7c 20 69 73 4e 6f 74 52 65 6c 61 74 69 76 65 28 70 61 74 68 29 0a 7d 0a 00 00 00 00 00 00 00 00 |.isNotRelative(path).}.........
4600 70 61 63 6b 61 67 65 2f 6c 65 67 61 63 79 2e 6a 73 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 package/legacy.js...............
4620 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
4640 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
4660 00 00 00 00 30 30 30 36 34 34 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30 30 30 30 ....000644..................0000
4680 30 34 31 30 32 35 20 00 33 35 36 30 31 31 36 36 30 34 20 00 30 31 31 30 36 34 20 00 30 00 00 00 041025..3560116604..011064..0...
46a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
46c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
46e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
4700 00 75 73 74 61 72 00 30 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .ustar.00.......................
4720 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
4740 00 00 00 00 00 00 00 00 00 30 30 30 30 30 30 20 00 30 30 30 30 30 30 20 00 00 00 00 00 00 00 00 .........000000..000000.........
4760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
4780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
47a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
47c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
47e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
4800 22 75 73 65 20 73 74 72 69 63 74 22 3b 0a 0a 66 75 6e 63 74 69 6f 6e 20 5f 64 65 66 69 6e 65 50 "use.strict";..function._defineP
4820 72 6f 70 65 72 74 69 65 73 28 74 61 72 67 65 74 2c 20 70 72 6f 70 73 29 20 7b 20 66 6f 72 20 28 roperties(target,.props).{.for.(
4840 76 61 72 20 69 20 3d 20 30 3b 20 69 20 3c 20 70 72 6f 70 73 2e 6c 65 6e 67 74 68 3b 20 69 2b 2b var.i.=.0;.i.<.props.length;.i++
4860 29 20 7b 20 76 61 72 20 64 65 73 63 72 69 70 74 6f 72 20 3d 20 70 72 6f 70 73 5b 69 5d 3b 20 64 ).{.var.descriptor.=.props[i];.d
4880 65 73 63 72 69 70 74 6f 72 2e 65 6e 75 6d 65 72 61 62 6c 65 20 3d 20 64 65 73 63 72 69 70 74 6f escriptor.enumerable.=.descripto
48a0 72 2e 65 6e 75 6d 65 72 61 62 6c 65 20 7c 7c 20 66 61 6c 73 65 3b 20 64 65 73 63 72 69 70 74 6f r.enumerable.||.false;.descripto
48c0 72 2e 63 6f 6e 66 69 67 75 72 61 62 6c 65 20 3d 20 74 72 75 65 3b 20 69 66 20 28 22 76 61 6c 75 r.configurable.=.true;.if.("valu
48e0 65 22 20 69 6e 20 64 65 73 63 72 69 70 74 6f 72 29 20 64 65 73 63 72 69 70 74 6f 72 2e 77 72 69 e".in.descriptor).descriptor.wri
4900 74 61 62 6c 65 20 3d 20 74 72 75 65 3b 20 4f 62 6a 65 63 74 2e 64 65 66 69 6e 65 50 72 6f 70 65 table.=.true;.Object.definePrope
4920 72 74 79 28 74 61 72 67 65 74 2c 20 64 65 73 63 72 69 70 74 6f 72 2e 6b 65 79 2c 20 64 65 73 63 rty(target,.descriptor.key,.desc
4940 72 69 70 74 6f 72 29 3b 20 7d 20 7d 0a 0a 66 75 6e 63 74 69 6f 6e 20 5f 63 72 65 61 74 65 43 6c riptor);.}.}..function._createCl
4960 61 73 73 28 43 6f 6e 73 74 72 75 63 74 6f 72 2c 20 70 72 6f 74 6f 50 72 6f 70 73 2c 20 73 74 61 ass(Constructor,.protoProps,.sta
4980 74 69 63 50 72 6f 70 73 29 20 7b 20 69 66 20 28 70 72 6f 74 6f 50 72 6f 70 73 29 20 5f 64 65 66 ticProps).{.if.(protoProps)._def
49a0 69 6e 65 50 72 6f 70 65 72 74 69 65 73 28 43 6f 6e 73 74 72 75 63 74 6f 72 2e 70 72 6f 74 6f 74 ineProperties(Constructor.protot
49c0 79 70 65 2c 20 70 72 6f 74 6f 50 72 6f 70 73 29 3b 20 69 66 20 28 73 74 61 74 69 63 50 72 6f 70 ype,.protoProps);.if.(staticProp
49e0 73 29 20 5f 64 65 66 69 6e 65 50 72 6f 70 65 72 74 69 65 73 28 43 6f 6e 73 74 72 75 63 74 6f 72 s)._defineProperties(Constructor
4a00 2c 20 73 74 61 74 69 63 50 72 6f 70 73 29 3b 20 72 65 74 75 72 6e 20 43 6f 6e 73 74 72 75 63 74 ,.staticProps);.return.Construct
4a20 6f 72 3b 20 7d 0a 0a 66 75 6e 63 74 69 6f 6e 20 5f 63 6c 61 73 73 43 61 6c 6c 43 68 65 63 6b 28 or;.}..function._classCallCheck(
4a40 69 6e 73 74 61 6e 63 65 2c 20 43 6f 6e 73 74 72 75 63 74 6f 72 29 20 7b 20 69 66 20 28 21 28 69 instance,.Constructor).{.if.(!(i
4a60 6e 73 74 61 6e 63 65 20 69 6e 73 74 61 6e 63 65 6f 66 20 43 6f 6e 73 74 72 75 63 74 6f 72 29 29 nstance.instanceof.Constructor))
4a80 20 7b 20 74 68 72 6f 77 20 6e 65 77 20 54 79 70 65 45 72 72 6f 72 28 22 43 61 6e 6e 6f 74 20 63 .{.throw.new.TypeError("Cannot.c
4aa0 61 6c 6c 20 61 20 63 6c 61 73 73 20 61 73 20 61 20 66 75 6e 63 74 69 6f 6e 22 29 3b 20 7d 20 7d all.a.class.as.a.function");.}.}
4ac0 0a 0a 2f 2f 20 41 20 73 69 6d 70 6c 65 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 6f 66 20 ..//.A.simple.implementation.of.
4ae0 6d 61 6b 65 2d 61 72 72 61 79 0a 66 75 6e 63 74 69 6f 6e 20 6d 61 6b 65 41 72 72 61 79 28 73 75 make-array.function.makeArray(su
4b00 62 6a 65 63 74 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 41 72 72 61 79 2e 69 73 41 72 72 61 79 28 bject).{...return.Array.isArray(
4b20 73 75 62 6a 65 63 74 29 20 3f 20 73 75 62 6a 65 63 74 20 3a 20 5b 73 75 62 6a 65 63 74 5d 3b 0a subject).?.subject.:.[subject];.
4b40 7d 0a 0a 76 61 72 20 45 4d 50 54 59 20 3d 20 27 27 3b 0a 76 61 72 20 53 50 41 43 45 20 3d 20 27 }..var.EMPTY.=.'';.var.SPACE.=.'
4b60 20 27 3b 0a 76 61 72 20 45 53 43 41 50 45 20 3d 20 27 5c 5c 27 3b 0a 76 61 72 20 52 45 47 45 58 .';.var.ESCAPE.=.'\\';.var.REGEX
4b80 5f 54 45 53 54 5f 42 4c 41 4e 4b 5f 4c 49 4e 45 20 3d 20 2f 5e 5c 73 2b 24 2f 3b 0a 76 61 72 20 _TEST_BLANK_LINE.=./^\s+$/;.var.
4ba0 52 45 47 45 58 5f 52 45 50 4c 41 43 45 5f 4c 45 41 44 49 4e 47 5f 45 58 43 41 50 45 44 5f 45 58 REGEX_REPLACE_LEADING_EXCAPED_EX
4bc0 43 4c 41 4d 41 54 49 4f 4e 20 3d 20 2f 5e 5c 5c 21 2f 3b 0a 76 61 72 20 52 45 47 45 58 5f 52 45 CLAMATION.=./^\\!/;.var.REGEX_RE
4be0 50 4c 41 43 45 5f 4c 45 41 44 49 4e 47 5f 45 58 43 41 50 45 44 5f 48 41 53 48 20 3d 20 2f 5e 5c PLACE_LEADING_EXCAPED_HASH.=./^\
4c00 5c 23 2f 3b 0a 76 61 72 20 52 45 47 45 58 5f 53 50 4c 49 54 41 4c 4c 5f 43 52 4c 46 20 3d 20 2f \#/;.var.REGEX_SPLITALL_CRLF.=./
4c20 5c 72 3f 5c 6e 2f 67 3b 20 2f 2f 20 2f 66 6f 6f 2c 0a 2f 2f 20 2e 2f 66 6f 6f 2c 0a 2f 2f 20 2e \r?\n/g;.//./foo,.//../foo,.//..
4c40 2e 2f 66 6f 6f 2c 0a 2f 2f 20 2e 0a 2f 2f 20 2e 2e 0a 0a 76 61 72 20 52 45 47 45 58 5f 54 45 53 ./foo,.//...//.....var.REGEX_TES
4c60 54 5f 49 4e 56 41 4c 49 44 5f 50 41 54 48 20 3d 20 2f 5e 5c 2e 2a 5c 2f 7c 5e 5c 2e 2b 24 2f 3b T_INVALID_PATH.=./^\.*\/|^\.+$/;
4c80 0a 76 61 72 20 53 4c 41 53 48 20 3d 20 27 2f 27 3b 0a 76 61 72 20 4b 45 59 5f 49 47 4e 4f 52 45 .var.SLASH.=.'/';.var.KEY_IGNORE
4ca0 20 3d 20 74 79 70 65 6f 66 20 53 79 6d 62 6f 6c 20 21 3d 3d 20 27 75 6e 64 65 66 69 6e 65 64 27 .=.typeof.Symbol.!==.'undefined'
4cc0 20 3f 20 53 79 6d 62 6f 6c 5b 22 66 6f 72 22 5d 28 27 6e 6f 64 65 2d 69 67 6e 6f 72 65 27 29 0a .?.Symbol["for"]('node-ignore').
4ce0 2f 2a 20 69 73 74 61 6e 62 75 6c 20 69 67 6e 6f 72 65 20 6e 65 78 74 20 2a 2f 0a 3a 20 27 6e 6f /*.istanbul.ignore.next.*/.:.'no
4d00 64 65 2d 69 67 6e 6f 72 65 27 3b 0a 0a 76 61 72 20 64 65 66 69 6e 65 20 3d 20 66 75 6e 63 74 69 de-ignore';..var.define.=.functi
4d20 6f 6e 20 64 65 66 69 6e 65 28 6f 62 6a 65 63 74 2c 20 6b 65 79 2c 20 76 61 6c 75 65 29 20 7b 0a on.define(object,.key,.value).{.
4d40 20 20 72 65 74 75 72 6e 20 4f 62 6a 65 63 74 2e 64 65 66 69 6e 65 50 72 6f 70 65 72 74 79 28 6f ..return.Object.defineProperty(o
4d60 62 6a 65 63 74 2c 20 6b 65 79 2c 20 7b 0a 20 20 20 20 76 61 6c 75 65 3a 20 76 61 6c 75 65 0a 20 bject,.key,.{.....value:.value..
4d80 20 7d 29 3b 0a 7d 3b 0a 0a 76 61 72 20 52 45 47 45 58 5f 52 45 47 45 58 50 5f 52 41 4e 47 45 20 .});.};..var.REGEX_REGEXP_RANGE.
4da0 3d 20 2f 28 5b 30 2d 7a 5d 29 2d 28 5b 30 2d 7a 5d 29 2f 67 3b 20 2f 2f 20 53 61 6e 69 74 69 7a =./([0-z])-([0-z])/g;.//.Sanitiz
4dc0 65 20 74 68 65 20 72 61 6e 67 65 20 6f 66 20 61 20 72 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 e.the.range.of.a.regular.express
4de0 69 6f 6e 0a 2f 2f 20 54 68 65 20 63 61 73 65 73 20 61 72 65 20 63 6f 6d 70 6c 69 63 61 74 65 64 ion.//.The.cases.are.complicated
4e00 2c 20 73 65 65 20 74 65 73 74 20 63 61 73 65 73 20 66 6f 72 20 64 65 74 61 69 6c 73 0a 0a 76 61 ,.see.test.cases.for.details..va
4e20 72 20 73 61 6e 69 74 69 7a 65 52 61 6e 67 65 20 3d 20 66 75 6e 63 74 69 6f 6e 20 73 61 6e 69 74 r.sanitizeRange.=.function.sanit
4e40 69 7a 65 52 61 6e 67 65 28 72 61 6e 67 65 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 72 61 6e 67 65 izeRange(range).{...return.range
4e60 2e 72 65 70 6c 61 63 65 28 52 45 47 45 58 5f 52 45 47 45 58 50 5f 52 41 4e 47 45 2c 20 66 75 6e .replace(REGEX_REGEXP_RANGE,.fun
4e80 63 74 69 6f 6e 20 28 6d 61 74 63 68 2c 20 66 72 6f 6d 2c 20 74 6f 29 20 7b 0a 20 20 20 20 72 65 ction.(match,.from,.to).{.....re
4ea0 74 75 72 6e 20 66 72 6f 6d 2e 63 68 61 72 43 6f 64 65 41 74 28 30 29 20 3c 3d 20 74 6f 2e 63 68 turn.from.charCodeAt(0).<=.to.ch
4ec0 61 72 43 6f 64 65 41 74 28 30 29 20 3f 20 6d 61 74 63 68 20 2f 2f 20 49 6e 76 61 6c 69 64 20 72 arCodeAt(0).?.match.//.Invalid.r
4ee0 61 6e 67 65 20 28 6f 75 74 20 6f 66 20 6f 72 64 65 72 29 20 77 68 69 63 68 20 69 73 20 6f 6b 20 ange.(out.of.order).which.is.ok.
4f00 66 6f 72 20 67 69 74 69 67 6e 6f 72 65 20 72 75 6c 65 73 20 62 75 74 0a 20 20 20 20 2f 2f 20 20 for.gitignore.rules.but.....//..
4f20 20 66 61 74 61 6c 20 66 6f 72 20 4a 61 76 61 53 63 72 69 70 74 20 72 65 67 75 6c 61 72 20 65 78 .fatal.for.JavaScript.regular.ex
4f40 70 72 65 73 73 69 6f 6e 2c 20 73 6f 20 65 6c 69 6d 69 6e 61 74 65 20 69 74 2e 0a 20 20 20 20 3a pression,.so.eliminate.it......:
4f60 20 45 4d 50 54 59 3b 0a 20 20 7d 29 3b 0a 7d 3b 20 2f 2f 20 53 65 65 20 66 69 78 74 75 72 65 73 .EMPTY;...});.};.//.See.fixtures
4f80 20 23 35 39 0a 0a 0a 76 61 72 20 63 6c 65 61 6e 52 61 6e 67 65 42 61 63 6b 53 6c 61 73 68 20 3d .#59...var.cleanRangeBackSlash.=
4fa0 20 66 75 6e 63 74 69 6f 6e 20 63 6c 65 61 6e 52 61 6e 67 65 42 61 63 6b 53 6c 61 73 68 28 73 6c .function.cleanRangeBackSlash(sl
4fc0 61 73 68 65 73 29 20 7b 0a 20 20 76 61 72 20 6c 65 6e 67 74 68 20 3d 20 73 6c 61 73 68 65 73 2e ashes).{...var.length.=.slashes.
4fe0 6c 65 6e 67 74 68 3b 0a 20 20 72 65 74 75 72 6e 20 73 6c 61 73 68 65 73 2e 73 6c 69 63 65 28 30 length;...return.slashes.slice(0
5000 2c 20 6c 65 6e 67 74 68 20 2d 20 6c 65 6e 67 74 68 20 25 20 32 29 3b 0a 7d 3b 20 2f 2f 20 3e 20 ,.length.-.length.%.2);.};.//.>.
5020 49 66 20 74 68 65 20 70 61 74 74 65 72 6e 20 65 6e 64 73 20 77 69 74 68 20 61 20 73 6c 61 73 68 If.the.pattern.ends.with.a.slash
5040 2c 0a 2f 2f 20 3e 20 69 74 20 69 73 20 72 65 6d 6f 76 65 64 20 66 6f 72 20 74 68 65 20 70 75 72 ,.//.>.it.is.removed.for.the.pur
5060 70 6f 73 65 20 6f 66 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 64 65 73 63 72 69 70 74 69 6f pose.of.the.following.descriptio
5080 6e 2c 0a 2f 2f 20 3e 20 62 75 74 20 69 74 20 77 6f 75 6c 64 20 6f 6e 6c 79 20 66 69 6e 64 20 61 n,.//.>.but.it.would.only.find.a
50a0 20 6d 61 74 63 68 20 77 69 74 68 20 61 20 64 69 72 65 63 74 6f 72 79 2e 0a 2f 2f 20 3e 20 49 6e .match.with.a.directory..//.>.In
50c0 20 6f 74 68 65 72 20 77 6f 72 64 73 2c 20 66 6f 6f 2f 20 77 69 6c 6c 20 6d 61 74 63 68 20 61 20 .other.words,.foo/.will.match.a.
50e0 64 69 72 65 63 74 6f 72 79 20 66 6f 6f 20 61 6e 64 20 70 61 74 68 73 20 75 6e 64 65 72 6e 65 61 directory.foo.and.paths.undernea
5100 74 68 20 69 74 2c 0a 2f 2f 20 3e 20 62 75 74 20 77 69 6c 6c 20 6e 6f 74 20 6d 61 74 63 68 20 61 th.it,.//.>.but.will.not.match.a
5120 20 72 65 67 75 6c 61 72 20 66 69 6c 65 20 6f 72 20 61 20 73 79 6d 62 6f 6c 69 63 20 6c 69 6e 6b .regular.file.or.a.symbolic.link
5140 20 66 6f 6f 0a 2f 2f 20 3e 20 20 28 74 68 69 73 20 69 73 20 63 6f 6e 73 69 73 74 65 6e 74 20 77 .foo.//.>..(this.is.consistent.w
5160 69 74 68 20 74 68 65 20 77 61 79 20 68 6f 77 20 70 61 74 68 73 70 65 63 20 77 6f 72 6b 73 20 69 ith.the.way.how.pathspec.works.i
5180 6e 20 67 65 6e 65 72 61 6c 20 69 6e 20 47 69 74 29 2e 0a 2f 2f 20 27 60 66 6f 6f 2f 60 27 20 77 n.general.in.Git)..//.'`foo/`'.w
51a0 69 6c 6c 20 6e 6f 74 20 6d 61 74 63 68 20 72 65 67 75 6c 61 72 20 66 69 6c 65 20 27 60 66 6f 6f ill.not.match.regular.file.'`foo
51c0 60 27 20 6f 72 20 73 79 6d 62 6f 6c 69 63 20 6c 69 6e 6b 20 27 60 66 6f 6f 60 27 0a 2f 2f 20 2d `'.or.symbolic.link.'`foo`'.//.-
51e0 3e 20 69 67 6e 6f 72 65 2d 72 75 6c 65 73 20 77 69 6c 6c 20 6e 6f 74 20 64 65 61 6c 20 77 69 74 >.ignore-rules.will.not.deal.wit
5200 68 20 69 74 2c 20 62 65 63 61 75 73 65 20 69 74 20 63 6f 73 74 73 20 65 78 74 72 61 20 60 66 73 h.it,.because.it.costs.extra.`fs
5220 2e 73 74 61 74 60 20 63 61 6c 6c 0a 2f 2f 20 20 20 20 20 20 79 6f 75 20 63 6f 75 6c 64 20 75 73 .stat`.call.//......you.could.us
5240 65 20 6f 70 74 69 6f 6e 20 60 6d 61 72 6b 3a 20 74 72 75 65 60 20 77 69 74 68 20 60 67 6c 6f 62 e.option.`mark:.true`.with.`glob
5260 60 0a 2f 2f 20 27 60 66 6f 6f 2f 60 27 20 73 68 6f 75 6c 64 20 6e 6f 74 20 63 6f 6e 74 69 6e 75 `.//.'`foo/`'.should.not.continu
5280 65 20 77 69 74 68 20 74 68 65 20 27 60 2e 2e 60 27 0a 0a 0a 76 61 72 20 52 45 50 4c 41 43 45 52 e.with.the.'`..`'...var.REPLACER
52a0 53 20 3d 20 5b 2f 2f 20 3e 20 54 72 61 69 6c 69 6e 67 20 73 70 61 63 65 73 20 61 72 65 20 69 67 S.=.[//.>.Trailing.spaces.are.ig
52c0 6e 6f 72 65 64 20 75 6e 6c 65 73 73 20 74 68 65 79 20 61 72 65 20 71 75 6f 74 65 64 20 77 69 74 nored.unless.they.are.quoted.wit
52e0 68 20 62 61 63 6b 73 6c 61 73 68 20 28 22 5c 22 29 0a 5b 2f 2f 20 28 61 5c 20 29 20 2d 3e 20 28 h.backslash.("\").[//.(a\.).->.(
5300 61 20 29 0a 2f 2f 20 28 61 20 20 29 20 2d 3e 20 28 61 29 0a 2f 2f 20 28 61 20 5c 20 29 20 2d 3e a.).//.(a..).->.(a).//.(a.\.).->
5320 20 28 61 20 20 29 0a 2f 5c 5c 3f 5c 73 2b 24 2f 2c 20 66 75 6e 63 74 69 6f 6e 20 28 6d 61 74 63 .(a..)./\\?\s+$/,.function.(matc
5340 68 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 6d 61 74 63 68 2e 69 6e 64 65 78 4f 66 28 27 5c 5c 27 h).{...return.match.indexOf('\\'
5360 29 20 3d 3d 3d 20 30 20 3f 20 53 50 41 43 45 20 3a 20 45 4d 50 54 59 3b 0a 7d 5d 2c 20 2f 2f 20 ).===.0.?.SPACE.:.EMPTY;.}],.//.
5380 72 65 70 6c 61 63 65 20 28 5c 20 29 20 77 69 74 68 20 27 20 27 0a 5b 2f 5c 5c 5c 73 2f 67 2c 20 replace.(\.).with.'.'.[/\\\s/g,.
53a0 66 75 6e 63 74 69 6f 6e 20 28 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 53 50 41 43 45 3b 0a 7d 5d function.().{...return.SPACE;.}]
53c0 2c 20 2f 2f 20 45 73 63 61 70 65 20 6d 65 74 61 63 68 61 72 61 63 74 65 72 73 0a 2f 2f 20 77 68 ,.//.Escape.metacharacters.//.wh
53e0 69 63 68 20 69 73 20 77 72 69 74 74 65 6e 20 64 6f 77 6e 20 62 79 20 75 73 65 72 73 20 62 75 74 ich.is.written.down.by.users.but
5400 20 6d 65 61 6e 73 20 73 70 65 63 69 61 6c 20 66 6f 72 20 72 65 67 75 6c 61 72 20 65 78 70 72 65 .means.special.for.regular.expre
5420 73 73 69 6f 6e 73 2e 0a 2f 2f 20 3e 20 54 68 65 72 65 20 61 72 65 20 31 32 20 63 68 61 72 61 63 ssions..//.>.There.are.12.charac
5440 74 65 72 73 20 77 69 74 68 20 73 70 65 63 69 61 6c 20 6d 65 61 6e 69 6e 67 73 3a 0a 2f 2f 20 3e ters.with.special.meanings:.//.>
5460 20 2d 20 74 68 65 20 62 61 63 6b 73 6c 61 73 68 20 5c 2c 0a 2f 2f 20 3e 20 2d 20 74 68 65 20 63 .-.the.backslash.\,.//.>.-.the.c
5480 61 72 65 74 20 5e 2c 0a 2f 2f 20 3e 20 2d 20 74 68 65 20 64 6f 6c 6c 61 72 20 73 69 67 6e 20 24 aret.^,.//.>.-.the.dollar.sign.$
54a0 2c 0a 2f 2f 20 3e 20 2d 20 74 68 65 20 70 65 72 69 6f 64 20 6f 72 20 64 6f 74 20 2e 2c 0a 2f 2f ,.//.>.-.the.period.or.dot..,.//
54c0 20 3e 20 2d 20 74 68 65 20 76 65 72 74 69 63 61 6c 20 62 61 72 20 6f 72 20 70 69 70 65 20 73 79 .>.-.the.vertical.bar.or.pipe.sy
54e0 6d 62 6f 6c 20 7c 2c 0a 2f 2f 20 3e 20 2d 20 74 68 65 20 71 75 65 73 74 69 6f 6e 20 6d 61 72 6b mbol.|,.//.>.-.the.question.mark
5500 20 3f 2c 0a 2f 2f 20 3e 20 2d 20 74 68 65 20 61 73 74 65 72 69 73 6b 20 6f 72 20 73 74 61 72 20 .?,.//.>.-.the.asterisk.or.star.
5520 2a 2c 0a 2f 2f 20 3e 20 2d 20 74 68 65 20 70 6c 75 73 20 73 69 67 6e 20 2b 2c 0a 2f 2f 20 3e 20 *,.//.>.-.the.plus.sign.+,.//.>.
5540 2d 20 74 68 65 20 6f 70 65 6e 69 6e 67 20 70 61 72 65 6e 74 68 65 73 69 73 20 28 2c 0a 2f 2f 20 -.the.opening.parenthesis.(,.//.
5560 3e 20 2d 20 74 68 65 20 63 6c 6f 73 69 6e 67 20 70 61 72 65 6e 74 68 65 73 69 73 20 29 2c 0a 2f >.-.the.closing.parenthesis.),./
5580 2f 20 3e 20 2d 20 61 6e 64 20 74 68 65 20 6f 70 65 6e 69 6e 67 20 73 71 75 61 72 65 20 62 72 61 /.>.-.and.the.opening.square.bra
55a0 63 6b 65 74 20 5b 2c 0a 2f 2f 20 3e 20 2d 20 74 68 65 20 6f 70 65 6e 69 6e 67 20 63 75 72 6c 79 cket.[,.//.>.-.the.opening.curly
55c0 20 62 72 61 63 65 20 7b 2c 0a 2f 2f 20 3e 20 54 68 65 73 65 20 73 70 65 63 69 61 6c 20 63 68 61 .brace.{,.//.>.These.special.cha
55e0 72 61 63 74 65 72 73 20 61 72 65 20 6f 66 74 65 6e 20 63 61 6c 6c 65 64 20 22 6d 65 74 61 63 68 racters.are.often.called."metach
5600 61 72 61 63 74 65 72 73 22 2e 0a 5b 2f 5b 5c 5c 24 2e 7c 2a 2b 28 29 7b 5e 5d 2f 67 2c 20 66 75 aracters"..[/[\\$.|*+(){^]/g,.fu
5620 6e 63 74 69 6f 6e 20 28 6d 61 74 63 68 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 22 5c 5c 22 2e 63 nction.(match).{...return."\\".c
5640 6f 6e 63 61 74 28 6d 61 74 63 68 29 3b 0a 7d 5d 2c 20 5b 2f 2f 20 3e 20 61 20 71 75 65 73 74 69 oncat(match);.}],.[//.>.a.questi
5660 6f 6e 20 6d 61 72 6b 20 28 3f 29 20 6d 61 74 63 68 65 73 20 61 20 73 69 6e 67 6c 65 20 63 68 61 on.mark.(?).matches.a.single.cha
5680 72 61 63 74 65 72 0a 2f 28 3f 21 5c 5c 29 5c 3f 2f 67 2c 20 66 75 6e 63 74 69 6f 6e 20 28 29 20 racter./(?!\\)\?/g,.function.().
56a0 7b 0a 20 20 72 65 74 75 72 6e 20 27 5b 5e 2f 5d 27 3b 0a 7d 5d 2c 20 2f 2f 20 6c 65 61 64 69 6e {...return.'[^/]';.}],.//.leadin
56c0 67 20 73 6c 61 73 68 0a 5b 2f 2f 20 3e 20 41 20 6c 65 61 64 69 6e 67 20 73 6c 61 73 68 20 6d 61 g.slash.[//.>.A.leading.slash.ma
56e0 74 63 68 65 73 20 74 68 65 20 62 65 67 69 6e 6e 69 6e 67 20 6f 66 20 74 68 65 20 70 61 74 68 6e tches.the.beginning.of.the.pathn
5700 61 6d 65 2e 0a 2f 2f 20 3e 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 22 2f 2a 2e 63 22 20 6d 61 ame..//.>.For.example,."/*.c".ma
5720 74 63 68 65 73 20 22 63 61 74 2d 66 69 6c 65 2e 63 22 20 62 75 74 20 6e 6f 74 20 22 6d 6f 7a 69 tches."cat-file.c".but.not."mozi
5740 6c 6c 61 2d 73 68 61 31 2f 73 68 61 31 2e 63 22 2e 0a 2f 2f 20 41 20 6c 65 61 64 69 6e 67 20 73 lla-sha1/sha1.c"..//.A.leading.s
5760 6c 61 73 68 20 6d 61 74 63 68 65 73 20 74 68 65 20 62 65 67 69 6e 6e 69 6e 67 20 6f 66 20 74 68 lash.matches.the.beginning.of.th
5780 65 20 70 61 74 68 6e 61 6d 65 0a 2f 5e 5c 2f 2f 2c 20 66 75 6e 63 74 69 6f 6e 20 28 29 20 7b 0a e.pathname./^\//,.function.().{.
57a0 20 20 72 65 74 75 72 6e 20 27 5e 27 3b 0a 7d 5d 2c 20 2f 2f 20 72 65 70 6c 61 63 65 20 73 70 65 ..return.'^';.}],.//.replace.spe
57c0 63 69 61 6c 20 6d 65 74 61 63 68 61 72 61 63 74 65 72 20 73 6c 61 73 68 20 61 66 74 65 72 20 74 cial.metacharacter.slash.after.t
57e0 68 65 20 6c 65 61 64 69 6e 67 20 73 6c 61 73 68 0a 5b 2f 5c 2f 2f 67 2c 20 66 75 6e 63 74 69 6f he.leading.slash.[/\//g,.functio
5800 6e 20 28 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 27 5c 5c 2f 27 3b 0a 7d 5d 2c 20 5b 2f 2f 20 3e n.().{...return.'\\/';.}],.[//.>
5820 20 41 20 6c 65 61 64 69 6e 67 20 22 2a 2a 22 20 66 6f 6c 6c 6f 77 65 64 20 62 79 20 61 20 73 6c .A.leading."**".followed.by.a.sl
5840 61 73 68 20 6d 65 61 6e 73 20 6d 61 74 63 68 20 69 6e 20 61 6c 6c 20 64 69 72 65 63 74 6f 72 69 ash.means.match.in.all.directori
5860 65 73 2e 0a 2f 2f 20 3e 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 22 2a 2a 2f 66 6f 6f 22 20 6d es..//.>.For.example,."**/foo".m
5880 61 74 63 68 65 73 20 66 69 6c 65 20 6f 72 20 64 69 72 65 63 74 6f 72 79 20 22 66 6f 6f 22 20 61 atches.file.or.directory."foo".a
58a0 6e 79 77 68 65 72 65 2c 0a 2f 2f 20 3e 20 74 68 65 20 73 61 6d 65 20 61 73 20 70 61 74 74 65 72 nywhere,.//.>.the.same.as.patter
58c0 6e 20 22 66 6f 6f 22 2e 0a 2f 2f 20 3e 20 22 2a 2a 2f 66 6f 6f 2f 62 61 72 22 20 6d 61 74 63 68 n."foo"..//.>."**/foo/bar".match
58e0 65 73 20 66 69 6c 65 20 6f 72 20 64 69 72 65 63 74 6f 72 79 20 22 62 61 72 22 20 61 6e 79 77 68 es.file.or.directory."bar".anywh
5900 65 72 65 20 74 68 61 74 20 69 73 20 64 69 72 65 63 74 6c 79 0a 2f 2f 20 3e 20 20 20 75 6e 64 65 ere.that.is.directly.//.>...unde
5920 72 20 64 69 72 65 63 74 6f 72 79 20 22 66 6f 6f 22 2e 0a 2f 2f 20 4e 6f 74 69 63 65 20 74 68 61 r.directory."foo"..//.Notice.tha
5940 74 20 74 68 65 20 27 2a 27 73 20 68 61 76 65 20 62 65 65 6e 20 72 65 70 6c 61 63 65 64 20 61 73 t.the.'*'s.have.been.replaced.as
5960 20 27 5c 5c 2a 27 0a 2f 5e 5c 5e 2a 5c 5c 5c 2a 5c 5c 5c 2a 5c 5c 5c 2f 2f 2c 20 2f 2f 20 27 2a .'\\*'./^\^*\\\*\\\*\\\//,.//.'*
5980 2a 2f 66 6f 6f 27 20 3c 2d 3e 20 27 66 6f 6f 27 0a 66 75 6e 63 74 69 6f 6e 20 28 29 20 7b 0a 20 */foo'.<->.'foo'.function.().{..
59a0 20 72 65 74 75 72 6e 20 27 5e 28 3f 3a 2e 2a 5c 5c 2f 29 3f 27 3b 0a 7d 5d 2c 20 2f 2f 20 73 74 .return.'^(?:.*\\/)?';.}],.//.st
59c0 61 72 74 69 6e 67 0a 5b 2f 2f 20 74 68 65 72 65 20 77 69 6c 6c 20 62 65 20 6e 6f 20 6c 65 61 64 arting.[//.there.will.be.no.lead
59e0 69 6e 67 20 27 2f 27 0a 2f 2f 20 20 20 28 77 68 69 63 68 20 68 61 73 20 62 65 65 6e 20 72 65 70 ing.'/'.//...(which.has.been.rep
5a00 6c 61 63 65 64 20 62 79 20 73 65 63 74 69 6f 6e 20 22 6c 65 61 64 69 6e 67 20 73 6c 61 73 68 22 laced.by.section."leading.slash"
5a20 29 0a 2f 2f 20 49 66 20 73 74 61 72 74 73 20 77 69 74 68 20 27 2a 2a 27 2c 20 61 64 64 69 6e 67 ).//.If.starts.with.'**',.adding
5a40 20 61 20 27 5e 27 20 74 6f 20 74 68 65 20 72 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e .a.'^'.to.the.regular.expression
5a60 20 61 6c 73 6f 20 77 6f 72 6b 73 0a 2f 5e 28 3f 3d 5b 5e 5e 5d 29 2f 2c 20 66 75 6e 63 74 69 6f .also.works./^(?=[^^])/,.functio
5a80 6e 20 73 74 61 72 74 69 6e 67 52 65 70 6c 61 63 65 72 28 29 20 7b 0a 20 20 2f 2f 20 49 66 20 68 n.startingReplacer().{...//.If.h
5aa0 61 73 20 61 20 73 6c 61 73 68 20 60 2f 60 20 61 74 20 74 68 65 20 62 65 67 69 6e 6e 69 6e 67 20 as.a.slash.`/`.at.the.beginning.
5ac0 6f 72 20 6d 69 64 64 6c 65 0a 20 20 72 65 74 75 72 6e 20 21 2f 5c 2f 28 3f 21 24 29 2f 2e 74 65 or.middle...return.!/\/(?!$)/.te
5ae0 73 74 28 74 68 69 73 29 20 2f 2f 20 3e 20 50 72 69 6f 72 20 74 6f 20 32 2e 32 32 2e 31 0a 20 20 st(this).//.>.Prior.to.2.22.1...
5b00 2f 2f 20 3e 20 49 66 20 74 68 65 20 70 61 74 74 65 72 6e 20 64 6f 65 73 20 6e 6f 74 20 63 6f 6e //.>.If.the.pattern.does.not.con
5b20 74 61 69 6e 20 61 20 73 6c 61 73 68 20 2f 2c 0a 20 20 2f 2f 20 3e 20 20 20 47 69 74 20 74 72 65 tain.a.slash./,...//.>...Git.tre
5b40 61 74 73 20 69 74 20 61 73 20 61 20 73 68 65 6c 6c 20 67 6c 6f 62 20 70 61 74 74 65 72 6e 0a 20 ats.it.as.a.shell.glob.pattern..
5b60 20 2f 2f 20 41 63 74 75 61 6c 6c 79 2c 20 69 66 20 74 68 65 72 65 20 69 73 20 6f 6e 6c 79 20 61 .//.Actually,.if.there.is.only.a
5b80 20 74 72 61 69 6c 69 6e 67 20 73 6c 61 73 68 2c 0a 20 20 2f 2f 20 20 20 67 69 74 20 61 6c 73 6f .trailing.slash,...//...git.also
5ba0 20 74 72 65 61 74 73 20 69 74 20 61 73 20 61 20 73 68 65 6c 6c 20 67 6c 6f 62 20 70 61 74 74 65 .treats.it.as.a.shell.glob.patte
5bc0 72 6e 0a 20 20 2f 2f 20 41 66 74 65 72 20 32 2e 32 32 2e 31 20 28 63 6f 6d 70 61 74 69 62 6c 65 rn...//.After.2.22.1.(compatible
5be0 20 62 75 74 20 63 6c 65 61 72 65 72 29 0a 20 20 2f 2f 20 3e 20 49 66 20 74 68 65 72 65 20 69 73 .but.clearer)...//.>.If.there.is
5c00 20 61 20 73 65 70 61 72 61 74 6f 72 20 61 74 20 74 68 65 20 62 65 67 69 6e 6e 69 6e 67 20 6f 72 .a.separator.at.the.beginning.or
5c20 20 6d 69 64 64 6c 65 20 28 6f 72 20 62 6f 74 68 29 0a 20 20 2f 2f 20 3e 20 6f 66 20 74 68 65 20 .middle.(or.both)...//.>.of.the.
5c40 70 61 74 74 65 72 6e 2c 20 74 68 65 6e 20 74 68 65 20 70 61 74 74 65 72 6e 20 69 73 20 72 65 6c pattern,.then.the.pattern.is.rel
5c60 61 74 69 76 65 20 74 6f 20 74 68 65 20 64 69 72 65 63 74 6f 72 79 0a 20 20 2f 2f 20 3e 20 6c 65 ative.to.the.directory...//.>.le
5c80 76 65 6c 20 6f 66 20 74 68 65 20 70 61 72 74 69 63 75 6c 61 72 20 2e 67 69 74 69 67 6e 6f 72 65 vel.of.the.particular..gitignore
5ca0 20 66 69 6c 65 20 69 74 73 65 6c 66 2e 0a 20 20 2f 2f 20 3e 20 4f 74 68 65 72 77 69 73 65 20 74 .file.itself....//.>.Otherwise.t
5cc0 68 65 20 70 61 74 74 65 72 6e 20 6d 61 79 20 61 6c 73 6f 20 6d 61 74 63 68 20 61 74 20 61 6e 79 he.pattern.may.also.match.at.any
5ce0 20 6c 65 76 65 6c 20 62 65 6c 6f 77 0a 20 20 2f 2f 20 3e 20 74 68 65 20 2e 67 69 74 69 67 6e 6f .level.below...//.>.the..gitigno
5d00 72 65 20 6c 65 76 65 6c 2e 0a 20 20 3f 20 27 28 3f 3a 5e 7c 5c 5c 2f 29 27 20 2f 2f 20 3e 20 4f re.level....?.'(?:^|\\/)'.//.>.O
5d20 74 68 65 72 77 69 73 65 2c 20 47 69 74 20 74 72 65 61 74 73 20 74 68 65 20 70 61 74 74 65 72 6e therwise,.Git.treats.the.pattern
5d40 20 61 73 20 61 20 73 68 65 6c 6c 20 67 6c 6f 62 20 73 75 69 74 61 62 6c 65 20 66 6f 72 0a 20 20 .as.a.shell.glob.suitable.for...
5d60 2f 2f 20 3e 20 20 20 63 6f 6e 73 75 6d 70 74 69 6f 6e 20 62 79 20 66 6e 6d 61 74 63 68 28 33 29 //.>...consumption.by.fnmatch(3)
5d80 0a 20 20 3a 20 27 5e 27 3b 0a 7d 5d 2c 20 2f 2f 20 74 77 6f 20 67 6c 6f 62 73 74 61 72 73 0a 5b ...:.'^';.}],.//.two.globstars.[
5da0 2f 2f 20 55 73 65 20 6c 6f 6f 6b 61 68 65 61 64 20 61 73 73 65 72 74 69 6f 6e 73 20 73 6f 20 74 //.Use.lookahead.assertions.so.t
5dc0 68 61 74 20 77 65 20 63 6f 75 6c 64 20 6d 61 74 63 68 20 6d 6f 72 65 20 74 68 61 6e 20 6f 6e 65 hat.we.could.match.more.than.one
5de0 20 60 27 2f 2a 2a 27 60 0a 2f 5c 5c 5c 2f 5c 5c 5c 2a 5c 5c 5c 2a 28 3f 3d 5c 5c 5c 2f 7c 24 29 .`'/**'`./\\\/\\\*\\\*(?=\\\/|$)
5e00 2f 67 2c 20 2f 2f 20 5a 65 72 6f 2c 20 6f 6e 65 20 6f 72 20 73 65 76 65 72 61 6c 20 64 69 72 65 /g,.//.Zero,.one.or.several.dire
5e20 63 74 6f 72 69 65 73 0a 2f 2f 20 73 68 6f 75 6c 64 20 6e 6f 74 20 75 73 65 20 27 2a 27 2c 20 6f ctories.//.should.not.use.'*',.o
5e40 72 20 69 74 20 77 69 6c 6c 20 62 65 20 72 65 70 6c 61 63 65 64 20 62 79 20 74 68 65 20 6e 65 78 r.it.will.be.replaced.by.the.nex
5e60 74 20 72 65 70 6c 61 63 65 72 0a 2f 2f 20 43 68 65 63 6b 20 69 66 20 69 74 20 69 73 20 6e 6f 74 t.replacer.//.Check.if.it.is.not
5e80 20 74 68 65 20 6c 61 73 74 20 60 27 2f 2a 2a 27 60 0a 66 75 6e 63 74 69 6f 6e 20 28 5f 2c 20 69 .the.last.`'/**'`.function.(_,.i
5ea0 6e 64 65 78 2c 20 73 74 72 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 69 6e 64 65 78 20 2b 20 36 20 ndex,.str).{...return.index.+.6.
5ec0 3c 20 73 74 72 2e 6c 65 6e 67 74 68 20 2f 2f 20 63 61 73 65 3a 20 2f 2a 2a 2f 0a 20 20 2f 2f 20 <.str.length.//.case:./**/...//.
5ee0 3e 20 41 20 73 6c 61 73 68 20 66 6f 6c 6c 6f 77 65 64 20 62 79 20 74 77 6f 20 63 6f 6e 73 65 63 >.A.slash.followed.by.two.consec
5f00 75 74 69 76 65 20 61 73 74 65 72 69 73 6b 73 20 74 68 65 6e 20 61 20 73 6c 61 73 68 20 6d 61 74 utive.asterisks.then.a.slash.mat
5f20 63 68 65 73 0a 20 20 2f 2f 20 3e 20 20 20 7a 65 72 6f 20 6f 72 20 6d 6f 72 65 20 64 69 72 65 63 ches...//.>...zero.or.more.direc
5f40 74 6f 72 69 65 73 2e 0a 20 20 2f 2f 20 3e 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 22 61 2f 2a tories....//.>.For.example,."a/*
5f60 2a 2f 62 22 20 6d 61 74 63 68 65 73 20 22 61 2f 62 22 2c 20 22 61 2f 78 2f 62 22 2c 20 22 61 2f */b".matches."a/b",."a/x/b",."a/
5f80 78 2f 79 2f 62 22 20 61 6e 64 20 73 6f 20 6f 6e 2e 0a 20 20 2f 2f 20 27 2f 2a 2a 2f 27 0a 20 20 x/y/b".and.so.on....//.'/**/'...
5fa0 3f 20 27 28 3f 3a 5c 5c 2f 5b 5e 5c 5c 2f 5d 2b 29 2a 27 20 2f 2f 20 63 61 73 65 3a 20 2f 2a 2a ?.'(?:\\/[^\\/]+)*'.//.case:./**
5fc0 0a 20 20 2f 2f 20 3e 20 41 20 74 72 61 69 6c 69 6e 67 20 60 22 2f 2a 2a 22 60 20 6d 61 74 63 68 ...//.>.A.trailing.`"/**"`.match
5fe0 65 73 20 65 76 65 72 79 74 68 69 6e 67 20 69 6e 73 69 64 65 2e 0a 20 20 2f 2f 20 23 32 31 3a 20 es.everything.inside....//.#21:.
6000 65 76 65 72 79 74 68 69 6e 67 20 69 6e 73 69 64 65 20 62 75 74 20 69 74 20 73 68 6f 75 6c 64 20 everything.inside.but.it.should.
6020 6e 6f 74 20 69 6e 63 6c 75 64 65 20 74 68 65 20 63 75 72 72 65 6e 74 20 66 6f 6c 64 65 72 0a 20 not.include.the.current.folder..
6040 20 3a 20 27 5c 5c 2f 2e 2b 27 3b 0a 7d 5d 2c 20 2f 2f 20 69 6e 74 65 72 6d 65 64 69 61 74 65 20 .:.'\\/.+';.}],.//.intermediate.
6060 77 69 6c 64 63 61 72 64 73 0a 5b 2f 2f 20 4e 65 76 65 72 20 72 65 70 6c 61 63 65 20 65 73 63 61 wildcards.[//.Never.replace.esca
6080 70 65 64 20 27 2a 27 0a 2f 2f 20 69 67 6e 6f 72 65 20 72 75 6c 65 20 27 5c 2a 27 20 77 69 6c 6c ped.'*'.//.ignore.rule.'\*'.will
60a0 20 6d 61 74 63 68 20 74 68 65 20 70 61 74 68 20 27 2a 27 0a 2f 2f 20 27 61 62 63 2e 2a 2f 27 20 .match.the.path.'*'.//.'abc.*/'.
60c0 2d 3e 20 67 6f 0a 2f 2f 20 27 61 62 63 2e 2a 27 20 20 2d 3e 20 73 6b 69 70 20 74 68 69 73 20 72 ->.go.//.'abc.*'..->.skip.this.r
60e0 75 6c 65 0a 2f 28 5e 7c 5b 5e 5c 5c 5d 2b 29 5c 5c 5c 2a 28 3f 3d 2e 2b 29 2f 67 2c 20 2f 2f 20 ule./(^|[^\\]+)\\\*(?=.+)/g,.//.
6100 27 2a 2e 6a 73 27 20 6d 61 74 63 68 65 73 20 27 2e 6a 73 27 0a 2f 2f 20 27 2a 2e 6a 73 27 20 64 '*.js'.matches.'.js'.//.'*.js'.d
6120 6f 65 73 6e 27 74 20 6d 61 74 63 68 20 27 61 62 63 27 0a 66 75 6e 63 74 69 6f 6e 20 28 5f 2c 20 oesn't.match.'abc'.function.(_,.
6140 70 31 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 22 22 2e 63 6f 6e 63 61 74 28 70 31 2c 20 22 5b 5e p1).{...return."".concat(p1,."[^
6160 5c 5c 2f 5d 2a 22 29 3b 0a 7d 5d 2c 20 5b 2f 2f 20 75 6e 65 73 63 61 70 65 2c 20 72 65 76 65 72 \\/]*");.}],.[//.unescape,.rever
6180 74 20 73 74 65 70 20 33 20 65 78 63 65 70 74 20 66 6f 72 20 62 61 63 6b 20 73 6c 61 73 68 0a 2f t.step.3.except.for.back.slash./
61a0 2f 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 69 66 20 61 20 75 73 65 72 20 65 73 63 61 70 65 20 /.For.example,.if.a.user.escape.
61c0 61 20 27 5c 5c 2a 27 2c 0a 2f 2f 20 61 66 74 65 72 20 73 74 65 70 20 33 2c 20 74 68 65 20 72 65 a.'\\*',.//.after.step.3,.the.re
61e0 73 75 6c 74 20 77 69 6c 6c 20 62 65 20 27 5c 5c 5c 5c 5c 5c 2a 27 0a 2f 5c 5c 5c 5c 5c 5c 28 3f sult.will.be.'\\\\\\*'./\\\\\\(?
6200 3d 5b 24 2e 7c 2a 2b 28 29 7b 5e 5d 29 2f 67 2c 20 66 75 6e 63 74 69 6f 6e 20 28 29 20 7b 0a 20 =[$.|*+(){^])/g,.function.().{..
6220 20 72 65 74 75 72 6e 20 45 53 43 41 50 45 3b 0a 7d 5d 2c 20 5b 2f 2f 20 27 5c 5c 5c 5c 27 20 2d .return.ESCAPE;.}],.[//.'\\\\'.-
6240 3e 20 27 5c 5c 27 0a 2f 5c 5c 5c 5c 2f 67 2c 20 66 75 6e 63 74 69 6f 6e 20 28 29 20 7b 0a 20 20 >.'\\'./\\\\/g,.function.().{...
6260 72 65 74 75 72 6e 20 45 53 43 41 50 45 3b 0a 7d 5d 2c 20 5b 2f 2f 20 3e 20 54 68 65 20 72 61 6e return.ESCAPE;.}],.[//.>.The.ran
6280 67 65 20 6e 6f 74 61 74 69 6f 6e 2c 20 65 2e 67 2e 20 5b 61 2d 7a 41 2d 5a 5d 2c 0a 2f 2f 20 3e ge.notation,.e.g..[a-zA-Z],.//.>
62a0 20 63 61 6e 20 62 65 20 75 73 65 64 20 74 6f 20 6d 61 74 63 68 20 6f 6e 65 20 6f 66 20 74 68 65 .can.be.used.to.match.one.of.the
62c0 20 63 68 61 72 61 63 74 65 72 73 20 69 6e 20 61 20 72 61 6e 67 65 2e 0a 2f 2f 20 60 5c 60 20 69 .characters.in.a.range..//.`\`.i
62e0 73 20 65 73 63 61 70 65 64 20 62 79 20 73 74 65 70 20 33 0a 2f 28 5c 5c 29 3f 5c 5b 28 5b 5e 5c s.escaped.by.step.3./(\\)?\[([^\
6300 5d 2f 5d 2a 3f 29 28 5c 5c 2a 29 28 24 7c 5c 5d 29 2f 67 2c 20 66 75 6e 63 74 69 6f 6e 20 28 6d ]/]*?)(\\*)($|\])/g,.function.(m
6320 61 74 63 68 2c 20 6c 65 61 64 45 73 63 61 70 65 2c 20 72 61 6e 67 65 2c 20 65 6e 64 45 73 63 61 atch,.leadEscape,.range,.endEsca
6340 70 65 2c 20 63 6c 6f 73 65 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 6c 65 61 64 45 73 63 61 70 65 pe,.close).{...return.leadEscape
6360 20 3d 3d 3d 20 45 53 43 41 50 45 20 2f 2f 20 27 5c 5c 5b 62 61 72 5d 27 20 2d 3e 20 27 5c 5c 5c .===.ESCAPE.//.'\\[bar]'.->.'\\\
6380 5c 5b 62 61 72 5c 5c 5d 27 0a 20 20 3f 20 22 5c 5c 5b 22 2e 63 6f 6e 63 61 74 28 72 61 6e 67 65 \[bar\\]'...?."\\[".concat(range
63a0 29 2e 63 6f 6e 63 61 74 28 63 6c 65 61 6e 52 61 6e 67 65 42 61 63 6b 53 6c 61 73 68 28 65 6e 64 ).concat(cleanRangeBackSlash(end
63c0 45 73 63 61 70 65 29 29 2e 63 6f 6e 63 61 74 28 63 6c 6f 73 65 29 20 3a 20 63 6c 6f 73 65 20 3d Escape)).concat(close).:.close.=
63e0 3d 3d 20 27 5d 27 20 3f 20 65 6e 64 45 73 63 61 70 65 2e 6c 65 6e 67 74 68 20 25 20 32 20 3d 3d ==.']'.?.endEscape.length.%.2.==
6400 3d 20 30 20 2f 2f 20 41 20 6e 6f 72 6d 61 6c 20 63 61 73 65 2c 20 61 6e 64 20 69 74 20 69 73 20 =.0.//.A.normal.case,.and.it.is.
6420 61 20 72 61 6e 67 65 20 6e 6f 74 61 74 69 6f 6e 0a 20 20 2f 2f 20 27 5b 62 61 72 5d 27 0a 20 20 a.range.notation...//.'[bar]'...
6440 2f 2f 20 27 5b 62 61 72 5c 5c 5c 5c 5d 27 0a 20 20 3f 20 22 5b 22 2e 63 6f 6e 63 61 74 28 73 61 //.'[bar\\\\]'...?."[".concat(sa
6460 6e 69 74 69 7a 65 52 61 6e 67 65 28 72 61 6e 67 65 29 29 2e 63 6f 6e 63 61 74 28 65 6e 64 45 73 nitizeRange(range)).concat(endEs
6480 63 61 70 65 2c 20 22 5d 22 29 20 2f 2f 20 49 6e 76 61 6c 69 64 20 72 61 6e 67 65 20 6e 6f 74 61 cape,."]").//.Invalid.range.nota
64a0 74 6f 6e 0a 20 20 2f 2f 20 27 5b 62 61 72 5c 5c 5d 27 20 2d 3e 20 27 5b 62 61 72 5c 5c 5c 5c 5d ton...//.'[bar\\]'.->.'[bar\\\\]
64c0 27 0a 20 20 3a 20 27 5b 5d 27 20 3a 20 27 5b 5d 27 3b 0a 7d 5d 2c 20 2f 2f 20 65 6e 64 69 6e 67 '...:.'[]'.:.'[]';.}],.//.ending
64e0 0a 5b 2f 2f 20 27 6a 73 27 20 77 69 6c 6c 20 6e 6f 74 20 6d 61 74 63 68 20 27 6a 73 2e 27 0a 2f .[//.'js'.will.not.match.'js.'./
6500 2f 20 27 61 62 27 20 77 69 6c 6c 20 6e 6f 74 20 6d 61 74 63 68 20 27 61 62 63 27 0a 2f 28 3f 3a /.'ab'.will.not.match.'abc'./(?:
6520 5b 5e 2a 5d 29 24 2f 2c 20 2f 2f 20 57 54 46 21 0a 2f 2f 20 68 74 74 70 73 3a 2f 2f 67 69 74 2d [^*])$/,.//.WTF!.//.https://git-
6540 73 63 6d 2e 63 6f 6d 2f 64 6f 63 73 2f 67 69 74 69 67 6e 6f 72 65 0a 2f 2f 20 63 68 61 6e 67 65 scm.com/docs/gitignore.//.change
6560 73 20 69 6e 20 5b 32 2e 32 32 2e 31 5d 28 68 74 74 70 73 3a 2f 2f 67 69 74 2d 73 63 6d 2e 63 6f s.in.[2.22.1](https://git-scm.co
6580 6d 2f 64 6f 63 73 2f 67 69 74 69 67 6e 6f 72 65 2f 32 2e 32 32 2e 31 29 0a 2f 2f 20 77 68 69 63 m/docs/gitignore/2.22.1).//.whic
65a0 68 20 72 65 2d 66 69 78 65 73 20 23 32 34 2c 20 23 33 38 0a 2f 2f 20 3e 20 49 66 20 74 68 65 72 h.re-fixes.#24,.#38.//.>.If.ther
65c0 65 20 69 73 20 61 20 73 65 70 61 72 61 74 6f 72 20 61 74 20 74 68 65 20 65 6e 64 20 6f 66 20 74 e.is.a.separator.at.the.end.of.t
65e0 68 65 20 70 61 74 74 65 72 6e 20 74 68 65 6e 20 74 68 65 20 70 61 74 74 65 72 6e 0a 2f 2f 20 3e he.pattern.then.the.pattern.//.>
6600 20 77 69 6c 6c 20 6f 6e 6c 79 20 6d 61 74 63 68 20 64 69 72 65 63 74 6f 72 69 65 73 2c 20 6f 74 .will.only.match.directories,.ot
6620 68 65 72 77 69 73 65 20 74 68 65 20 70 61 74 74 65 72 6e 20 63 61 6e 20 6d 61 74 63 68 20 62 6f herwise.the.pattern.can.match.bo
6640 74 68 0a 2f 2f 20 3e 20 66 69 6c 65 73 20 61 6e 64 20 64 69 72 65 63 74 6f 72 69 65 73 2e 0a 2f th.//.>.files.and.directories../
6660 2f 20 27 6a 73 2a 27 20 77 69 6c 6c 20 6e 6f 74 20 6d 61 74 63 68 20 27 61 2e 6a 73 27 0a 2f 2f /.'js*'.will.not.match.'a.js'.//
6680 20 27 6a 73 2f 27 20 77 69 6c 6c 20 6e 6f 74 20 6d 61 74 63 68 20 27 61 2e 6a 73 27 0a 2f 2f 20 .'js/'.will.not.match.'a.js'.//.
66a0 27 6a 73 27 20 77 69 6c 6c 20 6d 61 74 63 68 20 27 61 2e 6a 73 27 20 61 6e 64 20 27 61 2e 6a 73 'js'.will.match.'a.js'.and.'a.js
66c0 2f 27 0a 66 75 6e 63 74 69 6f 6e 20 28 6d 61 74 63 68 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 2f /'.function.(match).{...return./
66e0 5c 2f 24 2f 2e 74 65 73 74 28 6d 61 74 63 68 29 20 2f 2f 20 66 6f 6f 2f 20 77 69 6c 6c 20 6e 6f \/$/.test(match).//.foo/.will.no
6700 74 20 6d 61 74 63 68 20 27 66 6f 6f 27 0a 20 20 3f 20 22 22 2e 63 6f 6e 63 61 74 28 6d 61 74 63 t.match.'foo'...?."".concat(matc
6720 68 2c 20 22 24 22 29 20 2f 2f 20 66 6f 6f 20 6d 61 74 63 68 65 73 20 27 66 6f 6f 27 20 61 6e 64 h,."$").//.foo.matches.'foo'.and
6740 20 27 66 6f 6f 2f 27 0a 20 20 3a 20 22 22 2e 63 6f 6e 63 61 74 28 6d 61 74 63 68 2c 20 22 28 3f .'foo/'...:."".concat(match,."(?
6760 3d 24 7c 5c 5c 2f 24 29 22 29 3b 0a 7d 5d 2c 20 2f 2f 20 74 72 61 69 6c 69 6e 67 20 77 69 6c 64 =$|\\/$)");.}],.//.trailing.wild
6780 63 61 72 64 0a 5b 2f 28 5c 5e 7c 5c 5c 5c 2f 29 3f 5c 5c 5c 2a 24 2f 2c 20 66 75 6e 63 74 69 6f card.[/(\^|\\\/)?\\\*$/,.functio
67a0 6e 20 28 5f 2c 20 70 31 29 20 7b 0a 20 20 76 61 72 20 70 72 65 66 69 78 20 3d 20 70 31 20 2f 2f n.(_,.p1).{...var.prefix.=.p1.//
67c0 20 27 5c 5e 27 3a 0a 20 20 2f 2f 20 27 2f 2a 27 20 64 6f 65 73 20 6e 6f 74 20 6d 61 74 63 68 20 .'\^':...//.'/*'.does.not.match.
67e0 45 4d 50 54 59 0a 20 20 2f 2f 20 27 2f 2a 27 20 64 6f 65 73 20 6e 6f 74 20 6d 61 74 63 68 20 65 EMPTY...//.'/*'.does.not.match.e
6800 76 65 72 79 74 68 69 6e 67 0a 20 20 2f 2f 20 27 5c 5c 5c 2f 27 3a 0a 20 20 2f 2f 20 27 61 62 63 verything...//.'\\\/':...//.'abc
6820 2f 2a 27 20 64 6f 65 73 20 6e 6f 74 20 6d 61 74 63 68 20 27 61 62 63 2f 27 0a 20 20 3f 20 22 22 /*'.does.not.match.'abc/'...?.""
6840 2e 63 6f 6e 63 61 74 28 70 31 2c 20 22 5b 5e 2f 5d 2b 22 29 20 2f 2f 20 27 61 2a 27 20 6d 61 74 .concat(p1,."[^/]+").//.'a*'.mat
6860 63 68 65 73 20 27 61 27 0a 20 20 2f 2f 20 27 61 2a 27 20 6d 61 74 63 68 65 73 20 27 61 61 27 0a ches.'a'...//.'a*'.matches.'aa'.
6880 20 20 3a 20 27 5b 5e 2f 5d 2a 27 3b 0a 20 20 72 65 74 75 72 6e 20 22 22 2e 63 6f 6e 63 61 74 28 ..:.'[^/]*';...return."".concat(
68a0 70 72 65 66 69 78 2c 20 22 28 3f 3d 24 7c 5c 5c 2f 24 29 22 29 3b 0a 7d 5d 5d 3b 20 2f 2f 20 41 prefix,."(?=$|\\/$)");.}]];.//.A
68c0 20 73 69 6d 70 6c 65 20 63 61 63 68 65 2c 20 62 65 63 61 75 73 65 20 61 6e 20 69 67 6e 6f 72 65 .simple.cache,.because.an.ignore
68e0 20 72 75 6c 65 20 6f 6e 6c 79 20 68 61 73 20 6f 6e 6c 79 20 6f 6e 65 20 63 65 72 74 61 69 6e 20 .rule.only.has.only.one.certain.
6900 6d 65 61 6e 69 6e 67 0a 0a 76 61 72 20 72 65 67 65 78 43 61 63 68 65 20 3d 20 4f 62 6a 65 63 74 meaning..var.regexCache.=.Object
6920 2e 63 72 65 61 74 65 28 6e 75 6c 6c 29 3b 20 2f 2f 20 40 70 61 72 61 6d 20 7b 70 61 74 74 65 72 .create(null);.//.@param.{patter
6940 6e 7d 0a 0a 76 61 72 20 6d 61 6b 65 52 65 67 65 78 20 3d 20 66 75 6e 63 74 69 6f 6e 20 6d 61 6b n}..var.makeRegex.=.function.mak
6960 65 52 65 67 65 78 28 70 61 74 74 65 72 6e 2c 20 6e 65 67 61 74 69 76 65 2c 20 69 67 6e 6f 72 65 eRegex(pattern,.negative,.ignore
6980 63 61 73 65 29 20 7b 0a 20 20 76 61 72 20 72 20 3d 20 72 65 67 65 78 43 61 63 68 65 5b 70 61 74 case).{...var.r.=.regexCache[pat
69a0 74 65 72 6e 5d 3b 0a 0a 20 20 69 66 20 28 72 29 20 7b 0a 20 20 20 20 72 65 74 75 72 6e 20 72 3b tern];....if.(r).{.....return.r;
69c0 0a 20 20 7d 20 2f 2f 20 63 6f 6e 73 74 20 72 65 70 6c 61 63 65 72 73 20 3d 20 6e 65 67 61 74 69 ...}.//.const.replacers.=.negati
69e0 76 65 0a 20 20 2f 2f 20 20 20 3f 20 4e 45 47 41 54 49 56 45 5f 52 45 50 4c 41 43 45 52 53 0a 20 ve...//...?.NEGATIVE_REPLACERS..
6a00 20 2f 2f 20 20 20 3a 20 50 4f 53 49 54 49 56 45 5f 52 45 50 4c 41 43 45 52 53 0a 0a 0a 20 20 76 .//...:.POSITIVE_REPLACERS.....v
6a20 61 72 20 73 6f 75 72 63 65 20 3d 20 52 45 50 4c 41 43 45 52 53 2e 72 65 64 75 63 65 28 66 75 6e ar.source.=.REPLACERS.reduce(fun
6a40 63 74 69 6f 6e 20 28 70 72 65 76 2c 20 63 75 72 72 65 6e 74 29 20 7b 0a 20 20 20 20 72 65 74 75 ction.(prev,.current).{.....retu
6a60 72 6e 20 70 72 65 76 2e 72 65 70 6c 61 63 65 28 63 75 72 72 65 6e 74 5b 30 5d 2c 20 63 75 72 72 rn.prev.replace(current[0],.curr
6a80 65 6e 74 5b 31 5d 2e 62 69 6e 64 28 70 61 74 74 65 72 6e 29 29 3b 0a 20 20 7d 2c 20 70 61 74 74 ent[1].bind(pattern));...},.patt
6aa0 65 72 6e 29 3b 0a 20 20 72 65 74 75 72 6e 20 72 65 67 65 78 43 61 63 68 65 5b 70 61 74 74 65 72 ern);...return.regexCache[patter
6ac0 6e 5d 20 3d 20 69 67 6e 6f 72 65 63 61 73 65 20 3f 20 6e 65 77 20 52 65 67 45 78 70 28 73 6f 75 n].=.ignorecase.?.new.RegExp(sou
6ae0 72 63 65 2c 20 27 69 27 29 20 3a 20 6e 65 77 20 52 65 67 45 78 70 28 73 6f 75 72 63 65 29 3b 0a rce,.'i').:.new.RegExp(source);.
6b00 7d 3b 0a 0a 76 61 72 20 69 73 53 74 72 69 6e 67 20 3d 20 66 75 6e 63 74 69 6f 6e 20 69 73 53 74 };..var.isString.=.function.isSt
6b20 72 69 6e 67 28 73 75 62 6a 65 63 74 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 74 79 70 65 6f 66 20 ring(subject).{...return.typeof.
6b40 73 75 62 6a 65 63 74 20 3d 3d 3d 20 27 73 74 72 69 6e 67 27 3b 0a 7d 3b 20 2f 2f 20 3e 20 41 20 subject.===.'string';.};.//.>.A.
6b60 62 6c 61 6e 6b 20 6c 69 6e 65 20 6d 61 74 63 68 65 73 20 6e 6f 20 66 69 6c 65 73 2c 20 73 6f 20 blank.line.matches.no.files,.so.
6b80 69 74 20 63 61 6e 20 73 65 72 76 65 20 61 73 20 61 20 73 65 70 61 72 61 74 6f 72 20 66 6f 72 20 it.can.serve.as.a.separator.for.
6ba0 72 65 61 64 61 62 69 6c 69 74 79 2e 0a 0a 0a 76 61 72 20 63 68 65 63 6b 50 61 74 74 65 72 6e 20 readability....var.checkPattern.
6bc0 3d 20 66 75 6e 63 74 69 6f 6e 20 63 68 65 63 6b 50 61 74 74 65 72 6e 28 70 61 74 74 65 72 6e 29 =.function.checkPattern(pattern)
6be0 20 7b 0a 20 20 72 65 74 75 72 6e 20 70 61 74 74 65 72 6e 20 26 26 20 69 73 53 74 72 69 6e 67 28 .{...return.pattern.&&.isString(
6c00 70 61 74 74 65 72 6e 29 20 26 26 20 21 52 45 47 45 58 5f 54 45 53 54 5f 42 4c 41 4e 4b 5f 4c 49 pattern).&&.!REGEX_TEST_BLANK_LI
6c20 4e 45 2e 74 65 73 74 28 70 61 74 74 65 72 6e 29 20 2f 2f 20 3e 20 41 20 6c 69 6e 65 20 73 74 61 NE.test(pattern).//.>.A.line.sta
6c40 72 74 69 6e 67 20 77 69 74 68 20 23 20 73 65 72 76 65 73 20 61 73 20 61 20 63 6f 6d 6d 65 6e 74 rting.with.#.serves.as.a.comment
6c60 2e 0a 20 20 26 26 20 70 61 74 74 65 72 6e 2e 69 6e 64 65 78 4f 66 28 27 23 27 29 20 21 3d 3d 20 ....&&.pattern.indexOf('#').!==.
6c80 30 3b 0a 7d 3b 0a 0a 76 61 72 20 73 70 6c 69 74 50 61 74 74 65 72 6e 20 3d 20 66 75 6e 63 74 69 0;.};..var.splitPattern.=.functi
6ca0 6f 6e 20 73 70 6c 69 74 50 61 74 74 65 72 6e 28 70 61 74 74 65 72 6e 29 20 7b 0a 20 20 72 65 74 on.splitPattern(pattern).{...ret
6cc0 75 72 6e 20 70 61 74 74 65 72 6e 2e 73 70 6c 69 74 28 52 45 47 45 58 5f 53 50 4c 49 54 41 4c 4c urn.pattern.split(REGEX_SPLITALL
6ce0 5f 43 52 4c 46 29 3b 0a 7d 3b 0a 0a 76 61 72 20 49 67 6e 6f 72 65 52 75 6c 65 20 3d 20 66 75 6e _CRLF);.};..var.IgnoreRule.=.fun
6d00 63 74 69 6f 6e 20 49 67 6e 6f 72 65 52 75 6c 65 28 6f 72 69 67 69 6e 2c 20 70 61 74 74 65 72 6e ction.IgnoreRule(origin,.pattern
6d20 2c 20 6e 65 67 61 74 69 76 65 2c 20 72 65 67 65 78 29 20 7b 0a 20 20 5f 63 6c 61 73 73 43 61 6c ,.negative,.regex).{..._classCal
6d40 6c 43 68 65 63 6b 28 74 68 69 73 2c 20 49 67 6e 6f 72 65 52 75 6c 65 29 3b 0a 0a 20 20 74 68 69 lCheck(this,.IgnoreRule);....thi
6d60 73 2e 6f 72 69 67 69 6e 20 3d 20 6f 72 69 67 69 6e 3b 0a 20 20 74 68 69 73 2e 70 61 74 74 65 72 s.origin.=.origin;...this.patter
6d80 6e 20 3d 20 70 61 74 74 65 72 6e 3b 0a 20 20 74 68 69 73 2e 6e 65 67 61 74 69 76 65 20 3d 20 6e n.=.pattern;...this.negative.=.n
6da0 65 67 61 74 69 76 65 3b 0a 20 20 74 68 69 73 2e 72 65 67 65 78 20 3d 20 72 65 67 65 78 3b 0a 7d egative;...this.regex.=.regex;.}
6dc0 3b 0a 0a 76 61 72 20 63 72 65 61 74 65 52 75 6c 65 20 3d 20 66 75 6e 63 74 69 6f 6e 20 63 72 65 ;..var.createRule.=.function.cre
6de0 61 74 65 52 75 6c 65 28 70 61 74 74 65 72 6e 2c 20 69 67 6e 6f 72 65 63 61 73 65 29 20 7b 0a 20 ateRule(pattern,.ignorecase).{..
6e00 20 76 61 72 20 6f 72 69 67 69 6e 20 3d 20 70 61 74 74 65 72 6e 3b 0a 20 20 76 61 72 20 6e 65 67 .var.origin.=.pattern;...var.neg
6e20 61 74 69 76 65 20 3d 20 66 61 6c 73 65 3b 20 2f 2f 20 3e 20 41 6e 20 6f 70 74 69 6f 6e 61 6c 20 ative.=.false;.//.>.An.optional.
6e40 70 72 65 66 69 78 20 22 21 22 20 77 68 69 63 68 20 6e 65 67 61 74 65 73 20 74 68 65 20 70 61 74 prefix."!".which.negates.the.pat
6e60 74 65 72 6e 3b 0a 0a 20 20 69 66 20 28 70 61 74 74 65 72 6e 2e 69 6e 64 65 78 4f 66 28 27 21 27 tern;....if.(pattern.indexOf('!'
6e80 29 20 3d 3d 3d 20 30 29 20 7b 0a 20 20 20 20 6e 65 67 61 74 69 76 65 20 3d 20 74 72 75 65 3b 0a ).===.0).{.....negative.=.true;.
6ea0 20 20 20 20 70 61 74 74 65 72 6e 20 3d 20 70 61 74 74 65 72 6e 2e 73 75 62 73 74 72 28 31 29 3b ....pattern.=.pattern.substr(1);
6ec0 0a 20 20 7d 0a 0a 20 20 70 61 74 74 65 72 6e 20 3d 20 70 61 74 74 65 72 6e 20 2f 2f 20 3e 20 50 ...}....pattern.=.pattern.//.>.P
6ee0 75 74 20 61 20 62 61 63 6b 73 6c 61 73 68 20 28 22 5c 22 29 20 69 6e 20 66 72 6f 6e 74 20 6f 66 ut.a.backslash.("\").in.front.of
6f00 20 74 68 65 20 66 69 72 73 74 20 22 21 22 20 66 6f 72 20 70 61 74 74 65 72 6e 73 20 74 68 61 74 .the.first."!".for.patterns.that
6f20 0a 20 20 2f 2f 20 3e 20 20 20 62 65 67 69 6e 20 77 69 74 68 20 61 20 6c 69 74 65 72 61 6c 20 22 ...//.>...begin.with.a.literal."
6f40 21 22 2c 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c 20 60 22 5c 21 69 6d 70 6f 72 74 61 6e 74 21 2e !",.for.example,.`"\!important!.
6f60 74 78 74 22 60 2e 0a 20 20 2e 72 65 70 6c 61 63 65 28 52 45 47 45 58 5f 52 45 50 4c 41 43 45 5f txt"`.....replace(REGEX_REPLACE_
6f80 4c 45 41 44 49 4e 47 5f 45 58 43 41 50 45 44 5f 45 58 43 4c 41 4d 41 54 49 4f 4e 2c 20 27 21 27 LEADING_EXCAPED_EXCLAMATION,.'!'
6fa0 29 20 2f 2f 20 3e 20 50 75 74 20 61 20 62 61 63 6b 73 6c 61 73 68 20 28 22 5c 22 29 20 69 6e 20 ).//.>.Put.a.backslash.("\").in.
6fc0 66 72 6f 6e 74 20 6f 66 20 74 68 65 20 66 69 72 73 74 20 68 61 73 68 20 66 6f 72 20 70 61 74 74 front.of.the.first.hash.for.patt
6fe0 65 72 6e 73 20 74 68 61 74 0a 20 20 2f 2f 20 3e 20 20 20 62 65 67 69 6e 20 77 69 74 68 20 61 20 erns.that...//.>...begin.with.a.
7000 68 61 73 68 2e 0a 20 20 2e 72 65 70 6c 61 63 65 28 52 45 47 45 58 5f 52 45 50 4c 41 43 45 5f 4c hash.....replace(REGEX_REPLACE_L
7020 45 41 44 49 4e 47 5f 45 58 43 41 50 45 44 5f 48 41 53 48 2c 20 27 23 27 29 3b 0a 20 20 76 61 72 EADING_EXCAPED_HASH,.'#');...var
7040 20 72 65 67 65 78 20 3d 20 6d 61 6b 65 52 65 67 65 78 28 70 61 74 74 65 72 6e 2c 20 6e 65 67 61 .regex.=.makeRegex(pattern,.nega
7060 74 69 76 65 2c 20 69 67 6e 6f 72 65 63 61 73 65 29 3b 0a 20 20 72 65 74 75 72 6e 20 6e 65 77 20 tive,.ignorecase);...return.new.
7080 49 67 6e 6f 72 65 52 75 6c 65 28 6f 72 69 67 69 6e 2c 20 70 61 74 74 65 72 6e 2c 20 6e 65 67 61 IgnoreRule(origin,.pattern,.nega
70a0 74 69 76 65 2c 20 72 65 67 65 78 29 3b 0a 7d 3b 0a 0a 76 61 72 20 74 68 72 6f 77 45 72 72 6f 72 tive,.regex);.};..var.throwError
70c0 20 3d 20 66 75 6e 63 74 69 6f 6e 20 74 68 72 6f 77 45 72 72 6f 72 28 6d 65 73 73 61 67 65 2c 20 .=.function.throwError(message,.
70e0 43 74 6f 72 29 20 7b 0a 20 20 74 68 72 6f 77 20 6e 65 77 20 43 74 6f 72 28 6d 65 73 73 61 67 65 Ctor).{...throw.new.Ctor(message
7100 29 3b 0a 7d 3b 0a 0a 76 61 72 20 63 68 65 63 6b 50 61 74 68 20 3d 20 66 75 6e 63 74 69 6f 6e 20 );.};..var.checkPath.=.function.
7120 63 68 65 63 6b 50 61 74 68 28 70 61 74 68 2c 20 6f 72 69 67 69 6e 61 6c 50 61 74 68 2c 20 64 6f checkPath(path,.originalPath,.do
7140 54 68 72 6f 77 29 20 7b 0a 20 20 69 66 20 28 21 69 73 53 74 72 69 6e 67 28 70 61 74 68 29 29 20 Throw).{...if.(!isString(path)).
7160 7b 0a 20 20 20 20 72 65 74 75 72 6e 20 64 6f 54 68 72 6f 77 28 22 70 61 74 68 20 6d 75 73 74 20 {.....return.doThrow("path.must.
7180 62 65 20 61 20 73 74 72 69 6e 67 2c 20 62 75 74 20 67 6f 74 20 60 22 2e 63 6f 6e 63 61 74 28 6f be.a.string,.but.got.`".concat(o
71a0 72 69 67 69 6e 61 6c 50 61 74 68 2c 20 22 60 22 29 2c 20 54 79 70 65 45 72 72 6f 72 29 3b 0a 20 riginalPath,."`"),.TypeError);..
71c0 20 7d 20 2f 2f 20 57 65 20 64 6f 6e 27 74 20 6b 6e 6f 77 20 69 66 20 77 65 20 73 68 6f 75 6c 64 .}.//.We.don't.know.if.we.should
71e0 20 69 67 6e 6f 72 65 20 45 4d 50 54 59 2c 20 73 6f 20 74 68 72 6f 77 0a 0a 0a 20 20 69 66 20 28 .ignore.EMPTY,.so.throw.....if.(
7200 21 70 61 74 68 29 20 7b 0a 20 20 20 20 72 65 74 75 72 6e 20 64 6f 54 68 72 6f 77 28 22 70 61 74 !path).{.....return.doThrow("pat
7220 68 20 6d 75 73 74 20 6e 6f 74 20 62 65 20 65 6d 70 74 79 22 2c 20 54 79 70 65 45 72 72 6f 72 29 h.must.not.be.empty",.TypeError)
7240 3b 0a 20 20 7d 20 2f 2f 20 43 68 65 63 6b 20 69 66 20 69 74 20 69 73 20 61 20 72 65 6c 61 74 69 ;...}.//.Check.if.it.is.a.relati
7260 76 65 20 70 61 74 68 0a 0a 0a 20 20 69 66 20 28 63 68 65 63 6b 50 61 74 68 2e 69 73 4e 6f 74 52 ve.path.....if.(checkPath.isNotR
7280 65 6c 61 74 69 76 65 28 70 61 74 68 29 29 20 7b 0a 20 20 20 20 76 61 72 20 72 20 3d 20 27 60 70 elative(path)).{.....var.r.=.'`p
72a0 61 74 68 2e 72 65 6c 61 74 69 76 65 28 29 60 64 27 3b 0a 20 20 20 20 72 65 74 75 72 6e 20 64 6f ath.relative()`d';.....return.do
72c0 54 68 72 6f 77 28 22 70 61 74 68 20 73 68 6f 75 6c 64 20 62 65 20 61 20 22 2e 63 6f 6e 63 61 74 Throw("path.should.be.a.".concat
72e0 28 72 2c 20 22 20 73 74 72 69 6e 67 2c 20 62 75 74 20 67 6f 74 20 5c 22 22 29 2e 63 6f 6e 63 61 (r,.".string,.but.got.\"").conca
7300 74 28 6f 72 69 67 69 6e 61 6c 50 61 74 68 2c 20 22 5c 22 22 29 2c 20 52 61 6e 67 65 45 72 72 6f t(originalPath,."\""),.RangeErro
7320 72 29 3b 0a 20 20 7d 0a 0a 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0a 7d 3b 0a 0a 76 61 72 20 r);...}....return.true;.};..var.
7340 69 73 4e 6f 74 52 65 6c 61 74 69 76 65 20 3d 20 66 75 6e 63 74 69 6f 6e 20 69 73 4e 6f 74 52 65 isNotRelative.=.function.isNotRe
7360 6c 61 74 69 76 65 28 70 61 74 68 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 52 45 47 45 58 5f 54 45 lative(path).{...return.REGEX_TE
7380 53 54 5f 49 4e 56 41 4c 49 44 5f 50 41 54 48 2e 74 65 73 74 28 70 61 74 68 29 3b 0a 7d 3b 0a 0a ST_INVALID_PATH.test(path);.};..
73a0 63 68 65 63 6b 50 61 74 68 2e 69 73 4e 6f 74 52 65 6c 61 74 69 76 65 20 3d 20 69 73 4e 6f 74 52 checkPath.isNotRelative.=.isNotR
73c0 65 6c 61 74 69 76 65 3b 0a 0a 63 68 65 63 6b 50 61 74 68 2e 63 6f 6e 76 65 72 74 20 3d 20 66 75 elative;..checkPath.convert.=.fu
73e0 6e 63 74 69 6f 6e 20 28 70 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 70 3b 0a 7d 3b 0a 0a 76 61 72 nction.(p).{...return.p;.};..var
7400 20 49 67 6e 6f 72 65 20 3d 20 2f 2a 23 5f 5f 50 55 52 45 5f 5f 2a 2f 66 75 6e 63 74 69 6f 6e 20 .Ignore.=./*#__PURE__*/function.
7420 28 29 20 7b 0a 20 20 66 75 6e 63 74 69 6f 6e 20 49 67 6e 6f 72 65 28 29 20 7b 0a 20 20 20 20 76 ().{...function.Ignore().{.....v
7440 61 72 20 5f 72 65 66 20 3d 20 61 72 67 75 6d 65 6e 74 73 2e 6c 65 6e 67 74 68 20 3e 20 30 20 26 ar._ref.=.arguments.length.>.0.&
7460 26 20 61 72 67 75 6d 65 6e 74 73 5b 30 5d 20 21 3d 3d 20 75 6e 64 65 66 69 6e 65 64 20 3f 20 61 &.arguments[0].!==.undefined.?.a
7480 72 67 75 6d 65 6e 74 73 5b 30 5d 20 3a 20 7b 7d 2c 0a 20 20 20 20 20 20 20 20 5f 72 65 66 24 69 rguments[0].:.{},........._ref$i
74a0 67 6e 6f 72 65 63 61 73 65 20 3d 20 5f 72 65 66 2e 69 67 6e 6f 72 65 63 61 73 65 2c 0a 20 20 20 gnorecase.=._ref.ignorecase,....
74c0 20 20 20 20 20 69 67 6e 6f 72 65 63 61 73 65 20 3d 20 5f 72 65 66 24 69 67 6e 6f 72 65 63 61 73 .....ignorecase.=._ref$ignorecas
74e0 65 20 3d 3d 3d 20 76 6f 69 64 20 30 20 3f 20 74 72 75 65 20 3a 20 5f 72 65 66 24 69 67 6e 6f 72 e.===.void.0.?.true.:._ref$ignor
7500 65 63 61 73 65 3b 0a 0a 20 20 20 20 5f 63 6c 61 73 73 43 61 6c 6c 43 68 65 63 6b 28 74 68 69 73 ecase;......_classCallCheck(this
7520 2c 20 49 67 6e 6f 72 65 29 3b 0a 0a 20 20 20 20 74 68 69 73 2e 5f 72 75 6c 65 73 20 3d 20 5b 5d ,.Ignore);......this._rules.=.[]
7540 3b 0a 20 20 20 20 74 68 69 73 2e 5f 69 67 6e 6f 72 65 63 61 73 65 20 3d 20 69 67 6e 6f 72 65 63 ;.....this._ignorecase.=.ignorec
7560 61 73 65 3b 0a 20 20 20 20 64 65 66 69 6e 65 28 74 68 69 73 2c 20 4b 45 59 5f 49 47 4e 4f 52 45 ase;.....define(this,.KEY_IGNORE
7580 2c 20 74 72 75 65 29 3b 0a 0a 20 20 20 20 74 68 69 73 2e 5f 69 6e 69 74 43 61 63 68 65 28 29 3b ,.true);......this._initCache();
75a0 0a 20 20 7d 0a 0a 20 20 5f 63 72 65 61 74 65 43 6c 61 73 73 28 49 67 6e 6f 72 65 2c 20 5b 7b 0a ...}...._createClass(Ignore,.[{.
75c0 20 20 20 20 6b 65 79 3a 20 22 5f 69 6e 69 74 43 61 63 68 65 22 2c 0a 20 20 20 20 76 61 6c 75 65 ....key:."_initCache",.....value
75e0 3a 20 66 75 6e 63 74 69 6f 6e 20 5f 69 6e 69 74 43 61 63 68 65 28 29 20 7b 0a 20 20 20 20 20 20 :.function._initCache().{.......
7600 74 68 69 73 2e 5f 69 67 6e 6f 72 65 43 61 63 68 65 20 3d 20 4f 62 6a 65 63 74 2e 63 72 65 61 74 this._ignoreCache.=.Object.creat
7620 65 28 6e 75 6c 6c 29 3b 0a 20 20 20 20 20 20 74 68 69 73 2e 5f 74 65 73 74 43 61 63 68 65 20 3d e(null);.......this._testCache.=
7640 20 4f 62 6a 65 63 74 2e 63 72 65 61 74 65 28 6e 75 6c 6c 29 3b 0a 20 20 20 20 7d 0a 20 20 7d 2c .Object.create(null);.....}...},
7660 20 7b 0a 20 20 20 20 6b 65 79 3a 20 22 5f 61 64 64 50 61 74 74 65 72 6e 22 2c 0a 20 20 20 20 76 .{.....key:."_addPattern",.....v
7680 61 6c 75 65 3a 20 66 75 6e 63 74 69 6f 6e 20 5f 61 64 64 50 61 74 74 65 72 6e 28 70 61 74 74 65 alue:.function._addPattern(patte
76a0 72 6e 29 20 7b 0a 20 20 20 20 20 20 2f 2f 20 23 33 32 0a 20 20 20 20 20 20 69 66 20 28 70 61 74 rn).{.......//.#32.......if.(pat
76c0 74 65 72 6e 20 26 26 20 70 61 74 74 65 72 6e 5b 4b 45 59 5f 49 47 4e 4f 52 45 5d 29 20 7b 0a 20 tern.&&.pattern[KEY_IGNORE]).{..
76e0 20 20 20 20 20 20 20 74 68 69 73 2e 5f 72 75 6c 65 73 20 3d 20 74 68 69 73 2e 5f 72 75 6c 65 73 .......this._rules.=.this._rules
7700 2e 63 6f 6e 63 61 74 28 70 61 74 74 65 72 6e 2e 5f 72 75 6c 65 73 29 3b 0a 20 20 20 20 20 20 20 .concat(pattern._rules);........
7720 20 74 68 69 73 2e 5f 61 64 64 65 64 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 72 65 74 .this._added.=.true;.........ret
7740 75 72 6e 3b 0a 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 69 66 20 28 63 68 65 63 6b 50 61 74 urn;.......}........if.(checkPat
7760 74 65 72 6e 28 70 61 74 74 65 72 6e 29 29 20 7b 0a 20 20 20 20 20 20 20 20 76 61 72 20 72 75 6c tern(pattern)).{.........var.rul
7780 65 20 3d 20 63 72 65 61 74 65 52 75 6c 65 28 70 61 74 74 65 72 6e 2c 20 74 68 69 73 2e 5f 69 67 e.=.createRule(pattern,.this._ig
77a0 6e 6f 72 65 63 61 73 65 29 3b 0a 20 20 20 20 20 20 20 20 74 68 69 73 2e 5f 61 64 64 65 64 20 3d norecase);.........this._added.=
77c0 20 74 72 75 65 3b 0a 0a 20 20 20 20 20 20 20 20 74 68 69 73 2e 5f 72 75 6c 65 73 2e 70 75 73 68 .true;..........this._rules.push
77e0 28 72 75 6c 65 29 3b 0a 20 20 20 20 20 20 7d 0a 20 20 20 20 7d 20 2f 2f 20 40 70 61 72 61 6d 20 (rule);.......}.....}.//.@param.
7800 7b 41 72 72 61 79 3c 73 74 72 69 6e 67 3e 20 7c 20 73 74 72 69 6e 67 20 7c 20 49 67 6e 6f 72 65 {Array<string>.|.string.|.Ignore
7820 7d 20 70 61 74 74 65 72 6e 0a 0a 20 20 7d 2c 20 7b 0a 20 20 20 20 6b 65 79 3a 20 22 61 64 64 22 }.pattern....},.{.....key:."add"
7840 2c 0a 20 20 20 20 76 61 6c 75 65 3a 20 66 75 6e 63 74 69 6f 6e 20 61 64 64 28 70 61 74 74 65 72 ,.....value:.function.add(patter
7860 6e 29 20 7b 0a 20 20 20 20 20 20 74 68 69 73 2e 5f 61 64 64 65 64 20 3d 20 66 61 6c 73 65 3b 0a n).{.......this._added.=.false;.
7880 20 20 20 20 20 20 6d 61 6b 65 41 72 72 61 79 28 69 73 53 74 72 69 6e 67 28 70 61 74 74 65 72 6e ......makeArray(isString(pattern
78a0 29 20 3f 20 73 70 6c 69 74 50 61 74 74 65 72 6e 28 70 61 74 74 65 72 6e 29 20 3a 20 70 61 74 74 ).?.splitPattern(pattern).:.patt
78c0 65 72 6e 29 2e 66 6f 72 45 61 63 68 28 74 68 69 73 2e 5f 61 64 64 50 61 74 74 65 72 6e 2c 20 74 ern).forEach(this._addPattern,.t
78e0 68 69 73 29 3b 20 2f 2f 20 53 6f 6d 65 20 72 75 6c 65 73 20 68 61 76 65 20 6a 75 73 74 20 61 64 his);.//.Some.rules.have.just.ad
7900 64 65 64 20 74 6f 20 74 68 65 20 69 67 6e 6f 72 65 2c 0a 20 20 20 20 20 20 2f 2f 20 6d 61 6b 69 ded.to.the.ignore,.......//.maki
7920 6e 67 20 74 68 65 20 62 65 68 61 76 69 6f 72 20 63 68 61 6e 67 65 64 2e 0a 0a 20 20 20 20 20 20 ng.the.behavior.changed.........
7940 69 66 20 28 74 68 69 73 2e 5f 61 64 64 65 64 29 20 7b 0a 20 20 20 20 20 20 20 20 74 68 69 73 2e if.(this._added).{.........this.
7960 5f 69 6e 69 74 43 61 63 68 65 28 29 3b 0a 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 72 65 74 _initCache();.......}........ret
7980 75 72 6e 20 74 68 69 73 3b 0a 20 20 20 20 7d 20 2f 2f 20 6c 65 67 61 63 79 0a 0a 20 20 7d 2c 20 urn.this;.....}.//.legacy....},.
79a0 7b 0a 20 20 20 20 6b 65 79 3a 20 22 61 64 64 50 61 74 74 65 72 6e 22 2c 0a 20 20 20 20 76 61 6c {.....key:."addPattern",.....val
79c0 75 65 3a 20 66 75 6e 63 74 69 6f 6e 20 61 64 64 50 61 74 74 65 72 6e 28 70 61 74 74 65 72 6e 29 ue:.function.addPattern(pattern)
79e0 20 7b 0a 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 68 69 73 2e 61 64 64 28 70 61 74 74 65 72 6e .{.......return.this.add(pattern
7a00 29 3b 0a 20 20 20 20 7d 20 2f 2f 20 20 20 20 20 20 20 20 20 20 7c 20 20 20 20 20 20 20 20 20 20 );.....}.//..........|..........
7a20 20 69 67 6e 6f 72 65 64 20 3a 20 75 6e 69 67 6e 6f 72 65 64 0a 20 20 20 20 2f 2f 20 6e 65 67 61 .ignored.:.unignored.....//.nega
7a40 74 69 76 65 20 7c 20 20 20 30 3a 30 20 20 20 7c 20 20 20 30 3a 31 20 20 20 7c 20 20 20 31 3a 30 tive.|...0:0...|...0:1...|...1:0
7a60 20 20 20 7c 20 20 20 31 3a 31 0a 20 20 20 20 2f 2f 20 2d 2d 2d 2d 2d 2d 2d 2d 20 7c 20 2d 2d 2d ...|...1:1.....//.--------.|.---
7a80 2d 2d 2d 2d 20 7c 20 2d 2d 2d 2d 2d 2d 2d 20 7c 20 2d 2d 2d 2d 2d 2d 2d 20 7c 20 2d 2d 2d 2d 2d ----.|.-------.|.-------.|.-----
7aa0 2d 2d 2d 0a 20 20 20 20 2f 2f 20 20 20 20 20 30 20 20 20 20 7c 20 20 54 45 53 54 20 20 20 7c 20 ---.....//.....0....|..TEST...|.
7ac0 20 54 45 53 54 20 20 20 7c 20 20 53 4b 49 50 20 20 20 7c 20 20 20 20 58 0a 20 20 20 20 2f 2f 20 .TEST...|..SKIP...|....X.....//.
7ae0 20 20 20 20 31 20 20 20 20 7c 20 20 54 45 53 54 49 46 20 7c 20 20 53 4b 49 50 20 20 20 7c 20 20 ....1....|..TESTIF.|..SKIP...|..
7b00 54 45 53 54 20 20 20 7c 20 20 20 20 58 0a 20 20 20 20 2f 2f 20 2d 20 53 4b 49 50 3a 20 61 6c 77 TEST...|....X.....//.-.SKIP:.alw
7b20 61 79 73 20 73 6b 69 70 0a 20 20 20 20 2f 2f 20 2d 20 54 45 53 54 3a 20 61 6c 77 61 79 73 20 74 ays.skip.....//.-.TEST:.always.t
7b40 65 73 74 0a 20 20 20 20 2f 2f 20 2d 20 54 45 53 54 49 46 3a 20 6f 6e 6c 79 20 74 65 73 74 20 69 est.....//.-.TESTIF:.only.test.i
7b60 66 20 63 68 65 63 6b 55 6e 69 67 6e 6f 72 65 64 0a 20 20 20 20 2f 2f 20 2d 20 58 3a 20 74 68 61 f.checkUnignored.....//.-.X:.tha
7b80 74 20 6e 65 76 65 72 20 68 61 70 70 65 6e 0a 20 20 20 20 2f 2f 20 40 70 61 72 61 6d 20 7b 62 6f t.never.happen.....//.@param.{bo
7ba0 6f 6c 65 61 6e 7d 20 77 68 65 74 68 65 72 20 73 68 6f 75 6c 64 20 63 68 65 63 6b 20 69 66 20 74 olean}.whether.should.check.if.t
7bc0 68 65 20 70 61 74 68 20 69 73 20 75 6e 69 67 6e 6f 72 65 64 2c 0a 20 20 20 20 2f 2f 20 20 20 73 he.path.is.unignored,.....//...s
7be0 65 74 74 69 6e 67 20 60 63 68 65 63 6b 55 6e 69 67 6e 6f 72 65 64 60 20 74 6f 20 60 66 61 6c 73 etting.`checkUnignored`.to.`fals
7c00 65 60 20 63 6f 75 6c 64 20 72 65 64 75 63 65 20 61 64 64 69 74 69 6f 6e 61 6c 0a 20 20 20 20 2f e`.could.reduce.additional...../
7c20 2f 20 20 20 70 61 74 68 20 6d 61 74 63 68 69 6e 67 2e 0a 20 20 20 20 2f 2f 20 40 72 65 74 75 72 /...path.matching......//.@retur
7c40 6e 73 20 7b 54 65 73 74 52 65 73 75 6c 74 7d 20 74 72 75 65 20 69 66 20 61 20 66 69 6c 65 20 69 ns.{TestResult}.true.if.a.file.i
7c60 73 20 69 67 6e 6f 72 65 64 0a 0a 20 20 7d 2c 20 7b 0a 20 20 20 20 6b 65 79 3a 20 22 5f 74 65 73 s.ignored....},.{.....key:."_tes
7c80 74 4f 6e 65 22 2c 0a 20 20 20 20 76 61 6c 75 65 3a 20 66 75 6e 63 74 69 6f 6e 20 5f 74 65 73 74 tOne",.....value:.function._test
7ca0 4f 6e 65 28 70 61 74 68 2c 20 63 68 65 63 6b 55 6e 69 67 6e 6f 72 65 64 29 20 7b 0a 20 20 20 20 One(path,.checkUnignored).{.....
7cc0 20 20 76 61 72 20 69 67 6e 6f 72 65 64 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 76 61 72 ..var.ignored.=.false;.......var
7ce0 20 75 6e 69 67 6e 6f 72 65 64 20 3d 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 20 20 74 68 69 73 2e .unignored.=.false;........this.
7d00 5f 72 75 6c 65 73 2e 66 6f 72 45 61 63 68 28 66 75 6e 63 74 69 6f 6e 20 28 72 75 6c 65 29 20 7b _rules.forEach(function.(rule).{
7d20 0a 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 67 61 74 69 76 65 20 3d 20 72 75 6c 65 2e 6e 65 67 .........var.negative.=.rule.neg
7d40 61 74 69 76 65 3b 0a 0a 20 20 20 20 20 20 20 20 69 66 20 28 75 6e 69 67 6e 6f 72 65 64 20 3d 3d ative;..........if.(unignored.==
7d60 3d 20 6e 65 67 61 74 69 76 65 20 26 26 20 69 67 6e 6f 72 65 64 20 21 3d 3d 20 75 6e 69 67 6e 6f =.negative.&&.ignored.!==.unigno
7d80 72 65 64 20 7c 7c 20 6e 65 67 61 74 69 76 65 20 26 26 20 21 69 67 6e 6f 72 65 64 20 26 26 20 21 red.||.negative.&&.!ignored.&&.!
7da0 75 6e 69 67 6e 6f 72 65 64 20 26 26 20 21 63 68 65 63 6b 55 6e 69 67 6e 6f 72 65 64 29 20 7b 0a unignored.&&.!checkUnignored).{.
7dc0 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 ..........return;.........}.....
7de0 20 20 20 20 20 76 61 72 20 6d 61 74 63 68 65 64 20 3d 20 72 75 6c 65 2e 72 65 67 65 78 2e 74 65 .....var.matched.=.rule.regex.te
7e00 73 74 28 70 61 74 68 29 3b 0a 0a 20 20 20 20 20 20 20 20 69 66 20 28 6d 61 74 63 68 65 64 29 20 st(path);..........if.(matched).
7e20 7b 0a 20 20 20 20 20 20 20 20 20 20 69 67 6e 6f 72 65 64 20 3d 20 21 6e 65 67 61 74 69 76 65 3b {...........ignored.=.!negative;
7e40 0a 20 20 20 20 20 20 20 20 20 20 75 6e 69 67 6e 6f 72 65 64 20 3d 20 6e 65 67 61 74 69 76 65 3b ...........unignored.=.negative;
7e60 0a 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 7d 29 3b 0a 0a 20 20 20 20 20 20 72 65 74 75 .........}.......});........retu
7e80 72 6e 20 7b 0a 20 20 20 20 20 20 20 20 69 67 6e 6f 72 65 64 3a 20 69 67 6e 6f 72 65 64 2c 0a 20 rn.{.........ignored:.ignored,..
7ea0 20 20 20 20 20 20 20 75 6e 69 67 6e 6f 72 65 64 3a 20 75 6e 69 67 6e 6f 72 65 64 0a 20 20 20 20 .......unignored:.unignored.....
7ec0 20 20 7d 3b 0a 20 20 20 20 7d 20 2f 2f 20 40 72 65 74 75 72 6e 73 20 7b 54 65 73 74 52 65 73 75 ..};.....}.//.@returns.{TestResu
7ee0 6c 74 7d 0a 0a 20 20 7d 2c 20 7b 0a 20 20 20 20 6b 65 79 3a 20 22 5f 74 65 73 74 22 2c 0a 20 20 lt}....},.{.....key:."_test",...
7f00 20 20 76 61 6c 75 65 3a 20 66 75 6e 63 74 69 6f 6e 20 5f 74 65 73 74 28 6f 72 69 67 69 6e 61 6c ..value:.function._test(original
7f20 50 61 74 68 2c 20 63 61 63 68 65 2c 20 63 68 65 63 6b 55 6e 69 67 6e 6f 72 65 64 2c 20 73 6c 69 Path,.cache,.checkUnignored,.sli
7f40 63 65 73 29 20 7b 0a 20 20 20 20 20 20 76 61 72 20 70 61 74 68 20 3d 20 6f 72 69 67 69 6e 61 6c ces).{.......var.path.=.original
7f60 50 61 74 68 20 2f 2f 20 53 75 70 70 6f 72 74 73 20 6e 75 6c 6c 61 62 6c 65 20 70 61 74 68 0a 20 Path.//.Supports.nullable.path..
7f80 20 20 20 20 20 26 26 20 63 68 65 63 6b 50 61 74 68 2e 63 6f 6e 76 65 72 74 28 6f 72 69 67 69 6e .....&&.checkPath.convert(origin
7fa0 61 6c 50 61 74 68 29 3b 0a 20 20 20 20 20 20 63 68 65 63 6b 50 61 74 68 28 70 61 74 68 2c 20 6f alPath);.......checkPath(path,.o
7fc0 72 69 67 69 6e 61 6c 50 61 74 68 2c 20 74 68 72 6f 77 45 72 72 6f 72 29 3b 0a 20 20 20 20 20 20 riginalPath,.throwError);.......
7fe0 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 74 28 70 61 74 68 2c 20 63 61 63 68 65 2c 20 63 68 65 63 return.this._t(path,.cache,.chec
8000 6b 55 6e 69 67 6e 6f 72 65 64 2c 20 73 6c 69 63 65 73 29 3b 0a 20 20 20 20 7d 0a 20 20 7d 2c 20 kUnignored,.slices);.....}...},.
8020 7b 0a 20 20 20 20 6b 65 79 3a 20 22 5f 74 22 2c 0a 20 20 20 20 76 61 6c 75 65 3a 20 66 75 6e 63 {.....key:."_t",.....value:.func
8040 74 69 6f 6e 20 5f 74 28 70 61 74 68 2c 20 63 61 63 68 65 2c 20 63 68 65 63 6b 55 6e 69 67 6e 6f tion._t(path,.cache,.checkUnigno
8060 72 65 64 2c 20 73 6c 69 63 65 73 29 20 7b 0a 20 20 20 20 20 20 69 66 20 28 70 61 74 68 20 69 6e red,.slices).{.......if.(path.in
8080 20 63 61 63 68 65 29 20 7b 0a 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 63 61 63 68 65 5b 70 .cache).{.........return.cache[p
80a0 61 74 68 5d 3b 0a 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 69 66 20 28 21 73 6c 69 63 65 73 ath];.......}........if.(!slices
80c0 29 20 7b 0a 20 20 20 20 20 20 20 20 2f 2f 20 70 61 74 68 2f 74 6f 2f 61 2e 6a 73 0a 20 20 20 20 ).{.........//.path/to/a.js.....
80e0 20 20 20 20 2f 2f 20 5b 27 70 61 74 68 27 2c 20 27 74 6f 27 2c 20 27 61 2e 6a 73 27 5d 0a 20 20 ....//.['path',.'to',.'a.js']...
8100 20 20 20 20 20 20 73 6c 69 63 65 73 20 3d 20 70 61 74 68 2e 73 70 6c 69 74 28 53 4c 41 53 48 29 ......slices.=.path.split(SLASH)
8120 3b 0a 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 73 6c 69 63 65 73 2e 70 6f 70 28 29 3b 20 2f ;.......}........slices.pop();./
8140 2f 20 49 66 20 74 68 65 20 70 61 74 68 20 68 61 73 20 6e 6f 20 70 61 72 65 6e 74 20 64 69 72 65 /.If.the.path.has.no.parent.dire
8160 63 74 6f 72 79 2c 20 6a 75 73 74 20 74 65 73 74 20 69 74 0a 0a 20 20 20 20 20 20 69 66 20 28 21 ctory,.just.test.it........if.(!
8180 73 6c 69 63 65 73 2e 6c 65 6e 67 74 68 29 20 7b 0a 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 slices.length).{.........return.
81a0 63 61 63 68 65 5b 70 61 74 68 5d 20 3d 20 74 68 69 73 2e 5f 74 65 73 74 4f 6e 65 28 70 61 74 68 cache[path].=.this._testOne(path
81c0 2c 20 63 68 65 63 6b 55 6e 69 67 6e 6f 72 65 64 29 3b 0a 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 ,.checkUnignored);.......}......
81e0 20 20 76 61 72 20 70 61 72 65 6e 74 20 3d 20 74 68 69 73 2e 5f 74 28 73 6c 69 63 65 73 2e 6a 6f ..var.parent.=.this._t(slices.jo
8200 69 6e 28 53 4c 41 53 48 29 20 2b 20 53 4c 41 53 48 2c 20 63 61 63 68 65 2c 20 63 68 65 63 6b 55 in(SLASH).+.SLASH,.cache,.checkU
8220 6e 69 67 6e 6f 72 65 64 2c 20 73 6c 69 63 65 73 29 3b 20 2f 2f 20 49 66 20 74 68 65 20 70 61 74 nignored,.slices);.//.If.the.pat
8240 68 20 63 6f 6e 74 61 69 6e 73 20 61 20 70 61 72 65 6e 74 20 64 69 72 65 63 74 6f 72 79 2c 20 63 h.contains.a.parent.directory,.c
8260 68 65 63 6b 20 74 68 65 20 70 61 72 65 6e 74 20 66 69 72 73 74 0a 0a 0a 20 20 20 20 20 20 72 65 heck.the.parent.first.........re
8280 74 75 72 6e 20 63 61 63 68 65 5b 70 61 74 68 5d 20 3d 20 70 61 72 65 6e 74 2e 69 67 6e 6f 72 65 turn.cache[path].=.parent.ignore
82a0 64 20 2f 2f 20 3e 20 49 74 20 69 73 20 6e 6f 74 20 70 6f 73 73 69 62 6c 65 20 74 6f 20 72 65 2d d.//.>.It.is.not.possible.to.re-
82c0 69 6e 63 6c 75 64 65 20 61 20 66 69 6c 65 20 69 66 20 61 20 70 61 72 65 6e 74 20 64 69 72 65 63 include.a.file.if.a.parent.direc
82e0 74 6f 72 79 20 6f 66 0a 20 20 20 20 20 20 2f 2f 20 3e 20 20 20 74 68 61 74 20 66 69 6c 65 20 69 tory.of.......//.>...that.file.i
8300 73 20 65 78 63 6c 75 64 65 64 2e 0a 20 20 20 20 20 20 3f 20 70 61 72 65 6e 74 20 3a 20 74 68 69 s.excluded........?.parent.:.thi
8320 73 2e 5f 74 65 73 74 4f 6e 65 28 70 61 74 68 2c 20 63 68 65 63 6b 55 6e 69 67 6e 6f 72 65 64 29 s._testOne(path,.checkUnignored)
8340 3b 0a 20 20 20 20 7d 0a 20 20 7d 2c 20 7b 0a 20 20 20 20 6b 65 79 3a 20 22 69 67 6e 6f 72 65 73 ;.....}...},.{.....key:."ignores
8360 22 2c 0a 20 20 20 20 76 61 6c 75 65 3a 20 66 75 6e 63 74 69 6f 6e 20 69 67 6e 6f 72 65 73 28 70 ",.....value:.function.ignores(p
8380 61 74 68 29 20 7b 0a 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 74 65 73 74 28 70 ath).{.......return.this._test(p
83a0 61 74 68 2c 20 74 68 69 73 2e 5f 69 67 6e 6f 72 65 43 61 63 68 65 2c 20 66 61 6c 73 65 29 2e 69 ath,.this._ignoreCache,.false).i
83c0 67 6e 6f 72 65 64 3b 0a 20 20 20 20 7d 0a 20 20 7d 2c 20 7b 0a 20 20 20 20 6b 65 79 3a 20 22 63 gnored;.....}...},.{.....key:."c
83e0 72 65 61 74 65 46 69 6c 74 65 72 22 2c 0a 20 20 20 20 76 61 6c 75 65 3a 20 66 75 6e 63 74 69 6f reateFilter",.....value:.functio
8400 6e 20 63 72 65 61 74 65 46 69 6c 74 65 72 28 29 20 7b 0a 20 20 20 20 20 20 76 61 72 20 5f 74 68 n.createFilter().{.......var._th
8420 69 73 20 3d 20 74 68 69 73 3b 0a 0a 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f is.=.this;........return.functio
8440 6e 20 28 70 61 74 68 29 20 7b 0a 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 21 5f 74 68 69 73 n.(path).{.........return.!_this
8460 2e 69 67 6e 6f 72 65 73 28 70 61 74 68 29 3b 0a 20 20 20 20 20 20 7d 3b 0a 20 20 20 20 7d 0a 20 .ignores(path);.......};.....}..
8480 20 7d 2c 20 7b 0a 20 20 20 20 6b 65 79 3a 20 22 66 69 6c 74 65 72 22 2c 0a 20 20 20 20 76 61 6c .},.{.....key:."filter",.....val
84a0 75 65 3a 20 66 75 6e 63 74 69 6f 6e 20 66 69 6c 74 65 72 28 70 61 74 68 73 29 20 7b 0a 20 20 20 ue:.function.filter(paths).{....
84c0 20 20 20 72 65 74 75 72 6e 20 6d 61 6b 65 41 72 72 61 79 28 70 61 74 68 73 29 2e 66 69 6c 74 65 ...return.makeArray(paths).filte
84e0 72 28 74 68 69 73 2e 63 72 65 61 74 65 46 69 6c 74 65 72 28 29 29 3b 0a 20 20 20 20 7d 20 2f 2f r(this.createFilter());.....}.//
8500 20 40 72 65 74 75 72 6e 73 20 7b 54 65 73 74 52 65 73 75 6c 74 7d 0a 0a 20 20 7d 2c 20 7b 0a 20 .@returns.{TestResult}....},.{..
8520 20 20 20 6b 65 79 3a 20 22 74 65 73 74 22 2c 0a 20 20 20 20 76 61 6c 75 65 3a 20 66 75 6e 63 74 ...key:."test",.....value:.funct
8540 69 6f 6e 20 74 65 73 74 28 70 61 74 68 29 20 7b 0a 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 68 ion.test(path).{.......return.th
8560 69 73 2e 5f 74 65 73 74 28 70 61 74 68 2c 20 74 68 69 73 2e 5f 74 65 73 74 43 61 63 68 65 2c 20 is._test(path,.this._testCache,.
8580 74 72 75 65 29 3b 0a 20 20 20 20 7d 0a 20 20 7d 5d 29 3b 0a 0a 20 20 72 65 74 75 72 6e 20 49 67 true);.....}...}]);....return.Ig
85a0 6e 6f 72 65 3b 0a 7d 28 29 3b 0a 0a 76 61 72 20 66 61 63 74 6f 72 79 20 3d 20 66 75 6e 63 74 69 nore;.}();..var.factory.=.functi
85c0 6f 6e 20 66 61 63 74 6f 72 79 28 6f 70 74 69 6f 6e 73 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 6e on.factory(options).{...return.n
85e0 65 77 20 49 67 6e 6f 72 65 28 6f 70 74 69 6f 6e 73 29 3b 0a 7d 3b 0a 0a 76 61 72 20 72 65 74 75 ew.Ignore(options);.};..var.retu
8600 72 6e 46 61 6c 73 65 20 3d 20 66 75 6e 63 74 69 6f 6e 20 72 65 74 75 72 6e 46 61 6c 73 65 28 29 rnFalse.=.function.returnFalse()
8620 20 7b 0a 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a 7d 3b 0a 0a 76 61 72 20 69 73 50 61 74 .{...return.false;.};..var.isPat
8640 68 56 61 6c 69 64 20 3d 20 66 75 6e 63 74 69 6f 6e 20 69 73 50 61 74 68 56 61 6c 69 64 28 70 61 hValid.=.function.isPathValid(pa
8660 74 68 29 20 7b 0a 20 20 72 65 74 75 72 6e 20 63 68 65 63 6b 50 61 74 68 28 70 61 74 68 20 26 26 th).{...return.checkPath(path.&&
8680 20 63 68 65 63 6b 50 61 74 68 2e 63 6f 6e 76 65 72 74 28 70 61 74 68 29 2c 20 70 61 74 68 2c 20 .checkPath.convert(path),.path,.
86a0 72 65 74 75 72 6e 46 61 6c 73 65 29 3b 0a 7d 3b 0a 0a 66 61 63 74 6f 72 79 2e 69 73 50 61 74 68 returnFalse);.};..factory.isPath
86c0 56 61 6c 69 64 20 3d 20 69 73 50 61 74 68 56 61 6c 69 64 3b 20 2f 2f 20 46 69 78 65 73 20 74 79 Valid.=.isPathValid;.//.Fixes.ty
86e0 70 65 73 63 72 69 70 74 0a 0a 66 61 63 74 6f 72 79 5b 22 64 65 66 61 75 6c 74 22 5d 20 3d 20 66 pescript..factory["default"].=.f
8700 61 63 74 6f 72 79 3b 0a 6d 6f 64 75 6c 65 2e 65 78 70 6f 72 74 73 20 3d 20 66 61 63 74 6f 72 79 actory;.module.exports.=.factory
8720 3b 20 2f 2f 20 57 69 6e 64 6f 77 73 0a 2f 2f 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ;.//.Windows.//.----------------
8740 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d --------------------------------
8760 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 2f 2a 20 69 73 74 61 6e 62 75 6c 20 69 67 6e 6f --------------../*.istanbul.igno
8780 72 65 20 69 66 20 20 2a 2f 0a 0a 69 66 20 28 20 2f 2f 20 44 65 74 65 63 74 20 60 70 72 6f 63 65 re.if..*/..if.(.//.Detect.`proce
87a0 73 73 60 20 73 6f 20 74 68 61 74 20 69 74 20 63 61 6e 20 72 75 6e 20 69 6e 20 62 72 6f 77 73 65 ss`.so.that.it.can.run.in.browse
87c0 72 73 2e 0a 74 79 70 65 6f 66 20 70 72 6f 63 65 73 73 20 21 3d 3d 20 27 75 6e 64 65 66 69 6e 65 rs..typeof.process.!==.'undefine
87e0 64 27 20 26 26 20 28 70 72 6f 63 65 73 73 2e 65 6e 76 20 26 26 20 70 72 6f 63 65 73 73 2e 65 6e d'.&&.(process.env.&&.process.en
8800 76 2e 49 47 4e 4f 52 45 5f 54 45 53 54 5f 57 49 4e 33 32 20 7c 7c 20 70 72 6f 63 65 73 73 2e 70 v.IGNORE_TEST_WIN32.||.process.p
8820 6c 61 74 66 6f 72 6d 20 3d 3d 3d 20 27 77 69 6e 33 32 27 29 29 20 7b 0a 20 20 2f 2a 20 65 73 6c latform.===.'win32')).{.../*.esl
8840 69 6e 74 20 6e 6f 2d 63 6f 6e 74 72 6f 6c 2d 72 65 67 65 78 3a 20 22 6f 66 66 22 20 2a 2f 0a 20 int.no-control-regex:."off".*/..
8860 20 76 61 72 20 6d 61 6b 65 50 6f 73 69 78 20 3d 20 66 75 6e 63 74 69 6f 6e 20 6d 61 6b 65 50 6f .var.makePosix.=.function.makePo
8880 73 69 78 28 73 74 72 29 20 7b 0a 20 20 20 20 72 65 74 75 72 6e 20 2f 5e 5c 5c 5c 5c 5c 3f 5c 5c six(str).{.....return./^\\\\\?\\
88a0 2f 2e 74 65 73 74 28 73 74 72 29 20 7c 7c 20 2f 5b 5c 30 2d 5c 78 31 46 22 3c 3e 5c 7c 5d 2b 2f /.test(str).||./[\0-\x1F"<>\|]+/
88c0 2e 74 65 73 74 28 73 74 72 29 20 3f 20 73 74 72 20 3a 20 73 74 72 2e 72 65 70 6c 61 63 65 28 2f .test(str).?.str.:.str.replace(/
88e0 5c 5c 2f 67 2c 20 27 2f 27 29 3b 0a 20 20 7d 3b 0a 0a 20 20 63 68 65 63 6b 50 61 74 68 2e 63 6f \\/g,.'/');...};....checkPath.co
8900 6e 76 65 72 74 20 3d 20 6d 61 6b 65 50 6f 73 69 78 3b 20 2f 2f 20 27 43 3a 5c 5c 66 6f 6f 27 20 nvert.=.makePosix;.//.'C:\\foo'.
8920 20 20 20 20 3c 2d 20 27 43 3a 5c 5c 66 6f 6f 27 20 68 61 73 20 62 65 65 6e 20 63 6f 6e 76 65 72 ....<-.'C:\\foo'.has.been.conver
8940 74 65 64 20 74 6f 20 27 43 3a 2f 27 0a 20 20 2f 2f 20 27 64 3a 5c 5c 66 6f 6f 27 0a 0a 20 20 76 ted.to.'C:/'...//.'d:\\foo'....v
8960 61 72 20 52 45 47 49 58 5f 49 53 5f 57 49 4e 44 4f 57 53 5f 50 41 54 48 5f 41 42 53 4f 4c 55 54 ar.REGIX_IS_WINDOWS_PATH_ABSOLUT
8980 45 20 3d 20 2f 5e 5b 61 2d 7a 5d 3a 5c 2f 2f 69 3b 0a 0a 20 20 63 68 65 63 6b 50 61 74 68 2e 69 E.=./^[a-z]:\//i;....checkPath.i
89a0 73 4e 6f 74 52 65 6c 61 74 69 76 65 20 3d 20 66 75 6e 63 74 69 6f 6e 20 28 70 61 74 68 29 20 7b sNotRelative.=.function.(path).{
89c0 0a 20 20 20 20 72 65 74 75 72 6e 20 52 45 47 49 58 5f 49 53 5f 57 49 4e 44 4f 57 53 5f 50 41 54 .....return.REGIX_IS_WINDOWS_PAT
89e0 48 5f 41 42 53 4f 4c 55 54 45 2e 74 65 73 74 28 70 61 74 68 29 20 7c 7c 20 69 73 4e 6f 74 52 65 H_ABSOLUTE.test(path).||.isNotRe
8a00 6c 61 74 69 76 65 28 70 61 74 68 29 3b 0a 20 20 7d 3b 0a 7d 0a 00 00 00 00 00 00 00 00 00 00 00 lative(path);...};.}............
8a20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8a40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8a60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8a80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8aa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8ac0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8ae0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8b00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8b20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8b40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8b60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8b80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8ba0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8bc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8be0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8c00 70 61 63 6b 61 67 65 2f 70 61 63 6b 61 67 65 2e 6a 73 6f 6e 00 00 00 00 00 00 00 00 00 00 00 00 package/package.json............
8c20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8c40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8c60 00 00 00 00 30 30 30 36 34 34 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30 30 30 30 ....000644..................0000
8c80 30 30 33 34 33 31 20 00 33 35 36 30 31 31 36 36 30 34 20 00 30 31 31 35 34 37 20 00 30 00 00 00 003431..3560116604..011547..0...
8ca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8cc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8ce0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8d00 00 75 73 74 61 72 00 30 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .ustar.00.......................
8d20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8d40 00 00 00 00 00 00 00 00 00 30 30 30 30 30 30 20 00 30 30 30 30 30 30 20 00 00 00 00 00 00 00 00 .........000000..000000.........
8d60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8d80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8da0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8dc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8de0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
8e00 7b 0a 20 20 22 6e 61 6d 65 22 3a 20 22 69 67 6e 6f 72 65 22 2c 0a 20 20 22 76 65 72 73 69 6f 6e {..."name":."ignore",..."version
8e20 22 3a 20 22 35 2e 31 2e 38 22 2c 0a 20 20 22 64 65 73 63 72 69 70 74 69 6f 6e 22 3a 20 22 49 67 ":."5.1.8",..."description":."Ig
8e40 6e 6f 72 65 20 69 73 20 61 20 6d 61 6e 61 67 65 72 20 61 6e 64 20 66 69 6c 74 65 72 20 66 6f 72 nore.is.a.manager.and.filter.for
8e60 20 2e 67 69 74 69 67 6e 6f 72 65 20 72 75 6c 65 73 2c 20 74 68 65 20 6f 6e 65 20 75 73 65 64 20 ..gitignore.rules,.the.one.used.
8e80 62 79 20 65 73 6c 69 6e 74 2c 20 67 69 74 62 6f 6f 6b 20 61 6e 64 20 6d 61 6e 79 20 6f 74 68 65 by.eslint,.gitbook.and.many.othe
8ea0 72 73 2e 22 2c 0a 20 20 22 66 69 6c 65 73 22 3a 20 5b 0a 20 20 20 20 22 6c 65 67 61 63 79 2e 6a rs.",..."files":.[....."legacy.j
8ec0 73 22 2c 0a 20 20 20 20 22 69 6e 64 65 78 2e 6a 73 22 2c 0a 20 20 20 20 22 69 6e 64 65 78 2e 64 s",....."index.js",....."index.d
8ee0 2e 74 73 22 2c 0a 20 20 20 20 22 4c 49 43 45 4e 53 45 2d 4d 49 54 22 0a 20 20 5d 2c 0a 20 20 22 .ts",....."LICENSE-MIT"...],..."
8f00 73 63 72 69 70 74 73 22 3a 20 7b 0a 20 20 20 20 22 70 72 65 70 75 62 6c 69 73 68 4f 6e 6c 79 22 scripts":.{....."prepublishOnly"
8f20 3a 20 22 6e 70 6d 20 72 75 6e 20 62 75 69 6c 64 22 2c 0a 20 20 20 20 22 62 75 69 6c 64 22 3a 20 :."npm.run.build",....."build":.
8f40 22 62 61 62 65 6c 20 2d 6f 20 6c 65 67 61 63 79 2e 6a 73 20 69 6e 64 65 78 2e 6a 73 22 2c 0a 20 "babel.-o.legacy.js.index.js",..
8f60 20 20 20 22 74 65 73 74 3a 6c 69 6e 74 22 3a 20 22 65 73 6c 69 6e 74 20 2e 22 2c 0a 20 20 20 20 ..."test:lint":."eslint..",.....
8f80 22 74 65 73 74 3a 74 73 63 22 3a 20 22 74 73 63 20 2e 2f 74 65 73 74 2f 74 73 2f 73 69 6d 70 6c "test:tsc":."tsc../test/ts/simpl
8fa0 65 2e 74 73 20 2d 2d 6c 69 62 20 45 53 36 22 2c 0a 20 20 20 20 22 74 65 73 74 3a 74 73 22 3a 20 e.ts.--lib.ES6",....."test:ts":.
8fc0 22 6e 6f 64 65 20 2e 2f 74 65 73 74 2f 74 73 2f 73 69 6d 70 6c 65 2e 6a 73 22 2c 0a 20 20 20 20 "node../test/ts/simple.js",.....
8fe0 22 74 65 73 74 3a 67 69 74 22 3a 20 22 74 61 70 20 74 65 73 74 2f 67 69 74 2d 63 68 65 63 6b 2d "test:git":."tap.test/git-check-
9000 69 67 6e 6f 72 65 2e 6a 73 22 2c 0a 20 20 20 20 22 74 65 73 74 3a 69 67 6e 6f 72 65 22 3a 20 22 ignore.js",....."test:ignore":."
9020 74 61 70 20 74 65 73 74 2f 69 67 6e 6f 72 65 2e 6a 73 22 2c 0a 20 20 20 20 22 74 65 73 74 3a 6f tap.test/ignore.js",....."test:o
9040 74 68 65 72 73 22 3a 20 22 74 61 70 20 74 65 73 74 2f 6f 74 68 65 72 73 2e 6a 73 22 2c 0a 20 20 thers":."tap.test/others.js",...
9060 20 20 22 74 65 73 74 3a 63 61 73 65 73 22 3a 20 22 74 61 70 20 74 65 73 74 2f 2a 2e 6a 73 20 2d .."test:cases":."tap.test/*.js.-
9080 2d 63 6f 76 65 72 61 67 65 22 2c 0a 20 20 20 20 22 74 65 73 74 3a 6f 6e 6c 79 22 3a 20 22 6e 70 -coverage",....."test:only":."np
90a0 6d 20 72 75 6e 20 74 65 73 74 3a 6c 69 6e 74 20 26 26 20 6e 70 6d 20 72 75 6e 20 74 65 73 74 3a m.run.test:lint.&&.npm.run.test:
90c0 74 73 63 20 26 26 20 6e 70 6d 20 72 75 6e 20 74 65 73 74 3a 74 73 20 26 26 20 6e 70 6d 20 72 75 tsc.&&.npm.run.test:ts.&&.npm.ru
90e0 6e 20 74 65 73 74 3a 63 61 73 65 73 22 2c 0a 20 20 20 20 22 74 65 73 74 22 3a 20 22 6e 70 6d 20 n.test:cases",....."test":."npm.
9100 72 75 6e 20 74 65 73 74 3a 6f 6e 6c 79 22 2c 0a 20 20 20 20 22 74 65 73 74 3a 77 69 6e 33 32 22 run.test:only",....."test:win32"
9120 3a 20 22 49 47 4e 4f 52 45 5f 54 45 53 54 5f 57 49 4e 33 32 3d 31 20 6e 70 6d 20 72 75 6e 20 74 :."IGNORE_TEST_WIN32=1.npm.run.t
9140 65 73 74 22 2c 0a 20 20 20 20 22 70 6f 73 74 74 65 73 74 22 3a 20 22 74 61 70 20 2d 2d 63 6f 76 est",....."posttest":."tap.--cov
9160 65 72 61 67 65 2d 72 65 70 6f 72 74 3d 68 74 6d 6c 20 26 26 20 63 6f 64 65 63 6f 76 22 0a 20 20 erage-report=html.&&.codecov"...
9180 7d 2c 0a 20 20 22 72 65 70 6f 73 69 74 6f 72 79 22 3a 20 7b 0a 20 20 20 20 22 74 79 70 65 22 3a },..."repository":.{....."type":
91a0 20 22 67 69 74 22 2c 0a 20 20 20 20 22 75 72 6c 22 3a 20 22 67 69 74 40 67 69 74 68 75 62 2e 63 ."git",....."url":."git@github.c
91c0 6f 6d 3a 6b 61 65 6c 7a 68 61 6e 67 2f 6e 6f 64 65 2d 69 67 6e 6f 72 65 2e 67 69 74 22 0a 20 20 om:kaelzhang/node-ignore.git"...
91e0 7d 2c 0a 20 20 22 6b 65 79 77 6f 72 64 73 22 3a 20 5b 0a 20 20 20 20 22 69 67 6e 6f 72 65 22 2c },..."keywords":.[....."ignore",
9200 0a 20 20 20 20 22 2e 67 69 74 69 67 6e 6f 72 65 22 2c 0a 20 20 20 20 22 67 69 74 69 67 6e 6f 72 .....".gitignore",....."gitignor
9220 65 22 2c 0a 20 20 20 20 22 6e 70 6d 69 67 6e 6f 72 65 22 2c 0a 20 20 20 20 22 72 75 6c 65 73 22 e",....."npmignore",....."rules"
9240 2c 0a 20 20 20 20 22 6d 61 6e 61 67 65 72 22 2c 0a 20 20 20 20 22 66 69 6c 74 65 72 22 2c 0a 20 ,....."manager",....."filter",..
9260 20 20 20 22 72 65 67 65 78 70 22 2c 0a 20 20 20 20 22 72 65 67 65 78 22 2c 0a 20 20 20 20 22 66 ..."regexp",....."regex",....."f
9280 6e 6d 61 74 63 68 22 2c 0a 20 20 20 20 22 67 6c 6f 62 22 2c 0a 20 20 20 20 22 61 73 74 65 72 69 nmatch",....."glob",....."asteri
92a0 73 6b 73 22 2c 0a 20 20 20 20 22 72 65 67 75 6c 61 72 2d 65 78 70 72 65 73 73 69 6f 6e 22 0a 20 sks",....."regular-expression"..
92c0 20 5d 2c 0a 20 20 22 61 75 74 68 6f 72 22 3a 20 22 6b 61 65 6c 22 2c 0a 20 20 22 6c 69 63 65 6e .],..."author":."kael",..."licen
92e0 73 65 22 3a 20 22 4d 49 54 22 2c 0a 20 20 22 62 75 67 73 22 3a 20 7b 0a 20 20 20 20 22 75 72 6c se":."MIT",..."bugs":.{....."url
9300 22 3a 20 22 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 6b 61 65 6c 7a 68 61 6e 67 ":."https://github.com/kaelzhang
9320 2f 6e 6f 64 65 2d 69 67 6e 6f 72 65 2f 69 73 73 75 65 73 22 0a 20 20 7d 2c 0a 20 20 22 64 65 76 /node-ignore/issues"...},..."dev
9340 44 65 70 65 6e 64 65 6e 63 69 65 73 22 3a 20 7b 0a 20 20 20 20 22 40 62 61 62 65 6c 2f 63 6c 69 Dependencies":.{....."@babel/cli
9360 22 3a 20 22 5e 37 2e 38 2e 34 22 2c 0a 20 20 20 20 22 40 62 61 62 65 6c 2f 63 6f 72 65 22 3a 20 ":."^7.8.4",....."@babel/core":.
9380 22 5e 37 2e 39 2e 36 22 2c 0a 20 20 20 20 22 40 62 61 62 65 6c 2f 70 72 65 73 65 74 2d 65 6e 76 "^7.9.6",....."@babel/preset-env
93a0 22 3a 20 22 5e 37 2e 39 2e 36 22 2c 0a 20 20 20 20 22 63 6f 64 65 63 6f 76 22 3a 20 22 5e 33 2e ":."^7.9.6",....."codecov":."^3.
93c0 37 2e 30 22 2c 0a 20 20 20 20 22 64 65 62 75 67 22 3a 20 22 5e 34 2e 31 2e 31 22 2c 0a 20 20 20 7.0",....."debug":."^4.1.1",....
93e0 20 22 65 73 6c 69 6e 74 22 3a 20 22 5e 37 2e 30 2e 30 22 2c 0a 20 20 20 20 22 65 73 6c 69 6e 74 ."eslint":."^7.0.0",....."eslint
9400 2d 63 6f 6e 66 69 67 2d 6f 73 74 61 69 22 3a 20 22 5e 33 2e 30 2e 30 22 2c 0a 20 20 20 20 22 65 -config-ostai":."^3.0.0",....."e
9420 73 6c 69 6e 74 2d 70 6c 75 67 69 6e 2d 69 6d 70 6f 72 74 22 3a 20 22 5e 32 2e 32 30 2e 32 22 2c slint-plugin-import":."^2.20.2",
9440 0a 20 20 20 20 22 6d 6b 64 69 72 70 22 3a 20 22 5e 31 2e 30 2e 34 22 2c 0a 20 20 20 20 22 70 72 ....."mkdirp":."^1.0.4",....."pr
9460 65 2d 73 75 66 22 3a 20 22 5e 31 2e 31 2e 31 22 2c 0a 20 20 20 20 22 72 69 6d 72 61 66 22 3a 20 e-suf":."^1.1.1",....."rimraf":.
9480 22 5e 33 2e 30 2e 32 22 2c 0a 20 20 20 20 22 73 70 61 77 6e 2d 73 79 6e 63 22 3a 20 22 5e 32 2e "^3.0.2",....."spawn-sync":."^2.
94a0 30 2e 30 22 2c 0a 20 20 20 20 22 74 61 70 22 3a 20 22 5e 31 34 2e 31 30 2e 37 22 2c 0a 20 20 20 0.0",....."tap":."^14.10.7",....
94c0 20 22 74 6d 70 22 3a 20 22 30 2e 32 2e 31 22 2c 0a 20 20 20 20 22 74 79 70 65 73 63 72 69 70 74 ."tmp":."0.2.1",....."typescript
94e0 22 3a 20 22 5e 33 2e 39 2e 33 22 0a 20 20 7d 2c 0a 20 20 22 65 6e 67 69 6e 65 73 22 3a 20 7b 0a ":."^3.9.3"...},..."engines":.{.
9500 20 20 20 20 22 6e 6f 64 65 22 3a 20 22 3e 3d 20 34 22 0a 20 20 7d 0a 7d 0a 00 00 00 00 00 00 00 ...."node":.">=.4"...}.}........
9520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9560 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
95a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
95c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
95e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9600 70 61 63 6b 61 67 65 2f 43 48 41 4e 47 45 4c 4f 47 2e 6d 64 00 00 00 00 00 00 00 00 00 00 00 00 package/CHANGELOG.md............
9620 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9640 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9660 00 00 00 00 30 30 30 36 34 34 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30 30 30 30 ....000644..................0000
9680 30 30 32 33 36 34 20 00 33 35 36 30 31 31 36 36 30 34 20 00 30 31 31 30 37 36 20 00 30 00 00 00 002364..3560116604..011076..0...
96a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
96c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
96e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9700 00 75 73 74 61 72 00 30 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .ustar.00.......................
9720 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9740 00 00 00 00 00 00 00 00 00 30 30 30 30 30 30 20 00 30 30 30 30 30 30 20 00 00 00 00 00 00 00 00 .........000000..000000.........
9760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
97a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
97c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
97e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9800 23 20 60 6e 6f 64 65 2d 69 67 6e 6f 72 65 60 20 35 20 43 68 61 6e 67 65 4c 6f 67 0a 0a 23 20 35 #.`node-ignore`.5.ChangeLog..#.5
9820 2e 78 0a 0a 23 23 20 32 30 31 38 2d 30 38 2d 31 34 2c 20 56 65 72 73 69 6f 6e 20 35 2e 30 2e 31 .x..##.2018-08-14,.Version.5.0.1
9840 0a 0a 2d 20 2a 2a 50 41 54 43 48 2a 2a 3a 20 66 69 78 65 73 20 66 6f 72 20 77 69 6e 64 6f 77 73 ..-.**PATCH**:.fixes.for.windows
9860 2e 0a 2d 20 2a 2a 50 41 54 43 48 2a 2a 3a 20 69 6d 70 72 6f 76 65 73 20 74 65 73 74 73 20 66 6f ..-.**PATCH**:.improves.tests.fo
9880 72 20 74 79 70 65 73 63 72 69 70 74 20 61 6e 64 20 77 69 6e 64 6f 77 73 2e 0a 0a 23 23 20 32 30 r.typescript.and.windows...##.20
98a0 31 38 2d 30 38 2d 31 33 2c 20 56 65 72 73 69 6f 6e 20 35 2e 30 2e 30 0a 0a 2d 20 2a 2a 53 45 4d 18-08-13,.Version.5.0.0..-.**SEM
98c0 56 45 52 2d 4d 41 4a 4f 52 2a 2a 3a 20 5b 23 32 30 5d 28 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 VER-MAJOR**:.[#20](https://githu
98e0 62 2e 63 6f 6d 2f 6b 61 65 6c 7a 68 61 6e 67 2f 6e 6f 64 65 2d 69 67 6e 6f 72 65 2f 69 73 73 75 b.com/kaelzhang/node-ignore/issu
9900 65 73 2f 32 30 29 3a 20 69 74 20 77 69 6c 6c 20 74 68 72 6f 77 20 69 66 20 61 6e 20 69 6e 76 61 es/20):.it.will.throw.if.an.inva
9920 6c 69 64 20 70 61 74 68 6e 61 6d 65 20 70 61 73 73 65 73 20 69 6e 74 6f 20 60 2e 69 67 6e 6f 72 lid.pathname.passes.into.`.ignor
9940 65 73 28 70 61 74 68 6e 61 6d 65 29 60 2c 20 73 65 65 20 5b 55 70 67 72 61 64 65 20 34 2e 78 20 es(pathname)`,.see.[Upgrade.4.x.
9960 2d 3e 20 35 2e 78 5d 28 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 6b 61 65 6c 7a ->.5.x](https://github.com/kaelz
9980 68 61 6e 67 2f 6e 6f 64 65 2d 69 67 6e 6f 72 65 23 75 70 67 72 61 64 65 2d 34 78 2d 2d 2d 35 78 hang/node-ignore#upgrade-4x---5x
99a0 29 2e 0a 2d 20 2a 2a 46 45 41 54 55 52 45 2a 2a 3a 20 5b 23 33 31 5d 28 68 74 74 70 73 3a 2f 2f )..-.**FEATURE**:.[#31](https://
99c0 67 69 74 68 75 62 2e 63 6f 6d 2f 6b 61 65 6c 7a 68 61 6e 67 2f 6e 6f 64 65 2d 69 67 6e 6f 72 65 github.com/kaelzhang/node-ignore
99e0 2f 69 73 73 75 65 73 2f 33 31 29 3a 20 61 64 64 73 20 61 20 6e 65 77 20 6d 65 74 68 6f 64 20 5b /issues/31):.adds.a.new.method.[
9a00 60 2e 74 65 73 74 28 70 61 74 68 6e 61 6d 65 29 60 5d 28 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 `.test(pathname)`](https://githu
9a20 62 2e 63 6f 6d 2f 6b 61 65 6c 7a 68 61 6e 67 2f 6e 6f 64 65 2d 69 67 6e 6f 72 65 23 74 65 73 74 b.com/kaelzhang/node-ignore#test
9a40 70 61 74 68 6e 61 6d 65 2d 70 61 74 68 6e 61 6d 65 2d 73 69 6e 63 65 2d 35 30 30 29 2e 0a 2d 20 pathname-pathname-since-500)..-.
9a60 2a 2a 42 45 4e 43 48 4d 41 52 4b 2a 2a 3a 20 69 6d 70 72 6f 76 65 73 20 70 65 72 66 6f 72 6d 61 **BENCHMARK**:.improves.performa
9a80 6e 63 65 20 62 79 20 32 36 25 2e 0a 0a 23 20 34 2e 78 0a 0a 23 23 20 32 30 31 38 2d 30 38 2d 31 nce.by.26%...#.4.x..##.2018-08-1
9aa0 32 2c 20 56 65 72 73 69 6f 6e 20 34 2e 30 2e 36 0a 0a 2d 20 2a 2a 50 41 54 43 48 2a 2a 3a 20 60 2,.Version.4.0.6..-.**PATCH**:.`
9ac0 4f 62 6a 65 63 74 2e 70 72 6f 74 6f 74 79 70 65 60 20 6d 65 74 68 6f 64 73 20 77 69 6c 6c 20 6e Object.prototype`.methods.will.n
9ae0 6f 74 20 72 75 69 6e 20 74 68 65 20 72 65 73 75 6c 74 20 61 6e 79 20 6d 6f 72 65 2e 0a 0a 23 23 ot.ruin.the.result.any.more...##
9b00 20 7e 20 32 30 31 38 2d 30 38 2d 30 39 2c 20 56 65 72 73 69 6f 6e 20 34 2e 30 2e 31 20 2d 20 34 .~.2018-08-09,.Version.4.0.1.-.4
9b20 2e 30 2e 35 0a 0a 2d 20 2a 2a 50 41 54 43 48 2a 2a 3a 20 75 70 64 61 74 65 73 20 52 45 41 44 4d .0.5..-.**PATCH**:.updates.READM
9b40 45 2e 6d 64 20 61 62 6f 75 74 20 66 72 65 71 75 65 6e 74 20 61 73 6b 65 64 20 71 75 65 73 69 6f E.md.about.frequent.asked.quesio
9b60 6e 73 20 66 72 6f 6d 20 67 69 74 68 75 62 20 69 73 73 75 65 73 2e 0a 0a 23 23 20 32 30 31 38 2d ns.from.github.issues...##.2018-
9b80 30 36 2d 32 32 2c 20 56 65 72 73 69 6f 6e 20 34 2e 30 2e 30 0a 0a 2d 20 2a 2a 53 45 4d 56 45 52 06-22,.Version.4.0.0..-.**SEMVER
9ba0 2d 4d 41 4a 4f 52 2a 2a 3a 20 44 72 6f 70 20 73 75 70 70 6f 72 74 20 66 6f 72 20 6e 6f 64 65 20 -MAJOR**:.Drop.support.for.node.
9bc0 3c 20 36 20 62 79 20 64 65 66 61 75 6c 74 2e 0a 2d 20 2a 2a 46 45 41 54 55 52 45 2a 2a 3a 20 73 <.6.by.default..-.**FEATURE**:.s
9be0 75 70 70 6f 72 74 73 20 74 68 65 20 6d 69 73 73 69 6e 67 20 63 68 61 72 61 63 74 65 72 20 72 61 upports.the.missing.character.ra
9c00 6e 67 65 73 20 61 6e 64 20 73 65 74 73 2c 20 73 75 63 68 20 61 73 20 60 2a 2e 5b 61 2d 7a 5d 60 nges.and.sets,.such.as.`*.[a-z]`
9c20 20 61 6e 64 20 60 2a 2e 5b 6a 4a 5d 5b 70 50 5d 5b 67 47 5d 60 0a 2d 20 2a 2a 46 45 41 54 55 52 .and.`*.[jJ][pP][gG]`.-.**FEATUR
9c40 45 2a 2a 3a 20 6e 65 77 20 6f 70 74 69 6f 6e 3a 20 60 69 67 6e 6f 72 65 63 61 73 65 60 20 74 6f E**:.new.option:.`ignorecase`.to
9c60 20 6d 61 6b 65 20 60 69 67 6e 6f 72 65 60 20 63 61 73 65 20 69 6e 73 65 6e 73 69 74 69 76 65 2e .make.`ignore`.case.insensitive.
9c80 0a 2d 20 2a 2a 46 45 41 54 55 52 45 2a 2a 3a 20 73 75 70 70 6f 72 74 73 20 71 75 65 73 74 69 6f .-.**FEATURE**:.supports.questio
9ca0 6e 20 6d 61 72 6b 20 77 68 69 63 68 20 6d 61 74 63 68 65 73 20 61 20 73 69 6e 67 6c 65 20 63 68 n.mark.which.matches.a.single.ch
9cc0 61 72 61 63 74 65 72 2e 0a 2d 20 2a 2a 50 41 54 43 48 2a 2a 3a 20 66 69 78 65 73 20 74 79 70 65 aracter..-.**PATCH**:.fixes.type
9ce0 73 63 72 69 70 74 20 64 65 63 6c 61 72 61 74 69 6f 6e 2e 0a 00 00 00 00 00 00 00 00 00 00 00 00 script.declaration..............
9d00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9d20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9d40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9d60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9d80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9da0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9dc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9de0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9e00 70 61 63 6b 61 67 65 2f 52 45 41 44 4d 45 2e 6d 64 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 package/README.md...............
9e20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9e40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9e60 00 00 00 00 30 30 30 36 34 34 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30 30 30 30 ....000644..................0000
9e80 30 32 35 33 37 37 20 00 33 35 36 30 31 31 36 36 30 34 20 00 30 31 30 35 35 35 20 00 30 00 00 00 025377..3560116604..010555..0...
9ea0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9ec0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9ee0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9f00 00 75 73 74 61 72 00 30 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .ustar.00.......................
9f20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9f40 00 00 00 00 00 00 00 00 00 30 30 30 30 30 30 20 00 30 30 30 30 30 30 20 00 00 00 00 00 00 00 00 .........000000..000000.........
9f60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9f80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
9fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a000 3c 74 61 62 6c 65 3e 3c 74 68 65 61 64 3e 0a 20 20 3c 74 72 3e 0a 20 20 20 20 3c 74 68 3e 4c 69 <table><thead>...<tr>.....<th>Li
a020 6e 75 78 3c 2f 74 68 3e 0a 20 20 20 20 3c 74 68 3e 4f 53 20 58 3c 2f 74 68 3e 0a 20 20 20 20 3c nux</th>.....<th>OS.X</th>.....<
a040 74 68 3e 57 69 6e 64 6f 77 73 3c 2f 74 68 3e 0a 20 20 20 20 3c 74 68 3e 43 6f 76 65 72 61 67 65 th>Windows</th>.....<th>Coverage
a060 3c 2f 74 68 3e 0a 20 20 20 20 3c 74 68 3e 44 6f 77 6e 6c 6f 61 64 73 3c 2f 74 68 3e 0a 20 20 3c </th>.....<th>Downloads</th>...<
a080 2f 74 72 3e 0a 3c 2f 74 68 65 61 64 3e 3c 74 62 6f 64 79 3e 3c 74 72 3e 0a 20 20 3c 74 64 20 63 /tr>.</thead><tbody><tr>...<td.c
a0a0 6f 6c 73 70 61 6e 3d 22 32 22 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 0a 20 20 20 20 3c olspan="2".align="center">.....<
a0c0 61 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 74 72 61 76 69 73 2d 63 69 2e 6f 72 67 2f 6b 61 a.href="https://travis-ci.org/ka
a0e0 65 6c 7a 68 61 6e 67 2f 6e 6f 64 65 2d 69 67 6e 6f 72 65 22 3e 0a 20 20 20 20 3c 69 6d 67 0a 20 elzhang/node-ignore">.....<img..
a100 20 20 20 20 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 74 72 61 76 69 73 2d 63 69 2e 6f 72 67 2f .....src="https://travis-ci.org/
a120 6b 61 65 6c 7a 68 61 6e 67 2f 6e 6f 64 65 2d 69 67 6e 6f 72 65 2e 73 76 67 3f 62 72 61 6e 63 68 kaelzhang/node-ignore.svg?branch
a140 3d 6d 61 73 74 65 72 22 0a 20 20 20 20 20 20 61 6c 74 3d 22 42 75 69 6c 64 20 53 74 61 74 75 73 =master".......alt="Build.Status
a160 22 20 2f 3e 3c 2f 61 3e 0a 20 20 3c 2f 74 64 3e 0a 20 20 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 "./></a>...</td>...<td.align="ce
a180 6e 74 65 72 22 3e 0a 20 20 20 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 63 69 2e 61 nter">.....<a.href="https://ci.a
a1a0 70 70 76 65 79 6f 72 2e 63 6f 6d 2f 70 72 6f 6a 65 63 74 2f 6b 61 65 6c 7a 68 61 6e 67 2f 6e 6f ppveyor.com/project/kaelzhang/no
a1c0 64 65 2d 69 67 6e 6f 72 65 22 3e 0a 20 20 20 20 3c 69 6d 67 0a 20 20 20 20 20 20 73 72 63 3d 22 de-ignore">.....<img.......src="
a1e0 68 74 74 70 73 3a 2f 2f 63 69 2e 61 70 70 76 65 79 6f 72 2e 63 6f 6d 2f 61 70 69 2f 70 72 6f 6a https://ci.appveyor.com/api/proj
a200 65 63 74 73 2f 73 74 61 74 75 73 2f 67 69 74 68 75 62 2f 6b 61 65 6c 7a 68 61 6e 67 2f 6e 6f 64 ects/status/github/kaelzhang/nod
a220 65 2d 69 67 6e 6f 72 65 3f 62 72 61 6e 63 68 3d 6d 61 73 74 65 72 26 73 76 67 3d 74 72 75 65 22 e-ignore?branch=master&svg=true"
a240 0a 20 20 20 20 20 20 61 6c 74 3d 22 57 69 6e 64 6f 77 73 20 42 75 69 6c 64 20 53 74 61 74 75 73 .......alt="Windows.Build.Status
a260 22 20 2f 3e 3c 2f 61 3e 0a 20 20 3c 2f 74 64 3e 0a 20 20 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 "./></a>...</td>...<td.align="ce
a280 6e 74 65 72 22 3e 0a 20 20 20 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 63 6f 64 65 nter">.....<a.href="https://code
a2a0 63 6f 76 2e 69 6f 2f 67 68 2f 6b 61 65 6c 7a 68 61 6e 67 2f 6e 6f 64 65 2d 69 67 6e 6f 72 65 22 cov.io/gh/kaelzhang/node-ignore"
a2c0 3e 0a 20 20 20 20 3c 69 6d 67 0a 20 20 20 20 20 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 63 6f >.....<img.......src="https://co
a2e0 64 65 63 6f 76 2e 69 6f 2f 67 68 2f 6b 61 65 6c 7a 68 61 6e 67 2f 6e 6f 64 65 2d 69 67 6e 6f 72 decov.io/gh/kaelzhang/node-ignor
a300 65 2f 62 72 61 6e 63 68 2f 6d 61 73 74 65 72 2f 67 72 61 70 68 2f 62 61 64 67 65 2e 73 76 67 22 e/branch/master/graph/badge.svg"
a320 0a 20 20 20 20 20 20 61 6c 74 3d 22 43 6f 76 65 72 61 67 65 20 53 74 61 74 75 73 22 20 2f 3e 3c .......alt="Coverage.Status"./><
a340 2f 61 3e 0a 20 20 3c 2f 74 64 3e 0a 20 20 3c 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 /a>...</td>...<td.align="center"
a360 3e 0a 20 20 20 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 6e 70 6d 6a 73 >.....<a.href="https://www.npmjs
a380 2e 6f 72 67 2f 70 61 63 6b 61 67 65 2f 69 67 6e 6f 72 65 22 3e 0a 20 20 20 20 3c 69 6d 67 0a 20 .org/package/ignore">.....<img..
a3a0 20 20 20 20 20 73 72 63 3d 22 68 74 74 70 3a 2f 2f 69 6d 67 2e 73 68 69 65 6c 64 73 2e 69 6f 2f .....src="http://img.shields.io/
a3c0 6e 70 6d 2f 64 6d 2f 69 67 6e 6f 72 65 2e 73 76 67 22 0a 20 20 20 20 20 20 61 6c 74 3d 22 6e 70 npm/dm/ignore.svg".......alt="np
a3e0 6d 20 6d 6f 64 75 6c 65 20 64 6f 77 6e 6c 6f 61 64 73 20 70 65 72 20 6d 6f 6e 74 68 22 20 2f 3e m.module.downloads.per.month"./>
a400 3c 2f 61 3e 0a 20 20 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 3c 2f 74 62 6f 64 79 3e 3c 2f 74 61 62 6c </a>...</td>.</tr></tbody></tabl
a420 65 3e 0a 0a 23 20 69 67 6e 6f 72 65 0a 0a 60 69 67 6e 6f 72 65 60 20 69 73 20 61 20 6d 61 6e 61 e>..#.ignore..`ignore`.is.a.mana
a440 67 65 72 2c 20 66 69 6c 74 65 72 20 61 6e 64 20 70 61 72 73 65 72 20 77 68 69 63 68 20 69 6d 70 ger,.filter.and.parser.which.imp
a460 6c 65 6d 65 6e 74 65 64 20 69 6e 20 70 75 72 65 20 4a 61 76 61 53 63 72 69 70 74 20 61 63 63 6f lemented.in.pure.JavaScript.acco
a480 72 64 69 6e 67 20 74 6f 20 74 68 65 20 5b 2e 67 69 74 69 67 6e 6f 72 65 20 73 70 65 63 20 32 2e rding.to.the.[.gitignore.spec.2.
a4a0 32 32 2e 31 5d 28 68 74 74 70 3a 2f 2f 67 69 74 2d 73 63 6d 2e 63 6f 6d 2f 64 6f 63 73 2f 67 69 22.1](http://git-scm.com/docs/gi
a4c0 74 69 67 6e 6f 72 65 29 2e 0a 0a 60 69 67 6e 6f 72 65 60 20 69 73 20 75 73 65 64 20 62 79 20 65 tignore)...`ignore`.is.used.by.e
a4e0 73 6c 69 6e 74 2c 20 67 69 74 62 6f 6f 6b 20 61 6e 64 20 5b 6d 61 6e 79 20 6f 74 68 65 72 73 5d slint,.gitbook.and.[many.others]
a500 28 68 74 74 70 73 3a 2f 2f 77 77 77 2e 6e 70 6d 6a 73 2e 63 6f 6d 2f 62 72 6f 77 73 65 2f 64 65 (https://www.npmjs.com/browse/de
a520 70 65 6e 64 65 64 2f 69 67 6e 6f 72 65 29 2e 0a 0a 50 61 79 20 2a 2a 41 54 54 45 4e 54 49 4f 4e pended/ignore)...Pay.**ATTENTION
a540 2a 2a 20 74 68 61 74 20 5b 60 6d 69 6e 69 6d 61 74 63 68 60 5d 28 68 74 74 70 73 3a 2f 2f 77 77 **.that.[`minimatch`](https://ww
a560 77 2e 6e 70 6d 6a 73 2e 6f 72 67 2f 70 61 63 6b 61 67 65 2f 6d 69 6e 69 6d 61 74 63 68 29 20 28 w.npmjs.org/package/minimatch).(
a580 77 68 69 63 68 20 75 73 65 64 20 62 79 20 60 66 73 74 72 65 61 6d 2d 69 67 6e 6f 72 65 60 29 20 which.used.by.`fstream-ignore`).
a5a0 64 6f 65 73 20 6e 6f 74 20 66 6f 6c 6c 6f 77 20 74 68 65 20 67 69 74 69 67 6e 6f 72 65 20 73 70 does.not.follow.the.gitignore.sp
a5c0 65 63 2e 0a 0a 54 6f 20 66 69 6c 74 65 72 20 66 69 6c 65 6e 61 6d 65 73 20 61 63 63 6f 72 64 69 ec...To.filter.filenames.accordi
a5e0 6e 67 20 74 6f 20 61 20 2e 67 69 74 69 67 6e 6f 72 65 20 66 69 6c 65 2c 20 49 20 72 65 63 6f 6d ng.to.a..gitignore.file,.I.recom
a600 6d 65 6e 64 20 74 68 69 73 20 6e 70 6d 20 70 61 63 6b 61 67 65 2c 20 60 69 67 6e 6f 72 65 60 2e mend.this.npm.package,.`ignore`.
a620 0a 0a 54 6f 20 70 61 72 73 65 20 61 6e 20 60 2e 6e 70 6d 69 67 6e 6f 72 65 60 20 66 69 6c 65 2c ..To.parse.an.`.npmignore`.file,
a640 20 79 6f 75 20 73 68 6f 75 6c 64 20 75 73 65 20 60 6d 69 6e 69 6d 61 74 63 68 60 2c 20 62 65 63 .you.should.use.`minimatch`,.bec
a660 61 75 73 65 20 61 6e 20 60 2e 6e 70 6d 69 67 6e 6f 72 65 60 20 66 69 6c 65 20 69 73 20 70 61 72 ause.an.`.npmignore`.file.is.par
a680 73 65 64 20 62 79 20 6e 70 6d 20 75 73 69 6e 67 20 60 6d 69 6e 69 6d 61 74 63 68 60 20 61 6e 64 sed.by.npm.using.`minimatch`.and
a6a0 20 69 74 20 64 6f 65 73 20 6e 6f 74 20 77 6f 72 6b 20 69 6e 20 74 68 65 20 2e 67 69 74 69 67 6e .it.does.not.work.in.the..gitign
a6c0 6f 72 65 20 77 61 79 2e 0a 0a 23 23 23 20 54 65 73 74 65 64 20 6f 6e 0a 0a 60 69 67 6e 6f 72 65 ore.way...###.Tested.on..`ignore
a6e0 60 20 69 73 20 66 75 6c 6c 79 20 74 65 73 74 65 64 2c 20 61 6e 64 20 68 61 73 20 6d 6f 72 65 20 `.is.fully.tested,.and.has.more.
a700 74 68 61 6e 20 2a 2a 66 69 76 65 20 68 75 6e 64 72 65 64 73 2a 2a 20 6f 66 20 75 6e 69 74 20 74 than.**five.hundreds**.of.unit.t
a720 65 73 74 73 2e 0a 0a 2d 20 4c 69 6e 75 78 20 2b 20 4e 6f 64 65 3a 20 60 30 2e 38 60 20 2d 20 60 ests...-.Linux.+.Node:.`0.8`.-.`
a740 37 2e 78 60 0a 2d 20 57 69 6e 64 6f 77 73 20 2b 20 4e 6f 64 65 3a 20 60 30 2e 31 30 60 20 2d 20 7.x`.-.Windows.+.Node:.`0.10`.-.
a760 60 37 2e 78 60 2c 20 6e 6f 64 65 20 3c 20 60 30 2e 31 30 60 20 69 73 20 6e 6f 74 20 74 65 73 74 `7.x`,.node.<.`0.10`.is.not.test
a780 65 64 20 64 75 65 20 74 6f 20 74 68 65 20 6c 61 63 6b 20 6f 66 20 73 75 70 70 6f 72 74 20 6f 66 ed.due.to.the.lack.of.support.of
a7a0 20 61 70 70 76 65 79 6f 72 2e 0a 0a 41 63 74 75 61 6c 6c 79 2c 20 60 69 67 6e 6f 72 65 60 20 64 .appveyor...Actually,.`ignore`.d
a7c0 6f 65 73 20 6e 6f 74 20 72 65 6c 79 20 6f 6e 20 61 6e 79 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 oes.not.rely.on.any.versions.of.
a7e0 6e 6f 64 65 20 73 70 65 63 69 61 6c 6c 79 2e 0a 0a 53 69 6e 63 65 20 60 34 2e 30 2e 30 60 2c 20 node.specially...Since.`4.0.0`,.
a800 69 67 6e 6f 72 65 20 77 69 6c 6c 20 6e 6f 20 6c 6f 6e 67 65 72 20 73 75 70 70 6f 72 74 20 60 6e ignore.will.no.longer.support.`n
a820 6f 64 65 20 3c 20 36 60 20 62 79 20 64 65 66 61 75 6c 74 2c 20 74 6f 20 75 73 65 20 69 6e 20 6e ode.<.6`.by.default,.to.use.in.n
a840 6f 64 65 20 3c 20 36 2c 20 60 72 65 71 75 69 72 65 28 27 69 67 6e 6f 72 65 2f 6c 65 67 61 63 79 ode.<.6,.`require('ignore/legacy
a860 27 29 60 2e 20 46 6f 72 20 64 65 74 61 69 6c 73 2c 20 73 65 65 20 5b 43 48 41 4e 47 45 4c 4f 47 ')`..For.details,.see.[CHANGELOG
a880 5d 28 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 6b 61 65 6c 7a 68 61 6e 67 2f 6e ](https://github.com/kaelzhang/n
a8a0 6f 64 65 2d 69 67 6e 6f 72 65 2f 62 6c 6f 62 2f 6d 61 73 74 65 72 2f 43 48 41 4e 47 45 4c 4f 47 ode-ignore/blob/master/CHANGELOG
a8c0 2e 6d 64 29 2e 0a 0a 23 23 20 54 61 62 6c 65 20 4f 66 20 4d 61 69 6e 20 43 6f 6e 74 65 6e 74 73 .md)...##.Table.Of.Main.Contents
a8e0 0a 0a 2d 20 5b 55 73 61 67 65 5d 28 23 75 73 61 67 65 29 0a 2d 20 5b 60 50 61 74 68 6e 61 6d 65 ..-.[Usage](#usage).-.[`Pathname
a900 60 20 43 6f 6e 76 65 6e 74 69 6f 6e 73 5d 28 23 70 61 74 68 6e 61 6d 65 2d 63 6f 6e 76 65 6e 74 `.Conventions](#pathname-convent
a920 69 6f 6e 73 29 0a 2d 20 53 65 65 20 41 6c 73 6f 3a 0a 20 20 2d 20 5b 60 67 6c 6f 62 2d 67 69 74 ions).-.See.Also:...-.[`glob-git
a940 69 67 6e 6f 72 65 60 5d 28 68 74 74 70 73 3a 2f 2f 77 77 77 2e 6e 70 6d 6a 73 2e 63 6f 6d 2f 70 ignore`](https://www.npmjs.com/p
a960 61 63 6b 61 67 65 2f 67 6c 6f 62 2d 67 69 74 69 67 6e 6f 72 65 29 20 6d 61 74 63 68 65 73 20 66 ackage/glob-gitignore).matches.f
a980 69 6c 65 73 20 75 73 69 6e 67 20 70 61 74 74 65 72 6e 73 20 61 6e 64 20 66 69 6c 74 65 72 73 20 iles.using.patterns.and.filters.
a9a0 74 68 65 6d 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 67 69 74 69 67 6e 6f 72 65 20 72 75 6c 65 them.according.to.gitignore.rule
a9c0 73 2e 0a 2d 20 5b 55 70 67 72 61 64 65 20 47 75 69 64 65 5d 28 23 75 70 67 72 61 64 65 2d 67 75 s..-.[Upgrade.Guide](#upgrade-gu
a9e0 69 64 65 29 0a 0a 23 23 20 49 6e 73 74 61 6c 6c 0a 0a 60 60 60 73 68 0a 6e 70 6d 20 69 20 69 67 ide)..##.Install..```sh.npm.i.ig
aa00 6e 6f 72 65 0a 60 60 60 0a 0a 23 23 20 55 73 61 67 65 0a 0a 60 60 60 6a 73 0a 69 6d 70 6f 72 74 nore.```..##.Usage..```js.import
aa20 20 69 67 6e 6f 72 65 20 66 72 6f 6d 20 27 69 67 6e 6f 72 65 27 0a 63 6f 6e 73 74 20 69 67 20 3d .ignore.from.'ignore'.const.ig.=
aa40 20 69 67 6e 6f 72 65 28 29 2e 61 64 64 28 5b 27 2e 61 62 63 2f 2a 27 2c 20 27 21 2e 61 62 63 2f .ignore().add(['.abc/*',.'!.abc/
aa60 64 2f 27 5d 29 0a 60 60 60 0a 0a 23 23 23 20 46 69 6c 74 65 72 20 74 68 65 20 67 69 76 65 6e 20 d/']).```..###.Filter.the.given.
aa80 70 61 74 68 73 0a 0a 60 60 60 6a 73 0a 63 6f 6e 73 74 20 70 61 74 68 73 20 3d 20 5b 0a 20 20 27 paths..```js.const.paths.=.[...'
aaa0 2e 61 62 63 2f 61 2e 6a 73 27 2c 20 20 20 20 2f 2f 20 66 69 6c 74 65 72 65 64 20 6f 75 74 0a 20 .abc/a.js',....//.filtered.out..
aac0 20 27 2e 61 62 63 2f 64 2f 65 2e 6a 73 27 20 20 20 2f 2f 20 69 6e 63 6c 75 64 65 64 0a 5d 0a 0a .'.abc/d/e.js'...//.included.]..
aae0 69 67 2e 66 69 6c 74 65 72 28 70 61 74 68 73 29 20 20 20 20 20 20 20 20 2f 2f 20 5b 27 2e 61 62 ig.filter(paths)........//.['.ab
ab00 63 2f 64 2f 65 2e 6a 73 27 5d 0a 69 67 2e 69 67 6e 6f 72 65 73 28 27 2e 61 62 63 2f 61 2e 6a 73 c/d/e.js'].ig.ignores('.abc/a.js
ab20 27 29 20 2f 2f 20 74 72 75 65 0a 60 60 60 0a 0a 23 23 23 20 41 73 20 74 68 65 20 66 69 6c 74 65 ').//.true.```..###.As.the.filte
ab40 72 20 66 75 6e 63 74 69 6f 6e 0a 0a 60 60 60 6a 73 0a 70 61 74 68 73 2e 66 69 6c 74 65 72 28 69 r.function..```js.paths.filter(i
ab60 67 2e 63 72 65 61 74 65 46 69 6c 74 65 72 28 29 29 3b 20 2f 2f 20 5b 27 2e 61 62 63 2f 64 2f 65 g.createFilter());.//.['.abc/d/e
ab80 2e 6a 73 27 5d 0a 60 60 60 0a 0a 23 23 23 20 57 69 6e 33 32 20 70 61 74 68 73 20 77 69 6c 6c 20 .js'].```..###.Win32.paths.will.
aba0 62 65 20 68 61 6e 64 6c 65 64 0a 0a 60 60 60 6a 73 0a 69 67 2e 66 69 6c 74 65 72 28 5b 27 2e 61 be.handled..```js.ig.filter(['.a
abc0 62 63 5c 5c 61 2e 6a 73 27 2c 20 27 2e 61 62 63 5c 5c 64 5c 5c 65 2e 6a 73 27 5d 29 0a 2f 2f 20 bc\\a.js',.'.abc\\d\\e.js']).//.
abe0 69 66 20 74 68 65 20 63 6f 64 65 20 61 62 6f 76 65 20 72 75 6e 73 20 6f 6e 20 77 69 6e 64 6f 77 if.the.code.above.runs.on.window
ac00 73 2c 20 74 68 65 20 72 65 73 75 6c 74 20 77 69 6c 6c 20 62 65 0a 2f 2f 20 5b 27 2e 61 62 63 5c s,.the.result.will.be.//.['.abc\
ac20 5c 64 5c 5c 65 2e 6a 73 27 5d 0a 60 60 60 0a 0a 23 23 20 57 68 79 20 61 6e 6f 74 68 65 72 20 69 \d\\e.js'].```..##.Why.another.i
ac40 67 6e 6f 72 65 3f 0a 0a 2d 20 60 69 67 6e 6f 72 65 60 20 69 73 20 61 20 73 74 61 6e 64 61 6c 6f gnore?..-.`ignore`.is.a.standalo
ac60 6e 65 20 6d 6f 64 75 6c 65 2c 20 61 6e 64 20 69 73 20 6d 75 63 68 20 73 69 6d 70 6c 65 72 20 73 ne.module,.and.is.much.simpler.s
ac80 6f 20 74 68 61 74 20 69 74 20 63 6f 75 6c 64 20 65 61 73 79 20 77 6f 72 6b 20 77 69 74 68 20 6f o.that.it.could.easy.work.with.o
aca0 74 68 65 72 20 70 72 6f 67 72 61 6d 73 2c 20 75 6e 6c 69 6b 65 20 5b 69 73 61 61 63 73 5d 28 68 ther.programs,.unlike.[isaacs](h
acc0 74 74 70 73 3a 2f 2f 6e 70 6d 6a 73 2e 6f 72 67 2f 7e 69 73 61 61 63 73 29 27 73 20 5b 66 73 74 ttps://npmjs.org/~isaacs)'s.[fst
ace0 72 65 61 6d 2d 69 67 6e 6f 72 65 5d 28 68 74 74 70 73 3a 2f 2f 6e 70 6d 6a 73 2e 6f 72 67 2f 70 ream-ignore](https://npmjs.org/p
ad00 61 63 6b 61 67 65 2f 66 73 74 72 65 61 6d 2d 69 67 6e 6f 72 65 29 20 77 68 69 63 68 20 6d 75 73 ackage/fstream-ignore).which.mus
ad20 74 20 77 6f 72 6b 20 77 69 74 68 20 74 68 65 20 6d 6f 64 75 6c 65 73 20 6f 66 20 74 68 65 20 66 t.work.with.the.modules.of.the.f
ad40 73 74 72 65 61 6d 20 66 61 6d 69 6c 79 2e 0a 0a 2d 20 60 69 67 6e 6f 72 65 60 20 6f 6e 6c 79 20 stream.family...-.`ignore`.only.
ad60 63 6f 6e 74 61 69 6e 73 20 75 74 69 6c 69 74 79 20 6d 65 74 68 6f 64 73 20 74 6f 20 66 69 6c 74 contains.utility.methods.to.filt
ad80 65 72 20 70 61 74 68 73 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 65 20 73 70 65 63 69 66 er.paths.according.to.the.specif
ada0 69 65 64 20 69 67 6e 6f 72 65 20 72 75 6c 65 73 2c 20 73 6f 0a 20 20 2d 20 60 69 67 6e 6f 72 65 ied.ignore.rules,.so...-.`ignore
adc0 60 20 6e 65 76 65 72 20 74 72 79 20 74 6f 20 66 69 6e 64 20 6f 75 74 20 69 67 6e 6f 72 65 20 72 `.never.try.to.find.out.ignore.r
ade0 75 6c 65 73 20 62 79 20 74 72 61 76 65 72 73 69 6e 67 20 64 69 72 65 63 74 6f 72 69 65 73 20 6f ules.by.traversing.directories.o
ae00 72 20 66 65 74 63 68 69 6e 67 20 66 72 6f 6d 20 67 69 74 20 63 6f 6e 66 69 67 75 72 61 74 69 6f r.fetching.from.git.configuratio
ae20 6e 73 2e 0a 20 20 2d 20 60 69 67 6e 6f 72 65 60 20 64 6f 6e 27 74 20 63 61 72 65 73 20 61 62 6f ns....-.`ignore`.don't.cares.abo
ae40 75 74 20 73 75 62 2d 6d 6f 64 75 6c 65 73 20 6f 66 20 67 69 74 20 70 72 6f 6a 65 63 74 73 2e 0a ut.sub-modules.of.git.projects..
ae60 0a 2d 20 45 78 61 63 74 6c 79 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 5b 67 69 74 69 67 6e 6f .-.Exactly.according.to.[gitigno
ae80 72 65 20 6d 61 6e 20 70 61 67 65 5d 28 68 74 74 70 3a 2f 2f 67 69 74 2d 73 63 6d 2e 63 6f 6d 2f re.man.page](http://git-scm.com/
aea0 64 6f 63 73 2f 67 69 74 69 67 6e 6f 72 65 29 2c 20 66 69 78 65 73 20 73 6f 6d 65 20 6b 6e 6f 77 docs/gitignore),.fixes.some.know
aec0 6e 20 6d 61 74 63 68 69 6e 67 20 69 73 73 75 65 73 20 6f 66 20 66 73 74 72 65 61 6d 2d 69 67 6e n.matching.issues.of.fstream-ign
aee0 6f 72 65 2c 20 73 75 63 68 20 61 73 3a 0a 20 20 2d 20 27 60 2f 2a 2e 6a 73 60 27 20 73 68 6f 75 ore,.such.as:...-.'`/*.js`'.shou
af00 6c 64 20 6f 6e 6c 79 20 6d 61 74 63 68 20 27 60 61 2e 6a 73 60 27 2c 20 62 75 74 20 6e 6f 74 20 ld.only.match.'`a.js`',.but.not.
af20 27 60 61 62 63 2f 61 2e 6a 73 60 27 2e 0a 20 20 2d 20 27 60 2a 2a 2f 66 6f 6f 60 27 20 73 68 6f '`abc/a.js`'....-.'`**/foo`'.sho
af40 75 6c 64 20 6d 61 74 63 68 20 27 60 66 6f 6f 60 27 20 61 6e 79 77 68 65 72 65 2e 0a 20 20 2d 20 uld.match.'`foo`'.anywhere....-.
af60 50 72 65 76 65 6e 74 20 72 65 2d 69 6e 63 6c 75 64 69 6e 67 20 61 20 66 69 6c 65 20 69 66 20 61 Prevent.re-including.a.file.if.a
af80 20 70 61 72 65 6e 74 20 64 69 72 65 63 74 6f 72 79 20 6f 66 20 74 68 61 74 20 66 69 6c 65 20 69 .parent.directory.of.that.file.i
afa0 73 20 65 78 63 6c 75 64 65 64 2e 0a 20 20 2d 20 48 61 6e 64 6c 65 20 74 72 61 69 6c 69 6e 67 20 s.excluded....-.Handle.trailing.
afc0 77 68 69 74 65 73 70 61 63 65 73 3a 0a 20 20 20 20 2d 20 60 27 61 20 27 60 28 6f 6e 65 20 73 70 whitespaces:.....-.`'a.'`(one.sp
afe0 61 63 65 29 20 73 68 6f 75 6c 64 20 6e 6f 74 20 6d 61 74 63 68 20 60 27 61 20 20 27 60 28 74 77 ace).should.not.match.`'a..'`(tw
b000 6f 20 73 70 61 63 65 73 29 2e 0a 20 20 20 20 2d 20 60 27 61 20 5c 20 27 60 20 6d 61 74 63 68 65 o.spaces)......-.`'a.\.'`.matche
b020 73 20 60 27 61 20 20 27 60 0a 20 20 2d 20 41 6c 6c 20 74 65 73 74 20 63 61 73 65 73 20 61 72 65 s.`'a..'`...-.All.test.cases.are
b040 20 76 65 72 69 66 69 65 64 20 77 69 74 68 20 74 68 65 20 72 65 73 75 6c 74 20 6f 66 20 60 67 69 .verified.with.the.result.of.`gi
b060 74 20 63 68 65 63 6b 2d 69 67 6e 6f 72 65 60 2e 0a 0a 23 20 4d 65 74 68 6f 64 73 0a 0a 23 23 20 t.check-ignore`...#.Methods..##.
b080 2e 61 64 64 28 70 61 74 74 65 72 6e 3a 20 73 74 72 69 6e 67 20 7c 20 49 67 6e 6f 72 65 29 3a 20 .add(pattern:.string.|.Ignore):.
b0a0 74 68 69 73 0a 23 23 20 2e 61 64 64 28 70 61 74 74 65 72 6e 73 3a 20 41 72 72 61 79 3c 73 74 72 this.##..add(patterns:.Array<str
b0c0 69 6e 67 20 7c 20 49 67 6e 6f 72 65 3e 29 3a 20 74 68 69 73 0a 0a 2d 20 2a 2a 70 61 74 74 65 72 ing.|.Ignore>):.this..-.**patter
b0e0 6e 2a 2a 20 60 53 74 72 69 6e 67 20 7c 20 49 67 6e 6f 72 65 60 20 41 6e 20 69 67 6e 6f 72 65 20 n**.`String.|.Ignore`.An.ignore.
b100 70 61 74 74 65 72 6e 20 73 74 72 69 6e 67 2c 20 6f 72 20 74 68 65 20 60 49 67 6e 6f 72 65 60 20 pattern.string,.or.the.`Ignore`.
b120 69 6e 73 74 61 6e 63 65 0a 2d 20 2a 2a 70 61 74 74 65 72 6e 73 2a 2a 20 60 41 72 72 61 79 3c 53 instance.-.**patterns**.`Array<S
b140 74 72 69 6e 67 20 7c 20 49 67 6e 6f 72 65 3e 60 20 41 72 72 61 79 20 6f 66 20 69 67 6e 6f 72 65 tring.|.Ignore>`.Array.of.ignore
b160 20 70 61 74 74 65 72 6e 73 2e 0a 0a 41 64 64 73 20 61 20 72 75 6c 65 20 6f 72 20 73 65 76 65 72 .patterns...Adds.a.rule.or.sever
b180 61 6c 20 72 75 6c 65 73 20 74 6f 20 74 68 65 20 63 75 72 72 65 6e 74 20 6d 61 6e 61 67 65 72 2e al.rules.to.the.current.manager.
b1a0 0a 0a 52 65 74 75 72 6e 73 20 60 74 68 69 73 60 0a 0a 4e 6f 74 69 63 65 20 74 68 61 74 20 61 20 ..Returns.`this`..Notice.that.a.
b1c0 6c 69 6e 65 20 73 74 61 72 74 69 6e 67 20 77 69 74 68 20 60 27 23 27 60 28 68 61 73 68 29 20 69 line.starting.with.`'#'`(hash).i
b1e0 73 20 74 72 65 61 74 65 64 20 61 73 20 61 20 63 6f 6d 6d 65 6e 74 2e 20 50 75 74 20 61 20 62 61 s.treated.as.a.comment..Put.a.ba
b200 63 6b 73 6c 61 73 68 20 28 60 27 5c 27 60 29 20 69 6e 20 66 72 6f 6e 74 20 6f 66 20 74 68 65 20 ckslash.(`'\'`).in.front.of.the.
b220 66 69 72 73 74 20 68 61 73 68 20 66 6f 72 20 70 61 74 74 65 72 6e 73 20 74 68 61 74 20 62 65 67 first.hash.for.patterns.that.beg
b240 69 6e 20 77 69 74 68 20 61 20 68 61 73 68 2c 20 69 66 20 79 6f 75 20 77 61 6e 74 20 74 6f 20 69 in.with.a.hash,.if.you.want.to.i
b260 67 6e 6f 72 65 20 61 20 66 69 6c 65 20 77 69 74 68 20 61 20 68 61 73 68 20 61 74 20 74 68 65 20 gnore.a.file.with.a.hash.at.the.
b280 62 65 67 69 6e 6e 69 6e 67 20 6f 66 20 74 68 65 20 66 69 6c 65 6e 61 6d 65 2e 0a 0a 60 60 60 6a beginning.of.the.filename...```j
b2a0 73 0a 69 67 6e 6f 72 65 28 29 2e 61 64 64 28 27 23 61 62 63 27 29 2e 69 67 6e 6f 72 65 73 28 27 s.ignore().add('#abc').ignores('
b2c0 23 61 62 63 27 29 20 20 20 20 2f 2f 20 66 61 6c 73 65 0a 69 67 6e 6f 72 65 28 29 2e 61 64 64 28 #abc')....//.false.ignore().add(
b2e0 27 5c 23 61 62 63 27 29 2e 69 67 6e 6f 72 65 73 28 27 23 61 62 63 27 29 20 20 20 2f 2f 20 74 72 '\#abc').ignores('#abc')...//.tr
b300 75 65 0a 60 60 60 0a 0a 60 70 61 74 74 65 72 6e 60 20 63 6f 75 6c 64 20 65 69 74 68 65 72 20 62 ue.```..`pattern`.could.either.b
b320 65 20 61 20 6c 69 6e 65 20 6f 66 20 69 67 6e 6f 72 65 20 70 61 74 74 65 72 6e 20 6f 72 20 61 20 e.a.line.of.ignore.pattern.or.a.
b340 73 74 72 69 6e 67 20 6f 66 20 6d 75 6c 74 69 70 6c 65 20 69 67 6e 6f 72 65 20 70 61 74 74 65 72 string.of.multiple.ignore.patter
b360 6e 73 2c 20 77 68 69 63 68 20 6d 65 61 6e 73 20 77 65 20 63 6f 75 6c 64 20 6a 75 73 74 20 60 69 ns,.which.means.we.could.just.`i
b380 67 6e 6f 72 65 28 29 2e 61 64 64 28 29 60 20 74 68 65 20 63 6f 6e 74 65 6e 74 20 6f 66 20 61 20 gnore().add()`.the.content.of.a.
b3a0 69 67 6e 6f 72 65 20 66 69 6c 65 3a 0a 0a 60 60 60 6a 73 0a 69 67 6e 6f 72 65 28 29 0a 2e 61 64 ignore.file:..```js.ignore()..ad
b3c0 64 28 66 73 2e 72 65 61 64 46 69 6c 65 53 79 6e 63 28 66 69 6c 65 6e 61 6d 65 4f 66 47 69 74 69 d(fs.readFileSync(filenameOfGiti
b3e0 67 6e 6f 72 65 29 2e 74 6f 53 74 72 69 6e 67 28 29 29 0a 2e 66 69 6c 74 65 72 28 66 69 6c 65 6e gnore).toString())..filter(filen
b400 61 6d 65 73 29 0a 60 60 60 0a 0a 60 70 61 74 74 65 72 6e 60 20 63 6f 75 6c 64 20 61 6c 73 6f 20 ames).```..`pattern`.could.also.
b420 62 65 20 61 6e 20 60 69 67 6e 6f 72 65 60 20 69 6e 73 74 61 6e 63 65 2c 20 73 6f 20 74 68 61 74 be.an.`ignore`.instance,.so.that
b440 20 77 65 20 63 6f 75 6c 64 20 65 61 73 69 6c 79 20 69 6e 68 65 72 69 74 20 74 68 65 20 72 75 6c .we.could.easily.inherit.the.rul
b460 65 73 20 6f 66 20 61 6e 6f 74 68 65 72 20 60 49 67 6e 6f 72 65 60 20 69 6e 73 74 61 6e 63 65 2e es.of.another.`Ignore`.instance.
b480 0a 0a 23 23 20 3c 73 74 72 69 6b 65 3e 2e 61 64 64 49 67 6e 6f 72 65 46 69 6c 65 28 70 61 74 68 ..##.<strike>.addIgnoreFile(path
b4a0 29 3c 2f 73 74 72 69 6b 65 3e 0a 0a 52 45 4d 4f 56 45 44 20 69 6e 20 60 33 2e 78 60 20 66 6f 72 )</strike>..REMOVED.in.`3.x`.for
b4c0 20 6e 6f 77 2e 0a 0a 54 6f 20 75 70 67 72 61 64 65 20 60 69 67 6e 6f 72 65 40 32 2e 78 60 20 75 .now...To.upgrade.`ignore@2.x`.u
b4e0 70 20 74 6f 20 60 33 2e 78 60 2c 20 75 73 65 0a 0a 60 60 60 6a 73 0a 69 6d 70 6f 72 74 20 66 73 p.to.`3.x`,.use..```js.import.fs
b500 20 66 72 6f 6d 20 27 66 73 27 0a 0a 69 66 20 28 66 73 2e 65 78 69 73 74 73 53 79 6e 63 28 66 69 .from.'fs'..if.(fs.existsSync(fi
b520 6c 65 6e 61 6d 65 29 29 20 7b 0a 20 20 69 67 6e 6f 72 65 28 29 2e 61 64 64 28 66 73 2e 72 65 61 lename)).{...ignore().add(fs.rea
b540 64 46 69 6c 65 53 79 6e 63 28 66 69 6c 65 6e 61 6d 65 29 2e 74 6f 53 74 72 69 6e 67 28 29 29 0a dFileSync(filename).toString()).
b560 7d 0a 60 60 60 0a 0a 69 6e 73 74 65 61 64 2e 0a 0a 23 23 20 2e 66 69 6c 74 65 72 28 70 61 74 68 }.```..instead...##..filter(path
b580 73 3a 20 41 72 72 61 79 26 6c 74 3b 50 61 74 68 6e 61 6d 65 26 67 74 3b 29 3a 20 41 72 72 61 79 s:.Array&lt;Pathname&gt;):.Array
b5a0 26 6c 74 3b 50 61 74 68 6e 61 6d 65 26 67 74 3b 0a 0a 60 60 60 74 73 0a 74 79 70 65 20 50 61 74 &lt;Pathname&gt;..```ts.type.Pat
b5c0 68 6e 61 6d 65 20 3d 20 73 74 72 69 6e 67 0a 60 60 60 0a 0a 46 69 6c 74 65 72 73 20 74 68 65 20 hname.=.string.```..Filters.the.
b5e0 67 69 76 65 6e 20 61 72 72 61 79 20 6f 66 20 70 61 74 68 6e 61 6d 65 73 2c 20 61 6e 64 20 72 65 given.array.of.pathnames,.and.re
b600 74 75 72 6e 73 20 74 68 65 20 66 69 6c 74 65 72 65 64 20 61 72 72 61 79 2e 0a 0a 2d 20 2a 2a 70 turns.the.filtered.array...-.**p
b620 61 74 68 73 2a 2a 20 60 41 72 72 61 79 2e 3c 50 61 74 68 6e 61 6d 65 3e 60 20 54 68 65 20 61 72 aths**.`Array.<Pathname>`.The.ar
b640 72 61 79 20 6f 66 20 60 70 61 74 68 6e 61 6d 65 60 73 20 74 6f 20 62 65 20 66 69 6c 74 65 72 65 ray.of.`pathname`s.to.be.filtere
b660 64 2e 0a 0a 23 23 23 20 60 50 61 74 68 6e 61 6d 65 60 20 43 6f 6e 76 65 6e 74 69 6f 6e 73 3a 0a d...###.`Pathname`.Conventions:.
b680 0a 23 23 23 23 20 31 2e 20 60 50 61 74 68 6e 61 6d 65 60 20 73 68 6f 75 6c 64 20 62 65 20 61 20 .####.1..`Pathname`.should.be.a.
b6a0 60 70 61 74 68 2e 72 65 6c 61 74 69 76 65 28 29 60 64 20 70 61 74 68 6e 61 6d 65 0a 0a 60 50 61 `path.relative()`d.pathname..`Pa
b6c0 74 68 6e 61 6d 65 60 20 73 68 6f 75 6c 64 20 62 65 20 61 20 73 74 72 69 6e 67 20 74 68 61 74 20 thname`.should.be.a.string.that.
b6e0 68 61 76 65 20 62 65 65 6e 20 60 70 61 74 68 2e 6a 6f 69 6e 28 29 60 65 64 2c 20 6f 72 20 74 68 have.been.`path.join()`ed,.or.th
b700 65 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20 6f 66 20 60 70 61 74 68 2e 72 65 6c 61 74 69 76 65 e.return.value.of.`path.relative
b720 28 29 60 20 74 6f 20 74 68 65 20 63 75 72 72 65 6e 74 20 64 69 72 65 63 74 6f 72 79 2c 0a 0a 60 ()`.to.the.current.directory,..`
b740 60 60 6a 73 0a 2f 2f 20 57 52 4f 4e 47 2c 20 61 6e 20 65 72 72 6f 72 20 77 69 6c 6c 20 62 65 20 ``js.//.WRONG,.an.error.will.be.
b760 74 68 72 6f 77 6e 0a 69 67 2e 69 67 6e 6f 72 65 73 28 27 2e 2f 61 62 63 27 29 0a 0a 2f 2f 20 57 thrown.ig.ignores('./abc')..//.W
b780 52 4f 4e 47 2c 20 66 6f 72 20 69 74 20 77 69 6c 6c 20 6e 65 76 65 72 20 68 61 70 70 65 6e 2c 20 RONG,.for.it.will.never.happen,.
b7a0 61 6e 64 20 61 6e 20 65 72 72 6f 72 20 77 69 6c 6c 20 62 65 20 74 68 72 6f 77 6e 0a 2f 2f 20 49 and.an.error.will.be.thrown.//.I
b7c0 66 20 74 68 65 20 67 69 74 69 67 6e 6f 72 65 20 72 75 6c 65 20 6c 6f 63 61 74 65 73 20 61 74 20 f.the.gitignore.rule.locates.at.
b7e0 74 68 65 20 72 6f 6f 74 20 64 69 72 65 63 74 6f 72 79 2c 0a 2f 2f 20 60 27 2f 61 62 63 27 60 20 the.root.directory,.//.`'/abc'`.
b800 73 68 6f 75 6c 64 20 62 65 20 63 68 61 6e 67 65 64 20 74 6f 20 60 27 61 62 63 27 60 2e 0a 2f 2f should.be.changed.to.`'abc'`..//
b820 20 60 60 60 0a 2f 2f 20 70 61 74 68 2e 72 65 6c 61 74 69 76 65 28 27 2f 27 2c 20 27 2f 61 62 63 .```.//.path.relative('/',.'/abc
b840 27 29 20 20 2d 3e 20 27 61 62 63 27 0a 2f 2f 20 60 60 60 0a 69 67 2e 69 67 6e 6f 72 65 73 28 27 ')..->.'abc'.//.```.ig.ignores('
b860 2f 61 62 63 27 29 0a 0a 2f 2f 20 57 52 4f 4e 47 2c 20 74 68 61 74 20 69 74 20 69 73 20 61 6e 20 /abc')..//.WRONG,.that.it.is.an.
b880 61 62 73 6f 6c 75 74 65 20 70 61 74 68 20 6f 6e 20 57 69 6e 64 6f 77 73 2c 20 61 6e 20 65 72 72 absolute.path.on.Windows,.an.err
b8a0 6f 72 20 77 69 6c 6c 20 62 65 20 74 68 72 6f 77 6e 0a 69 67 2e 69 67 6e 6f 72 65 73 28 27 43 3a or.will.be.thrown.ig.ignores('C:
b8c0 5c 5c 61 62 63 27 29 0a 0a 2f 2f 20 52 69 67 68 74 0a 69 67 2e 69 67 6e 6f 72 65 73 28 27 61 62 \\abc')..//.Right.ig.ignores('ab
b8e0 63 27 29 0a 0a 2f 2f 20 52 69 67 68 74 0a 69 67 2e 69 67 6e 6f 72 65 73 28 70 61 74 68 2e 6a 6f c')..//.Right.ig.ignores(path.jo
b900 69 6e 28 27 2e 2f 61 62 63 27 29 29 20 20 2f 2f 20 70 61 74 68 2e 6a 6f 69 6e 28 27 2e 2f 61 62 in('./abc'))..//.path.join('./ab
b920 63 27 29 20 2d 3e 20 27 61 62 63 27 0a 60 60 60 0a 0a 49 6e 20 6f 74 68 65 72 20 77 6f 72 64 73 c').->.'abc'.```..In.other.words
b940 2c 20 65 61 63 68 20 60 50 61 74 68 6e 61 6d 65 60 20 68 65 72 65 20 73 68 6f 75 6c 64 20 62 65 ,.each.`Pathname`.here.should.be
b960 20 61 20 72 65 6c 61 74 69 76 65 20 70 61 74 68 20 74 6f 20 74 68 65 20 64 69 72 65 63 74 6f 72 .a.relative.path.to.the.director
b980 79 20 6f 66 20 74 68 65 20 67 69 74 69 67 6e 6f 72 65 20 72 75 6c 65 73 2e 0a 0a 53 75 70 70 6f y.of.the.gitignore.rules...Suppo
b9a0 73 65 20 74 68 65 20 64 69 72 20 73 74 72 75 63 74 75 72 65 20 69 73 3a 0a 0a 60 60 60 0a 2f 70 se.the.dir.structure.is:..```./p
b9c0 61 74 68 2f 74 6f 2f 79 6f 75 72 2f 72 65 70 6f 0a 20 20 20 20 7c 2d 2d 20 61 0a 20 20 20 20 7c ath/to/your/repo.....|--.a.....|
b9e0 20 20 20 7c 2d 2d 20 61 2e 6a 73 0a 20 20 20 20 7c 0a 20 20 20 20 7c 2d 2d 20 2e 62 0a 20 20 20 ...|--.a.js.....|.....|--..b....
ba00 20 7c 0a 20 20 20 20 7c 2d 2d 20 2e 63 0a 20 20 20 20 20 20 20 20 20 7c 2d 2d 20 2e 44 53 5f 73 .|.....|--..c..........|--..DS_s
ba20 74 6f 72 65 0a 60 60 60 0a 0a 54 68 65 6e 20 74 68 65 20 60 70 61 74 68 73 60 20 6d 69 67 68 74 tore.```..Then.the.`paths`.might
ba40 20 62 65 20 6c 69 6b 65 20 74 68 69 73 3a 0a 0a 60 60 60 6a 73 0a 5b 0a 20 20 27 61 2f 61 2e 6a .be.like.this:..```js.[...'a/a.j
ba60 73 27 0a 20 20 27 2e 62 27 2c 0a 20 20 27 2e 63 2f 2e 44 53 5f 73 74 6f 72 65 27 0a 5d 0a 60 60 s'...'.b',...'.c/.DS_store'.].``
ba80 60 0a 0a 23 23 23 23 20 32 2e 20 66 69 6c 65 6e 61 6d 65 73 20 61 6e 64 20 64 69 72 6e 61 6d 65 `..####.2..filenames.and.dirname
baa0 73 0a 0a 60 6e 6f 64 65 2d 69 67 6e 6f 72 65 60 20 64 6f 65 73 20 4e 4f 20 60 66 73 2e 73 74 61 s..`node-ignore`.does.NO.`fs.sta
bac0 74 60 20 64 75 72 69 6e 67 20 70 61 74 68 20 6d 61 74 63 68 69 6e 67 2c 20 73 6f 20 66 6f 72 20 t`.during.path.matching,.so.for.
bae0 74 68 65 20 65 78 61 6d 70 6c 65 20 62 65 6c 6f 77 3a 0a 0a 60 60 60 6a 73 0a 2f 2f 20 46 69 72 the.example.below:..```js.//.Fir
bb00 73 74 2c 20 77 65 20 61 64 64 20 61 20 69 67 6e 6f 72 65 20 70 61 74 74 65 72 6e 20 74 6f 20 69 st,.we.add.a.ignore.pattern.to.i
bb20 67 6e 6f 72 65 20 61 20 64 69 72 65 63 74 6f 72 79 0a 69 67 2e 61 64 64 28 27 63 6f 6e 66 69 67 gnore.a.directory.ig.add('config
bb40 2f 27 29 0a 0a 2f 2f 20 60 69 67 60 20 64 6f 65 73 20 4e 4f 54 20 6b 6e 6f 77 20 69 66 20 27 63 /')..//.`ig`.does.NOT.know.if.'c
bb60 6f 6e 66 69 67 27 2c 20 69 6e 20 74 68 65 20 72 65 61 6c 20 77 6f 72 6c 64 2c 0a 2f 2f 20 20 20 onfig',.in.the.real.world,.//...
bb80 69 73 20 61 20 6e 6f 72 6d 61 6c 20 66 69 6c 65 2c 20 64 69 72 65 63 74 6f 72 79 20 6f 72 20 73 is.a.normal.file,.directory.or.s
bba0 6f 6d 65 74 68 69 6e 67 2e 0a 0a 69 67 2e 69 67 6e 6f 72 65 73 28 27 63 6f 6e 66 69 67 27 29 0a omething...ig.ignores('config').
bbc0 2f 2f 20 60 69 67 60 20 74 72 65 61 74 73 20 60 63 6f 6e 66 69 67 60 20 61 73 20 61 20 66 69 6c //.`ig`.treats.`config`.as.a.fil
bbe0 65 2c 20 73 6f 20 69 74 20 72 65 74 75 72 6e 73 20 60 66 61 6c 73 65 60 0a 0a 69 67 2e 69 67 6e e,.so.it.returns.`false`..ig.ign
bc00 6f 72 65 73 28 27 63 6f 6e 66 69 67 2f 27 29 0a 2f 2f 20 72 65 74 75 72 6e 73 20 60 74 72 75 65 ores('config/').//.returns.`true
bc20 60 0a 60 60 60 0a 0a 53 70 65 63 69 61 6c 6c 79 20 66 6f 72 20 70 65 6f 70 6c 65 20 77 68 6f 20 `.```..Specially.for.people.who.
bc40 64 65 76 65 6c 6f 70 20 73 6f 6d 65 20 6c 69 62 72 61 72 79 20 62 61 73 65 64 20 6f 6e 20 60 6e develop.some.library.based.on.`n
bc60 6f 64 65 2d 69 67 6e 6f 72 65 60 2c 20 69 74 20 69 73 20 69 6d 70 6f 72 74 61 6e 74 20 74 6f 20 ode-ignore`,.it.is.important.to.
bc80 75 6e 64 65 72 73 74 61 6e 64 20 74 68 61 74 2e 0a 0a 55 73 75 61 6c 6c 79 2c 20 79 6f 75 20 63 understand.that...Usually,.you.c
bca0 6f 75 6c 64 20 75 73 65 20 5b 60 67 6c 6f 62 60 5d 28 68 74 74 70 3a 2f 2f 6e 70 6d 6a 73 2e 6f ould.use.[`glob`](http://npmjs.o
bcc0 72 67 2f 70 61 63 6b 61 67 65 2f 67 6c 6f 62 29 20 77 69 74 68 20 60 6f 70 74 69 6f 6e 2e 6d 61 rg/package/glob).with.`option.ma
bce0 72 6b 20 3d 20 74 72 75 65 60 20 74 6f 20 66 65 74 63 68 20 74 68 65 20 73 74 72 75 63 74 75 72 rk.=.true`.to.fetch.the.structur
bd00 65 20 6f 66 20 74 68 65 20 63 75 72 72 65 6e 74 20 64 69 72 65 63 74 6f 72 79 3a 0a 0a 60 60 60 e.of.the.current.directory:..```
bd20 6a 73 0a 69 6d 70 6f 72 74 20 67 6c 6f 62 20 66 72 6f 6d 20 27 67 6c 6f 62 27 0a 0a 67 6c 6f 62 js.import.glob.from.'glob'..glob
bd40 28 27 2a 2a 27 2c 20 7b 0a 20 20 2f 2f 20 41 64 64 73 20 61 20 2f 20 63 68 61 72 61 63 74 65 72 ('**',.{...//.Adds.a./.character
bd60 20 74 6f 20 64 69 72 65 63 74 6f 72 79 20 6d 61 74 63 68 65 73 2e 0a 20 20 6d 61 72 6b 3a 20 74 .to.directory.matches....mark:.t
bd80 72 75 65 0a 7d 2c 20 28 65 72 72 2c 20 66 69 6c 65 73 29 20 3d 3e 20 7b 0a 20 20 69 66 20 28 65 rue.},.(err,.files).=>.{...if.(e
bda0 72 72 29 20 7b 0a 20 20 20 20 72 65 74 75 72 6e 20 63 6f 6e 73 6f 6c 65 2e 65 72 72 6f 72 28 65 rr).{.....return.console.error(e
bdc0 72 72 29 0a 20 20 7d 0a 0a 20 20 6c 65 74 20 66 69 6c 74 65 72 65 64 20 3d 20 69 67 6e 6f 72 65 rr)...}....let.filtered.=.ignore
bde0 28 29 2e 61 64 64 28 70 61 74 74 65 72 6e 73 29 2e 66 69 6c 74 65 72 28 66 69 6c 65 73 29 0a 20 ().add(patterns).filter(files)..
be00 20 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 28 66 69 6c 74 65 72 65 64 29 0a 7d 29 0a 60 60 60 0a 0a 23 .console.log(filtered).}).```..#
be20 23 20 2e 69 67 6e 6f 72 65 73 28 70 61 74 68 6e 61 6d 65 3a 20 50 61 74 68 6e 61 6d 65 29 3a 20 #..ignores(pathname:.Pathname):.
be40 62 6f 6f 6c 65 61 6e 0a 0a 3e 20 6e 65 77 20 69 6e 20 33 2e 32 2e 30 0a 0a 52 65 74 75 72 6e 73 boolean..>.new.in.3.2.0..Returns
be60 20 60 42 6f 6f 6c 65 61 6e 60 20 77 68 65 74 68 65 72 20 60 70 61 74 68 6e 61 6d 65 60 20 73 68 .`Boolean`.whether.`pathname`.sh
be80 6f 75 6c 64 20 62 65 20 69 67 6e 6f 72 65 64 2e 0a 0a 60 60 60 6a 73 0a 69 67 2e 69 67 6e 6f 72 ould.be.ignored...```js.ig.ignor
bea0 65 73 28 27 2e 61 62 63 2f 61 2e 6a 73 27 29 20 20 20 20 2f 2f 20 74 72 75 65 0a 60 60 60 0a 0a es('.abc/a.js')....//.true.```..
bec0 23 23 20 2e 63 72 65 61 74 65 46 69 6c 74 65 72 28 29 0a 0a 43 72 65 61 74 65 73 20 61 20 66 69 ##..createFilter()..Creates.a.fi
bee0 6c 74 65 72 20 66 75 6e 63 74 69 6f 6e 20 77 68 69 63 68 20 63 6f 75 6c 64 20 66 69 6c 74 65 72 lter.function.which.could.filter
bf00 20 61 6e 20 61 72 72 61 79 20 6f 66 20 70 61 74 68 73 20 77 69 74 68 20 60 41 72 72 61 79 2e 70 .an.array.of.paths.with.`Array.p
bf20 72 6f 74 6f 74 79 70 65 2e 66 69 6c 74 65 72 60 2e 0a 0a 52 65 74 75 72 6e 73 20 60 66 75 6e 63 rototype.filter`...Returns.`func
bf40 74 69 6f 6e 28 70 61 74 68 29 60 20 74 68 65 20 66 69 6c 74 65 72 20 66 75 6e 63 74 69 6f 6e 2e tion(path)`.the.filter.function.
bf60 0a 0a 23 23 20 2e 74 65 73 74 28 70 61 74 68 6e 61 6d 65 3a 20 50 61 74 68 6e 61 6d 65 29 20 73 ..##..test(pathname:.Pathname).s
bf80 69 6e 63 65 20 35 2e 30 2e 30 0a 0a 52 65 74 75 72 6e 73 20 60 54 65 73 74 52 65 73 75 6c 74 60 ince.5.0.0..Returns.`TestResult`
bfa0 0a 0a 60 60 60 74 73 0a 69 6e 74 65 72 66 61 63 65 20 54 65 73 74 52 65 73 75 6c 74 20 7b 0a 20 ..```ts.interface.TestResult.{..
bfc0 20 69 67 6e 6f 72 65 64 3a 20 62 6f 6f 6c 65 61 6e 0a 20 20 2f 2f 20 74 72 75 65 20 69 66 20 74 .ignored:.boolean...//.true.if.t
bfe0 68 65 20 60 70 61 74 68 6e 61 6d 65 60 20 69 73 20 66 69 6e 61 6c 6c 79 20 75 6e 69 67 6e 6f 72 he.`pathname`.is.finally.unignor
c000 65 64 20 62 79 20 73 6f 6d 65 20 6e 65 67 61 74 69 76 65 20 70 61 74 74 65 72 6e 0a 20 20 75 6e ed.by.some.negative.pattern...un
c020 69 67 6e 6f 72 65 64 3a 20 62 6f 6f 6c 65 61 6e 0a 7d 0a 60 60 60 0a 0a 2d 20 60 7b 69 67 6e 6f ignored:.boolean.}.```..-.`{igno
c040 72 65 64 3a 20 74 72 75 65 2c 20 75 6e 69 67 6e 6f 72 65 64 3a 20 66 61 6c 73 65 7d 60 3a 20 74 red:.true,.unignored:.false}`:.t
c060 68 65 20 60 70 61 74 68 6e 61 6d 65 60 20 69 73 20 69 67 6e 6f 72 65 64 0a 2d 20 60 7b 69 67 6e he.`pathname`.is.ignored.-.`{ign
c080 6f 72 65 64 3a 20 66 61 6c 73 65 2c 20 75 6e 69 67 6e 6f 72 65 64 3a 20 74 72 75 65 7d 60 3a 20 ored:.false,.unignored:.true}`:.
c0a0 74 68 65 20 60 70 61 74 68 6e 61 6d 65 60 20 69 73 20 75 6e 69 67 6e 6f 72 65 64 0a 2d 20 60 7b the.`pathname`.is.unignored.-.`{
c0c0 69 67 6e 6f 72 65 64 3a 20 66 61 6c 73 65 2c 20 75 6e 69 67 6e 6f 72 65 64 3a 20 66 61 6c 73 65 ignored:.false,.unignored:.false
c0e0 7d 60 3a 20 74 68 65 20 60 70 61 74 68 6e 61 6d 65 60 20 69 73 20 6e 65 76 65 72 20 6d 61 74 63 }`:.the.`pathname`.is.never.matc
c100 68 65 64 20 62 79 20 61 6e 79 20 69 67 6e 6f 72 65 20 72 75 6c 65 73 2e 0a 0a 23 23 20 60 6f 70 hed.by.any.ignore.rules...##.`op
c120 74 69 6f 6e 73 2e 69 67 6e 6f 72 65 63 61 73 65 60 20 73 69 6e 63 65 20 34 2e 30 2e 30 0a 0a 53 tions.ignorecase`.since.4.0.0..S
c140 69 6d 69 6c 61 72 20 61 73 20 74 68 65 20 60 63 6f 72 65 2e 69 67 6e 6f 72 65 63 61 73 65 60 20 imilar.as.the.`core.ignorecase`.
c160 6f 70 74 69 6f 6e 20 6f 66 20 5b 67 69 74 2d 63 6f 6e 66 69 67 5d 28 68 74 74 70 73 3a 2f 2f 67 option.of.[git-config](https://g
c180 69 74 2d 73 63 6d 2e 63 6f 6d 2f 64 6f 63 73 2f 67 69 74 2d 63 6f 6e 66 69 67 29 2c 20 60 6e 6f it-scm.com/docs/git-config),.`no
c1a0 64 65 2d 69 67 6e 6f 72 65 60 20 77 69 6c 6c 20 62 65 20 63 61 73 65 20 69 6e 73 65 6e 73 69 74 de-ignore`.will.be.case.insensit
c1c0 69 76 65 20 69 66 20 60 6f 70 74 69 6f 6e 73 2e 69 67 6e 6f 72 65 63 61 73 65 60 20 69 73 20 73 ive.if.`options.ignorecase`.is.s
c1e0 65 74 20 74 6f 20 60 74 72 75 65 60 20 28 74 68 65 20 64 65 66 61 75 6c 74 20 76 61 6c 75 65 29 et.to.`true`.(the.default.value)
c200 2c 20 6f 74 68 65 72 77 69 73 65 20 63 61 73 65 20 73 65 6e 73 69 74 69 76 65 2e 0a 0a 60 60 60 ,.otherwise.case.sensitive...```
c220 6a 73 0a 63 6f 6e 73 74 20 69 67 20 3d 20 69 67 6e 6f 72 65 28 7b 0a 20 20 69 67 6e 6f 72 65 63 js.const.ig.=.ignore({...ignorec
c240 61 73 65 3a 20 66 61 6c 73 65 0a 7d 29 0a 0a 69 67 2e 61 64 64 28 27 2a 2e 70 6e 67 27 29 0a 0a ase:.false.})..ig.add('*.png')..
c260 69 67 2e 69 67 6e 6f 72 65 73 28 27 2a 2e 50 4e 47 27 29 20 20 2f 2f 20 66 61 6c 73 65 0a 60 60 ig.ignores('*.PNG')..//.false.``
c280 60 0a 0a 23 23 20 73 74 61 74 69 63 20 60 69 67 6e 6f 72 65 2e 69 73 50 61 74 68 56 61 6c 69 64 `..##.static.`ignore.isPathValid
c2a0 28 70 61 74 68 6e 61 6d 65 29 3a 20 62 6f 6f 6c 65 61 6e 60 20 73 69 6e 63 65 20 35 2e 30 2e 30 (pathname):.boolean`.since.5.0.0
c2c0 0a 0a 43 68 65 63 6b 20 77 68 65 74 68 65 72 20 74 68 65 20 60 70 61 74 68 6e 61 6d 65 60 20 69 ..Check.whether.the.`pathname`.i
c2e0 73 20 61 6e 20 76 61 6c 69 64 20 60 70 61 74 68 2e 72 65 6c 61 74 69 76 65 28 29 60 64 20 70 61 s.an.valid.`path.relative()`d.pa
c300 74 68 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 65 20 5b 63 6f 6e 76 65 6e 74 69 6f 6e 5d th.according.to.the.[convention]
c320 28 23 31 2d 70 61 74 68 6e 61 6d 65 2d 73 68 6f 75 6c 64 2d 62 65 2d 61 2d 70 61 74 68 72 65 6c (#1-pathname-should-be-a-pathrel
c340 61 74 69 76 65 64 2d 70 61 74 68 6e 61 6d 65 29 2e 0a 0a 54 68 69 73 20 6d 65 74 68 6f 64 20 69 atived-pathname)...This.method.i
c360 73 20 2a 2a 4e 4f 54 2a 2a 20 75 73 65 64 20 74 6f 20 63 68 65 63 6b 20 69 66 20 61 6e 20 69 67 s.**NOT**.used.to.check.if.an.ig
c380 6e 6f 72 65 20 70 61 74 74 65 72 6e 20 69 73 20 76 61 6c 69 64 2e 0a 0a 60 60 60 6a 73 0a 69 67 nore.pattern.is.valid...```js.ig
c3a0 6e 6f 72 65 2e 69 73 50 61 74 68 56 61 6c 69 64 28 27 2e 2f 66 6f 6f 27 29 20 20 2f 2f 20 66 61 nore.isPathValid('./foo')..//.fa
c3c0 6c 73 65 0a 60 60 60 0a 0a 2a 2a 2a 2a 0a 0a 23 20 55 70 67 72 61 64 65 20 47 75 69 64 65 0a 0a lse.```..****..#.Upgrade.Guide..
c3e0 23 23 20 55 70 67 72 61 64 65 20 34 2e 78 20 2d 3e 20 35 2e 78 0a 0a 53 69 6e 63 65 20 60 35 2e ##.Upgrade.4.x.->.5.x..Since.`5.
c400 30 2e 30 60 2c 20 69 66 20 61 6e 20 69 6e 76 61 6c 69 64 20 60 50 61 74 68 6e 61 6d 65 60 20 70 0.0`,.if.an.invalid.`Pathname`.p
c420 61 73 73 65 64 20 69 6e 74 6f 20 60 69 67 2e 69 67 6e 6f 72 65 73 28 29 60 2c 20 61 6e 20 65 72 assed.into.`ig.ignores()`,.an.er
c440 72 6f 72 20 77 69 6c 6c 20 62 65 20 74 68 72 6f 77 6e 2c 20 77 68 69 6c 65 20 60 69 67 6e 6f 72 ror.will.be.thrown,.while.`ignor
c460 65 20 3c 20 35 2e 30 2e 30 60 20 64 69 64 20 6e 6f 74 20 6d 61 6b 65 20 73 75 72 65 20 77 68 61 e.<.5.0.0`.did.not.make.sure.wha
c480 74 20 74 68 65 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20 77 61 73 2c 20 61 73 20 77 65 6c 6c 20 t.the.return.value.was,.as.well.
c4a0 61 73 0a 0a 60 60 60 74 73 0a 2e 69 67 6e 6f 72 65 73 28 70 61 74 68 6e 61 6d 65 3a 20 50 61 74 as..```ts..ignores(pathname:.Pat
c4c0 68 6e 61 6d 65 29 3a 20 62 6f 6f 6c 65 61 6e 0a 0a 2e 66 69 6c 74 65 72 28 70 61 74 68 6e 61 6d hname):.boolean...filter(pathnam
c4e0 65 73 3a 20 41 72 72 61 79 3c 50 61 74 68 6e 61 6d 65 3e 29 3a 20 41 72 72 61 79 3c 50 61 74 68 es:.Array<Pathname>):.Array<Path
c500 6e 61 6d 65 3e 0a 0a 2e 63 72 65 61 74 65 46 69 6c 74 65 72 28 29 3a 20 28 70 61 74 68 6e 61 6d name>...createFilter():.(pathnam
c520 65 3a 20 50 61 74 68 6e 61 6d 65 29 20 3d 3e 20 62 6f 6f 6c 65 61 6e 0a 0a 2e 74 65 73 74 28 70 e:.Pathname).=>.boolean...test(p
c540 61 74 68 6e 61 6d 65 3a 20 50 61 74 68 6e 61 6d 65 29 3a 20 7b 69 67 6e 6f 72 65 64 3a 20 62 6f athname:.Pathname):.{ignored:.bo
c560 6f 6c 65 61 6e 2c 20 75 6e 69 67 6e 6f 72 65 64 3a 20 62 6f 6f 6c 65 61 6e 7d 0a 60 60 60 0a 0a olean,.unignored:.boolean}.```..
c580 53 65 65 20 74 68 65 20 63 6f 6e 76 65 6e 74 69 6f 6e 20 5b 68 65 72 65 5d 28 23 31 2d 70 61 74 See.the.convention.[here](#1-pat
c5a0 68 6e 61 6d 65 2d 73 68 6f 75 6c 64 2d 62 65 2d 61 2d 70 61 74 68 72 65 6c 61 74 69 76 65 64 2d hname-should-be-a-pathrelatived-
c5c0 70 61 74 68 6e 61 6d 65 29 20 66 6f 72 20 64 65 74 61 69 6c 73 2e 0a 0a 49 66 20 74 68 65 72 65 pathname).for.details...If.there
c5e0 20 61 72 65 20 69 6e 76 61 6c 69 64 20 70 61 74 68 6e 61 6d 65 73 2c 20 74 68 65 20 63 6f 6e 76 .are.invalid.pathnames,.the.conv
c600 65 72 73 69 6f 6e 20 61 6e 64 20 66 69 6c 74 72 61 74 69 6f 6e 20 73 68 6f 75 6c 64 20 62 65 20 ersion.and.filtration.should.be.
c620 64 6f 6e 65 20 62 79 20 75 73 65 72 73 2e 0a 0a 60 60 60 6a 73 0a 69 6d 70 6f 72 74 20 7b 69 73 done.by.users...```js.import.{is
c640 50 61 74 68 56 61 6c 69 64 7d 20 66 72 6f 6d 20 27 69 67 6e 6f 72 65 27 20 2f 2f 20 69 6e 74 72 PathValid}.from.'ignore'.//.intr
c660 6f 64 75 63 65 64 20 69 6e 20 35 2e 30 2e 30 0a 0a 63 6f 6e 73 74 20 70 61 74 68 73 20 3d 20 5b oduced.in.5.0.0..const.paths.=.[
c680 0a 20 20 2f 2f 20 69 6e 76 61 6c 69 64 0a 20 20 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f ...//.invalid...////////////////
c6a0 2f 2f 0a 20 20 27 27 2c 0a 20 20 66 61 6c 73 65 2c 0a 20 20 27 2e 2e 2f 66 6f 6f 27 2c 0a 20 20 //...'',...false,...'../foo',...
c6c0 27 2e 27 2c 0a 20 20 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f 2f 0a 0a 20 20 2f 2f 20 '.',...//////////////////....//.
c6e0 76 61 6c 69 64 0a 20 20 27 66 6f 6f 27 0a 5d 0a 2e 66 69 6c 74 65 72 28 69 73 56 61 6c 69 64 50 valid...'foo'.]..filter(isValidP
c700 61 74 68 29 0a 0a 69 67 2e 66 69 6c 74 65 72 28 70 61 74 68 73 29 0a 60 60 60 0a 0a 23 23 20 55 ath)..ig.filter(paths).```..##.U
c720 70 67 72 61 64 65 20 33 2e 78 20 2d 3e 20 34 2e 78 0a 0a 53 69 6e 63 65 20 60 34 2e 30 2e 30 60 pgrade.3.x.->.4.x..Since.`4.0.0`
c740 2c 20 60 69 67 6e 6f 72 65 60 20 77 69 6c 6c 20 6e 6f 20 6c 6f 6e 67 65 72 20 73 75 70 70 6f 72 ,.`ignore`.will.no.longer.suppor
c760 74 20 6e 6f 64 65 20 3c 20 36 2c 20 74 6f 20 75 73 65 20 60 69 67 6e 6f 72 65 60 20 69 6e 20 6e t.node.<.6,.to.use.`ignore`.in.n
c780 6f 64 65 20 3c 20 36 3a 0a 0a 60 60 60 6a 73 0a 76 61 72 20 69 67 6e 6f 72 65 20 3d 20 72 65 71 ode.<.6:..```js.var.ignore.=.req
c7a0 75 69 72 65 28 27 69 67 6e 6f 72 65 2f 6c 65 67 61 63 79 27 29 0a 60 60 60 0a 0a 23 23 20 55 70 uire('ignore/legacy').```..##.Up
c7c0 67 72 61 64 65 20 32 2e 78 20 2d 3e 20 33 2e 78 0a 0a 2d 20 41 6c 6c 20 60 6f 70 74 69 6f 6e 73 grade.2.x.->.3.x..-.All.`options
c7e0 60 20 6f 66 20 32 2e 78 20 61 72 65 20 75 6e 6e 65 63 65 73 73 61 72 79 20 61 6e 64 20 72 65 6d `.of.2.x.are.unnecessary.and.rem
c800 6f 76 65 64 2c 20 73 6f 20 6a 75 73 74 20 72 65 6d 6f 76 65 20 74 68 65 6d 2e 0a 2d 20 60 69 67 oved,.so.just.remove.them..-.`ig
c820 6e 6f 72 65 28 29 60 20 69 6e 73 74 61 6e 63 65 20 69 73 20 6e 6f 20 6c 6f 6e 67 65 72 20 61 6e nore()`.instance.is.no.longer.an
c840 20 5b 60 45 76 65 6e 74 45 6d 69 74 74 65 72 60 5d 28 6e 6f 64 65 6a 73 2e 6f 72 67 2f 61 70 69 .[`EventEmitter`](nodejs.org/api
c860 2f 65 76 65 6e 74 73 2e 68 74 6d 6c 29 2c 20 61 6e 64 20 61 6c 6c 20 65 76 65 6e 74 73 20 61 72 /events.html),.and.all.events.ar
c880 65 20 75 6e 6e 65 63 65 73 73 61 72 79 20 61 6e 64 20 72 65 6d 6f 76 65 64 2e 0a 2d 20 60 2e 61 e.unnecessary.and.removed..-.`.a
c8a0 64 64 49 67 6e 6f 72 65 46 69 6c 65 28 29 60 20 69 73 20 72 65 6d 6f 76 65 64 2c 20 73 65 65 20 ddIgnoreFile()`.is.removed,.see.
c8c0 74 68 65 20 5b 2e 61 64 64 49 67 6e 6f 72 65 46 69 6c 65 5d 28 23 61 64 64 69 67 6e 6f 72 65 66 the.[.addIgnoreFile](#addignoref
c8e0 69 6c 65 70 61 74 68 29 20 73 65 63 74 69 6f 6e 20 66 6f 72 20 64 65 74 61 69 6c 73 2e 0a 0a 2a ilepath).section.for.details...*
c900 2a 2a 2a 0a 0a 23 20 43 6f 6c 6c 61 62 6f 72 61 74 6f 72 73 0a 0a 2d 20 5b 40 77 68 69 74 65 63 ***..#.Collaborators..-.[@whitec
c920 6f 6c 6f 72 5d 28 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 77 68 69 74 65 63 6f olor](https://github.com/whiteco
c940 6c 6f 72 29 20 2a 41 6c 65 78 2a 0a 2d 20 5b 40 53 61 6d 79 50 65 73 73 65 5d 28 68 74 74 70 73 lor).*Alex*.-.[@SamyPesse](https
c960 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 53 61 6d 79 50 65 73 73 65 29 20 2a 53 61 6d 79 20 50 ://github.com/SamyPesse).*Samy.P
c980 65 73 73 c3 a9 2a 0a 2d 20 5b 40 61 7a 70 72 6f 64 75 63 74 69 6f 6e 5d 28 68 74 74 70 73 3a 2f ess..*.-.[@azproduction](https:/
c9a0 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 61 7a 70 72 6f 64 75 63 74 69 6f 6e 29 20 2a 4d 69 6b 68 61 /github.com/azproduction).*Mikha
c9c0 69 6c 20 44 61 76 79 64 6f 76 2a 0a 2d 20 5b 40 54 72 79 53 6f 75 6e 64 5d 28 68 74 74 70 73 3a il.Davydov*.-.[@TrySound](https:
c9e0 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 54 72 79 53 6f 75 6e 64 29 20 2a 42 6f 67 64 61 6e 20 43 //github.com/TrySound).*Bogdan.C
ca00 68 61 64 6b 69 6e 2a 0a 2d 20 5b 40 4a 61 6e 4d 61 74 74 6e 65 72 5d 28 68 74 74 70 73 3a 2f 2f hadkin*.-.[@JanMattner](https://
ca20 67 69 74 68 75 62 2e 63 6f 6d 2f 4a 61 6e 4d 61 74 74 6e 65 72 29 20 2a 4a 61 6e 20 4d 61 74 74 github.com/JanMattner).*Jan.Matt
ca40 6e 65 72 2a 0a 2d 20 5b 40 6e 74 77 62 5d 28 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 6f ner*.-.[@ntwb](https://github.co
ca60 6d 2f 6e 74 77 62 29 20 2a 53 74 65 70 68 65 6e 20 45 64 67 61 72 2a 0a 2d 20 5b 40 6b 61 73 70 m/ntwb).*Stephen.Edgar*.-.[@kasp
ca80 65 72 69 73 61 67 65 72 5d 28 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 6b 61 73 erisager](https://github.com/kas
caa0 70 65 72 69 73 61 67 65 72 29 20 2a 4b 61 73 70 65 72 20 49 73 61 67 65 72 2a 0a 2d 20 5b 40 73 perisager).*Kasper.Isager*.-.[@s
cac0 61 6e 64 65 72 73 6e 5d 28 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 73 61 6e 64 andersn](https://github.com/sand
cae0 65 72 73 6e 29 20 2a 4e 61 74 68 61 6e 20 53 68 69 76 65 6c 79 2d 53 61 6e 64 65 72 73 2a 0a 00 ersn).*Nathan.Shively-Sanders*..
cb00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cb20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cb40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cb60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cb80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cba0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cbc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cbe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cc00 70 61 63 6b 61 67 65 2f 69 6e 64 65 78 2e 64 2e 74 73 00 00 00 00 00 00 00 00 00 00 00 00 00 00 package/index.d.ts..............
cc20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cc40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cc60 00 00 00 00 30 30 30 36 34 34 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30 30 30 30 ....000644..................0000
cc80 30 30 32 37 37 34 20 00 33 35 36 30 31 31 36 36 30 34 20 00 30 31 31 31 37 33 20 00 30 00 00 00 002774..3560116604..011173..0...
cca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ccc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cce0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cd00 00 75 73 74 61 72 00 30 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .ustar.00.......................
cd20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cd40 00 00 00 00 00 00 00 00 00 30 30 30 30 30 30 20 00 30 30 30 30 30 30 20 00 00 00 00 00 00 00 00 .........000000..000000.........
cd60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cd80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cda0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cdc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
cde0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ce00 74 79 70 65 20 50 61 74 68 6e 61 6d 65 20 3d 20 73 74 72 69 6e 67 0a 0a 69 6e 74 65 72 66 61 63 type.Pathname.=.string..interfac
ce20 65 20 54 65 73 74 52 65 73 75 6c 74 20 7b 0a 20 20 69 67 6e 6f 72 65 64 3a 20 62 6f 6f 6c 65 61 e.TestResult.{...ignored:.boolea
ce40 6e 0a 20 20 75 6e 69 67 6e 6f 72 65 64 3a 20 62 6f 6f 6c 65 61 6e 0a 7d 0a 0a 65 78 70 6f 72 74 n...unignored:.boolean.}..export
ce60 20 69 6e 74 65 72 66 61 63 65 20 49 67 6e 6f 72 65 20 7b 0a 20 20 2f 2a 2a 0a 20 20 20 2a 20 41 .interface.Ignore.{.../**....*.A
ce80 64 64 73 20 61 20 72 75 6c 65 20 72 75 6c 65 73 20 74 6f 20 74 68 65 20 63 75 72 72 65 6e 74 20 dds.a.rule.rules.to.the.current.
cea0 6d 61 6e 61 67 65 72 2e 0a 20 20 20 2a 20 40 70 61 72 61 6d 20 20 7b 73 74 72 69 6e 67 20 7c 20 manager.....*.@param..{string.|.
cec0 49 67 6e 6f 72 65 7d 20 70 61 74 74 65 72 6e 0a 20 20 20 2a 20 40 72 65 74 75 72 6e 73 20 49 67 Ignore}.pattern....*.@returns.Ig
cee0 6e 6f 72 65 42 61 73 65 0a 20 20 20 2a 2f 0a 20 20 61 64 64 28 70 61 74 74 65 72 6e 3a 20 73 74 noreBase....*/...add(pattern:.st
cf00 72 69 6e 67 20 7c 20 49 67 6e 6f 72 65 29 3a 20 74 68 69 73 0a 20 20 2f 2a 2a 0a 20 20 20 2a 20 ring.|.Ignore):.this.../**....*.
cf20 41 64 64 73 20 73 65 76 65 72 61 6c 20 72 75 6c 65 73 20 74 6f 20 74 68 65 20 63 75 72 72 65 6e Adds.several.rules.to.the.curren
cf40 74 20 6d 61 6e 61 67 65 72 2e 0a 20 20 20 2a 20 40 70 61 72 61 6d 20 20 7b 73 74 72 69 6e 67 5b t.manager.....*.@param..{string[
cf60 5d 7d 20 70 61 74 74 65 72 6e 73 0a 20 20 20 2a 20 40 72 65 74 75 72 6e 73 20 49 67 6e 6f 72 65 ]}.patterns....*.@returns.Ignore
cf80 42 61 73 65 0a 20 20 20 2a 2f 0a 20 20 61 64 64 28 70 61 74 74 65 72 6e 73 3a 20 28 73 74 72 69 Base....*/...add(patterns:.(stri
cfa0 6e 67 20 7c 20 49 67 6e 6f 72 65 29 5b 5d 29 3a 20 74 68 69 73 0a 0a 20 20 2f 2a 2a 0a 20 20 20 ng.|.Ignore)[]):.this..../**....
cfc0 2a 20 46 69 6c 74 65 72 73 20 74 68 65 20 67 69 76 65 6e 20 61 72 72 61 79 20 6f 66 20 70 61 74 *.Filters.the.given.array.of.pat
cfe0 68 6e 61 6d 65 73 2c 20 61 6e 64 20 72 65 74 75 72 6e 73 20 74 68 65 20 66 69 6c 74 65 72 65 64 hnames,.and.returns.the.filtered
d000 20 61 72 72 61 79 2e 0a 20 20 20 2a 20 4e 4f 54 49 43 45 20 74 68 61 74 20 65 61 63 68 20 70 61 .array.....*.NOTICE.that.each.pa
d020 74 68 20 68 65 72 65 20 73 68 6f 75 6c 64 20 62 65 20 61 20 72 65 6c 61 74 69 76 65 20 70 61 74 th.here.should.be.a.relative.pat
d040 68 20 74 6f 20 74 68 65 20 72 6f 6f 74 20 6f 66 20 79 6f 75 72 20 72 65 70 6f 73 69 74 6f 72 79 h.to.the.root.of.your.repository
d060 2e 0a 20 20 20 2a 20 40 70 61 72 61 6d 20 70 61 74 68 73 20 74 68 65 20 61 72 72 61 79 20 6f 66 .....*.@param.paths.the.array.of
d080 20 70 61 74 68 73 20 74 6f 20 62 65 20 66 69 6c 74 65 72 65 64 2e 0a 20 20 20 2a 20 40 72 65 74 .paths.to.be.filtered.....*.@ret
d0a0 75 72 6e 73 20 54 68 65 20 66 69 6c 74 65 72 65 64 20 61 72 72 61 79 20 6f 66 20 70 61 74 68 73 urns.The.filtered.array.of.paths
d0c0 0a 20 20 20 2a 2f 0a 20 20 66 69 6c 74 65 72 28 70 61 74 68 6e 61 6d 65 73 3a 20 50 61 74 68 6e ....*/...filter(pathnames:.Pathn
d0e0 61 6d 65 5b 5d 29 3a 20 50 61 74 68 6e 61 6d 65 5b 5d 0a 20 20 2f 2a 2a 0a 20 20 20 2a 20 43 72 ame[]):.Pathname[].../**....*.Cr
d100 65 61 74 65 73 20 61 20 66 69 6c 74 65 72 20 66 75 6e 63 74 69 6f 6e 20 77 68 69 63 68 20 63 6f eates.a.filter.function.which.co
d120 75 6c 64 20 66 69 6c 74 65 72 0a 20 20 20 2a 20 61 6e 20 61 72 72 61 79 20 6f 66 20 70 61 74 68 uld.filter....*.an.array.of.path
d140 73 20 77 69 74 68 20 41 72 72 61 79 2e 70 72 6f 74 6f 74 79 70 65 2e 66 69 6c 74 65 72 2e 0a 20 s.with.Array.prototype.filter...
d160 20 20 2a 2f 0a 20 20 63 72 65 61 74 65 46 69 6c 74 65 72 28 29 3a 20 28 70 61 74 68 6e 61 6d 65 ..*/...createFilter():.(pathname
d180 3a 20 50 61 74 68 6e 61 6d 65 29 20 3d 3e 20 62 6f 6f 6c 65 61 6e 0a 0a 20 20 2f 2a 2a 0a 20 20 :.Pathname).=>.boolean..../**...
d1a0 20 2a 20 52 65 74 75 72 6e 73 20 42 6f 6f 6c 65 61 6e 20 77 68 65 74 68 65 72 20 70 61 74 68 6e .*.Returns.Boolean.whether.pathn
d1c0 61 6d 65 20 73 68 6f 75 6c 64 20 62 65 20 69 67 6e 6f 72 65 64 2e 0a 20 20 20 2a 20 40 70 61 72 ame.should.be.ignored.....*.@par
d1e0 61 6d 20 20 7b 73 74 72 69 6e 67 7d 20 70 61 74 68 6e 61 6d 65 20 61 20 70 61 74 68 20 74 6f 20 am..{string}.pathname.a.path.to.
d200 63 68 65 63 6b 0a 20 20 20 2a 20 40 72 65 74 75 72 6e 73 20 62 6f 6f 6c 65 61 6e 0a 20 20 20 2a check....*.@returns.boolean....*
d220 2f 0a 20 20 69 67 6e 6f 72 65 73 28 70 61 74 68 6e 61 6d 65 3a 20 50 61 74 68 6e 61 6d 65 29 3a /...ignores(pathname:.Pathname):
d240 20 62 6f 6f 6c 65 61 6e 0a 0a 20 20 2f 2a 2a 0a 20 20 20 2a 20 52 65 74 75 72 6e 73 20 77 68 65 .boolean..../**....*.Returns.whe
d260 74 68 65 72 20 70 61 74 68 6e 61 6d 65 20 73 68 6f 75 6c 64 20 62 65 20 69 67 6e 6f 72 65 64 20 ther.pathname.should.be.ignored.
d280 6f 72 20 75 6e 69 67 6e 6f 72 65 64 0a 20 20 20 2a 20 40 70 61 72 61 6d 20 20 7b 73 74 72 69 6e or.unignored....*.@param..{strin
d2a0 67 7d 20 70 61 74 68 6e 61 6d 65 20 61 20 70 61 74 68 20 74 6f 20 63 68 65 63 6b 0a 20 20 20 2a g}.pathname.a.path.to.check....*
d2c0 20 40 72 65 74 75 72 6e 73 20 54 65 73 74 52 65 73 75 6c 74 0a 20 20 20 2a 2f 0a 20 20 74 65 73 .@returns.TestResult....*/...tes
d2e0 74 28 70 61 74 68 6e 61 6d 65 3a 20 50 61 74 68 6e 61 6d 65 29 3a 20 54 65 73 74 52 65 73 75 6c t(pathname:.Pathname):.TestResul
d300 74 0a 7d 0a 0a 69 6e 74 65 72 66 61 63 65 20 4f 70 74 69 6f 6e 73 20 7b 0a 20 20 69 67 6e 6f 72 t.}..interface.Options.{...ignor
d320 65 63 61 73 65 3f 3a 20 62 6f 6f 6c 65 61 6e 0a 7d 0a 0a 2f 2a 2a 0a 20 2a 20 43 72 65 61 74 65 ecase?:.boolean.}../**..*.Create
d340 73 20 6e 65 77 20 69 67 6e 6f 72 65 20 6d 61 6e 61 67 65 72 2e 0a 20 2a 2f 0a 64 65 63 6c 61 72 s.new.ignore.manager...*/.declar
d360 65 20 66 75 6e 63 74 69 6f 6e 20 69 67 6e 6f 72 65 28 6f 70 74 69 6f 6e 73 3f 3a 20 4f 70 74 69 e.function.ignore(options?:.Opti
d380 6f 6e 73 29 3a 20 49 67 6e 6f 72 65 0a 0a 64 65 63 6c 61 72 65 20 6e 61 6d 65 73 70 61 63 65 20 ons):.Ignore..declare.namespace.
d3a0 69 67 6e 6f 72 65 20 7b 0a 20 20 65 78 70 6f 72 74 20 66 75 6e 63 74 69 6f 6e 20 69 73 50 61 74 ignore.{...export.function.isPat
d3c0 68 56 61 6c 69 64 20 28 70 61 74 68 6e 61 6d 65 3a 20 73 74 72 69 6e 67 29 3a 20 62 6f 6f 6c 65 hValid.(pathname:.string):.boole
d3e0 61 6e 0a 7d 0a 0a 65 78 70 6f 72 74 20 64 65 66 61 75 6c 74 20 69 67 6e 6f 72 65 0a 00 00 00 00 an.}..export.default.ignore.....
d400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d420 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d440 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d480 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d4a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d4c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d4e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d560 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d5a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d5c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d5e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d620 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d640 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d660 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d680 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d6a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d6c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d6e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d720 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d740 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d7a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d7c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
d7e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................