ofs | hex dump | ascii |
---|
0000 | 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............ |
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 30 30 30 37 36 35 20 00 30 30 30 30 32 34 20 00 30 30 30 30 | ....000644..000765..000024..0000 |
0080 | 30 30 31 31 31 32 20 00 31 32 37 32 37 32 36 37 37 36 36 00 30 31 33 30 33 36 20 00 30 00 00 00 | 001112..12727267766.013036..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 | 7b 0a 20 20 22 6e 61 6d 65 22 3a 20 22 73 74 79 6c 65 2d 73 65 61 72 63 68 22 2c 0a 20 20 22 76 | {..."name":."style-search",..."v |
0220 | 65 72 73 69 6f 6e 22 3a 20 22 30 2e 31 2e 30 22 2c 0a 20 20 22 64 65 73 63 72 69 70 74 69 6f 6e | ersion":."0.1.0",..."description |
0240 | 22 3a 20 22 53 65 61 72 63 68 20 43 53 53 28 2d 6c 69 6b 65 29 20 73 74 72 69 6e 67 73 22 2c 0a | ":."Search.CSS(-like).strings",. |
0260 | 20 20 22 6d 61 69 6e 22 3a 20 22 69 6e 64 65 78 2e 6a 73 22 2c 0a 20 20 22 73 63 72 69 70 74 73 | .."main":."index.js",..."scripts |
0280 | 22 3a 20 7b 0a 20 20 20 20 22 74 65 73 74 22 3a 20 22 74 61 70 65 20 74 65 73 74 2e 6a 73 22 0a | ":.{....."test":."tape.test.js". |
02a0 | 20 20 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 | ..},..."repository":.{....."type |
02c0 | 22 3a 20 22 67 69 74 22 2c 0a 20 20 20 20 22 75 72 6c 22 3a 20 22 67 69 74 2b 68 74 74 70 73 3a | ":."git",....."url":."git+https: |
02e0 | 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 64 61 76 69 64 74 68 65 63 6c 61 72 6b 2f 73 74 79 6c 65 | //github.com/davidtheclark/style |
0300 | 2d 73 65 61 72 63 68 2e 67 69 74 22 0a 20 20 7d 2c 0a 20 20 22 6b 65 79 77 6f 72 64 73 22 3a 20 | -search.git"...},..."keywords":. |
0320 | 5b 0a 20 20 20 20 22 63 73 73 22 2c 0a 20 20 20 20 22 73 65 61 72 63 68 22 2c 0a 20 20 20 20 22 | [....."css",....."search",....." |
0340 | 73 74 79 6c 65 6c 69 6e 74 22 0a 20 20 5d 2c 0a 20 20 22 61 75 74 68 6f 72 22 3a 20 22 44 61 76 | stylelint"...],..."author":."Dav |
0360 | 69 64 20 43 6c 61 72 6b 22 2c 0a 20 20 22 6c 69 63 65 6e 73 65 22 3a 20 22 49 53 43 22 2c 0a 20 | id.Clark",..."license":."ISC",.. |
0380 | 20 22 62 75 67 73 22 3a 20 7b 0a 20 20 20 20 22 75 72 6c 22 3a 20 22 68 74 74 70 73 3a 2f 2f 67 | ."bugs":.{....."url":."https://g |
03a0 | 69 74 68 75 62 2e 63 6f 6d 2f 64 61 76 69 64 74 68 65 63 6c 61 72 6b 2f 73 74 79 6c 65 2d 73 65 | ithub.com/davidtheclark/style-se |
03c0 | 61 72 63 68 2f 69 73 73 75 65 73 22 0a 20 20 7d 2c 0a 20 20 22 68 6f 6d 65 70 61 67 65 22 3a 20 | arch/issues"...},..."homepage":. |
03e0 | 22 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 64 61 76 69 64 74 68 65 63 6c 61 72 | "https://github.com/davidtheclar |
0400 | 6b 2f 73 74 79 6c 65 2d 73 65 61 72 63 68 23 72 65 61 64 6d 65 22 2c 0a 20 20 22 64 65 76 44 65 | k/style-search#readme",..."devDe |
0420 | 70 65 6e 64 65 6e 63 69 65 73 22 3a 20 7b 0a 20 20 20 20 22 74 61 70 65 22 3a 20 22 5e 34 2e 35 | pendencies":.{....."tape":."^4.5 |
0440 | 2e 31 22 0a 20 20 7d 0a 7d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | .1"...}.}....................... |
0460 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0480 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
04a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
04c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
04e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0500 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0520 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0540 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0560 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0580 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
05a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
05c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
05e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0600 | 70 61 63 6b 61 67 65 2f 2e 6e 70 6d 69 67 6e 6f 72 65 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | package/.npmignore.............. |
0620 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0640 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0660 | 00 00 00 00 30 30 30 36 34 34 20 00 30 30 30 37 36 35 20 00 30 30 30 30 32 34 20 00 30 30 30 30 | ....000644..000765..000024..0000 |
0680 | 30 30 30 30 31 35 20 00 31 32 37 32 37 31 34 30 34 32 31 00 30 31 32 35 32 32 20 00 30 00 00 00 | 000015..12727140421.012522..0... |
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 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....................... |
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 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......... |
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 | 6e 6f 64 65 5f 6d 6f 64 75 6c 65 73 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | node_modules.................... |
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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0880 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
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 | 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............... |
0a20 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0a40 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0a60 | 00 00 00 00 30 30 30 36 34 34 20 00 30 30 30 37 36 35 20 00 30 30 30 30 32 34 20 00 30 30 30 30 | ....000644..000765..000024..0000 |
0a80 | 30 30 36 31 37 30 20 00 31 32 37 32 37 32 36 37 36 36 37 00 30 31 32 30 34 30 20 00 30 00 00 00 | 006170..12727267667.012040..0... |
0aa0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0ac0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0ae0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0b00 | 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....................... |
0b20 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0b40 | 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......... |
0b60 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0b80 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0ba0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0bc0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0be0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0c00 | 23 20 73 74 79 6c 65 2d 73 65 61 72 63 68 20 5b 21 5b 43 69 72 63 6c 65 43 49 5d 28 68 74 74 70 | #.style-search.[![CircleCI](http |
0c20 | 73 3a 2f 2f 63 69 72 63 6c 65 63 69 2e 63 6f 6d 2f 67 68 2f 64 61 76 69 64 74 68 65 63 6c 61 72 | s://circleci.com/gh/davidtheclar |
0c40 | 6b 2f 73 74 79 6c 65 2d 73 65 61 72 63 68 2e 73 76 67 3f 73 74 79 6c 65 3d 73 76 67 29 5d 28 68 | k/style-search.svg?style=svg)](h |
0c60 | 74 74 70 73 3a 2f 2f 63 69 72 63 6c 65 63 69 2e 63 6f 6d 2f 67 68 2f 64 61 76 69 64 74 68 65 63 | ttps://circleci.com/gh/davidthec |
0c80 | 6c 61 72 6b 2f 73 74 79 6c 65 2d 73 65 61 72 63 68 29 0a 0a 53 65 61 72 63 68 20 43 53 53 20 28 | lark/style-search)..Search.CSS.( |
0ca0 | 61 6e 64 20 43 53 53 2d 6c 69 6b 65 29 20 73 74 72 69 6e 67 73 2c 20 77 69 74 68 20 73 65 6e 73 | and.CSS-like).strings,.with.sens |
0cc0 | 69 74 69 76 69 74 79 20 74 6f 20 77 68 65 74 68 65 72 20 6d 61 74 63 68 65 73 20 6f 63 63 75 72 | itivity.to.whether.matches.occur |
0ce0 | 20 69 6e 73 69 64 65 20 73 74 72 69 6e 67 73 2c 20 63 6f 6d 6d 65 6e 74 73 2c 20 61 6e 64 20 66 | .inside.strings,.comments,.and.f |
0d00 | 75 6e 63 74 69 6f 6e 73 2e 0a 0a 23 23 20 55 73 61 67 65 0a 0a 60 60 60 6a 73 0a 76 61 72 20 73 | unctions...##.Usage..```js.var.s |
0d20 | 74 79 6c 65 53 65 61 72 63 68 20 3d 20 72 65 71 75 69 72 65 28 27 73 74 79 6c 65 2d 73 65 61 72 | tyleSearch.=.require('style-sear |
0d40 | 63 68 27 29 3b 0a 0a 73 74 79 6c 65 53 65 61 72 63 68 28 6f 70 74 69 6f 6e 73 2c 20 63 61 6c 6c | ch');..styleSearch(options,.call |
0d60 | 62 61 63 6b 29 3b 0a 60 60 60 0a 0a 2a 2a 42 79 20 64 65 66 61 75 6c 74 2c 20 74 68 65 20 73 65 | back);.```..**By.default,.the.se |
0d80 | 61 72 63 68 20 69 67 6e 6f 72 65 73 20 73 74 72 69 6e 67 73 2c 20 63 6f 6d 6d 65 6e 74 73 2c 20 | arch.ignores.strings,.comments,. |
0da0 | 61 6e 64 20 66 75 6e 63 74 69 6f 6e 20 6e 61 6d 65 73 2e 2a 2a 20 59 6f 75 20 63 61 6e 20 75 73 | and.function.names.**.You.can.us |
0dc0 | 65 20 74 68 65 20 6f 70 74 69 6f 6e 73 20 74 6f 20 63 68 61 6e 67 65 20 74 68 69 73 20 62 65 68 | e.the.options.to.change.this.beh |
0de0 | 61 76 69 6f 72 20 6f 72 20 69 6e 74 72 6f 64 75 63 65 20 6f 74 68 65 72 20 72 65 73 74 72 69 63 | avior.or.introduce.other.restric |
0e00 | 74 69 6f 6e 73 2e 20 54 68 61 74 20 69 73 20 77 68 61 74 20 6d 61 6b 65 73 20 74 68 69 73 20 6d | tions..That.is.what.makes.this.m |
0e20 | 6f 64 75 6c 65 20 6d 6f 72 65 20 75 73 65 66 75 6c 20 66 6f 72 20 6d 61 6e 79 20 73 65 61 72 63 | odule.more.useful.for.many.searc |
0e40 | 68 65 73 20 74 68 61 6e 20 60 69 6e 64 65 78 4f 66 28 29 60 20 6f 72 20 61 20 60 52 65 67 45 78 | hes.than.`indexOf()`.or.a.`RegEx |
0e60 | 70 60 2e 0a 0a 48 6f 77 65 76 65 72 2c 20 69 66 20 79 6f 75 20 6e 65 65 64 20 6d 6f 72 65 20 64 | p`...However,.if.you.need.more.d |
0e80 | 65 74 61 69 6c 65 64 20 70 61 72 73 69 6e 67 2c 20 79 6f 75 20 73 68 6f 75 6c 64 20 63 6f 6e 73 | etailed.parsing,.you.should.cons |
0ea0 | 69 64 65 72 20 75 73 69 6e 67 20 74 68 65 20 72 65 61 6c 20 70 61 72 73 65 72 73 20 5b 50 6f 73 | ider.using.the.real.parsers.[Pos |
0ec0 | 74 43 53 53 5d 28 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 70 6f 73 74 63 73 73 | tCSS](https://github.com/postcss |
0ee0 | 2f 70 6f 73 74 63 73 73 29 2c 20 5b 60 70 6f 73 74 63 73 73 2d 73 65 6c 65 63 74 6f 72 2d 70 61 | /postcss),.[`postcss-selector-pa |
0f00 | 72 73 65 72 60 5d 28 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 70 6f 73 74 63 73 | rser`](https://github.com/postcs |
0f20 | 73 2f 70 6f 73 74 63 73 73 2d 73 65 6c 65 63 74 6f 72 2d 70 61 72 73 65 72 29 2c 20 61 6e 64 20 | s/postcss-selector-parser),.and. |
0f40 | 5b 60 70 6f 73 74 63 73 73 2d 76 61 6c 75 65 2d 70 61 72 73 65 72 60 5d 28 68 74 74 70 73 3a 2f | [`postcss-value-parser`](https:/ |
0f60 | 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 54 72 79 53 6f 75 6e 64 2f 70 6f 73 74 63 73 73 2d 76 61 6c | /github.com/TrySound/postcss-val |
0f80 | 75 65 2d 70 61 72 73 65 72 29 2e 0a 0a 23 23 23 20 45 78 61 6d 70 6c 65 0a 0a 60 60 60 63 73 73 | ue-parser)...###.Example..```css |
0fa0 | 0a 2f 2a 20 48 65 72 65 20 69 73 20 73 6f 6d 65 20 70 69 6e 6b 20 2a 2f 0a 61 20 7b 20 63 6f 6c | ./*.Here.is.some.pink.*/.a.{.col |
0fc0 | 6f 72 3a 20 70 69 6e 6b 3b 20 7d 0a 61 3a 3a 62 65 66 6f 72 65 20 7b 20 63 6f 6e 74 65 6e 74 3a | or:.pink;.}.a::before.{.content: |
0fe0 | 20 22 70 69 6e 6b 22 20 7d 0a 62 20 7b 20 63 6f 6c 6f 72 3a 20 73 68 61 64 65 73 4f 66 50 69 6e | ."pink".}.b.{.color:.shadesOfPin |
1000 | 6b 28 37 29 3b 20 7d 0a 60 60 60 0a 0a 60 60 60 6a 73 0a 73 74 79 6c 65 53 65 61 72 63 68 28 7b | k(7);.}.```..```js.styleSearch({ |
1020 | 0a 20 20 73 6f 75 72 63 65 3a 20 74 68 65 43 73 73 53 74 72 69 6e 67 41 62 6f 76 65 2c 0a 20 20 | ...source:.theCssStringAbove,... |
1040 | 74 61 72 67 65 74 3a 20 22 70 69 6e 6b 22 2c 0a 7d 2c 20 66 75 6e 63 74 69 6f 6e 28 6d 61 74 63 | target:."pink",.},.function(matc |
1060 | 68 2c 20 63 6f 75 6e 74 29 20 7b 0a 20 20 2f 2a 20 4f 6e 6c 79 20 74 68 65 20 22 70 69 6e 6b 22 | h,.count).{.../*.Only.the."pink" |
1080 | 20 69 6e 20 60 63 6f 6c 6f 72 3a 20 70 69 6e 6b 60 20 77 69 6c 6c 20 62 65 0a 20 20 72 65 70 6f | .in.`color:.pink`.will.be...repo |
10a0 | 72 74 65 64 20 61 73 20 61 20 6d 61 74 63 68 20 2a 2f 0a 7d 29 3b 0a 60 60 60 0a 0a 23 23 23 20 | rted.as.a.match.*/.});.```..###. |
10c0 | 52 65 70 6f 72 74 69 6e 67 20 6d 61 74 63 68 65 73 0a 0a 46 6f 72 20 65 76 65 72 79 20 6d 61 74 | Reporting.matches..For.every.mat |
10e0 | 63 68 20 66 6f 75 6e 64 20 79 6f 75 72 20 60 63 61 6c 6c 62 61 63 6b 60 20 69 73 20 69 6e 76 6f | ch.found.your.`callback`.is.invo |
1100 | 6b 65 64 2e 20 49 74 20 69 73 20 70 61 73 73 65 64 20 74 77 6f 20 61 72 67 75 6d 65 6e 74 73 3a | ked..It.is.passed.two.arguments: |
1120 | 0a 0a 2d 20 41 20 60 6d 61 74 63 68 60 20 6f 62 6a 65 63 74 20 77 69 74 68 20 74 68 65 20 66 6f | ..-.A.`match`.object.with.the.fo |
1140 | 6c 6c 6f 77 69 6e 67 20 70 72 6f 70 65 72 74 69 65 73 3a 0a 20 20 2d 20 60 73 74 61 72 74 49 6e | llowing.properties:...-.`startIn |
1160 | 64 65 78 60 3a 20 77 68 65 72 65 20 74 68 65 20 6d 61 74 63 68 20 62 65 67 69 6e 73 0a 20 20 2d | dex`:.where.the.match.begins...- |
1180 | 20 60 65 6e 64 49 6e 64 65 78 60 3a 20 77 68 65 72 65 20 74 68 65 20 6d 61 74 63 68 20 65 6e 64 | .`endIndex`:.where.the.match.end |
11a0 | 73 0a 20 20 2d 20 60 74 61 72 67 65 74 60 3a 20 77 68 61 74 20 67 6f 74 20 6d 61 74 63 68 65 64 | s...-.`target`:.what.got.matched |
11c0 | 20 28 75 73 65 66 75 6c 20 69 66 20 79 6f 75 72 20 60 74 61 72 67 65 74 60 20 6f 70 74 69 6f 6e | .(useful.if.your.`target`.option |
11e0 | 20 69 73 20 61 6e 20 61 72 72 61 79 20 69 6e 73 74 65 61 64 20 6f 66 20 61 20 73 69 6e 67 6c 65 | .is.an.array.instead.of.a.single |
1200 | 20 73 74 72 69 6e 67 29 0a 20 20 2d 20 60 69 6e 73 69 64 65 46 75 6e 63 74 69 6f 6e 41 72 67 75 | .string)...-.`insideFunctionArgu |
1220 | 6d 65 6e 74 73 60 3a 20 77 68 65 74 68 65 72 20 74 68 65 20 6d 61 74 63 68 20 69 73 20 69 6e 73 | ments`:.whether.the.match.is.ins |
1240 | 69 64 65 20 61 20 66 75 6e 63 74 69 6f 6e 20 e2 80 94 c2 a0 2a 74 68 69 73 20 69 6e 63 6c 75 64 | ide.a.function......*this.includ |
1260 | 65 73 20 74 68 65 20 70 61 72 65 6e 74 68 65 73 65 73 20 61 72 6f 75 6e 64 20 74 68 65 20 61 72 | es.the.parentheses.around.the.ar |
1280 | 67 75 6d 65 6e 74 73 2a 0a 20 20 2d 20 60 69 6e 73 69 64 65 43 6f 6d 6d 65 6e 74 60 3a 20 77 68 | guments*...-.`insideComment`:.wh |
12a0 | 65 74 68 65 72 20 74 68 65 20 6d 61 74 63 68 20 69 73 20 69 6e 73 69 64 65 20 61 20 63 6f 6d 6d | ether.the.match.is.inside.a.comm |
12c0 | 65 6e 74 0a 20 20 2d 20 60 69 6e 73 69 64 65 53 74 72 69 6e 67 60 3a 20 77 68 65 74 68 65 72 20 | ent...-.`insideString`:.whether. |
12e0 | 74 68 65 20 6d 61 74 63 68 20 69 73 20 69 6e 73 69 64 65 20 61 20 73 74 72 69 6e 67 0a 2d 20 54 | the.match.is.inside.a.string.-.T |
1300 | 68 65 20 63 6f 75 6e 74 20 6f 66 20 68 6f 77 20 6d 61 6e 79 20 6d 61 74 63 68 65 73 20 68 61 76 | he.count.of.how.many.matches.hav |
1320 | 65 20 62 65 65 6e 20 66 6f 75 6e 64 20 75 70 20 74 6f 20 74 68 69 73 20 70 6f 69 6e 74 2e 0a 0a | e.been.found.up.to.this.point... |
1340 | 23 23 23 20 4f 70 74 69 6f 6e 73 0a 0a 42 65 6c 6f 77 20 79 6f 75 27 6c 6c 20 73 65 65 20 74 68 | ###.Options..Below.you'll.see.th |
1360 | 61 74 20 73 79 6e 74 61 78 20 66 65 61 74 75 72 65 20 6f 70 74 69 6f 6e 73 20 61 6c 6c 20 61 63 | at.syntax.feature.options.all.ac |
1380 | 63 65 70 74 20 74 68 72 65 65 20 6b 65 79 77 6f 72 64 73 3a 20 60 22 73 6b 69 70 22 60 2c 20 60 | cept.three.keywords:.`"skip"`,.` |
13a0 | 22 63 68 65 63 6b 22 60 2c 20 60 22 6f 6e 6c 79 22 60 2e 20 41 6e 20 65 72 72 6f 72 20 77 69 6c | "check"`,.`"only"`..An.error.wil |
13c0 | 6c 20 62 65 20 74 68 72 6f 77 6e 20 69 66 20 79 6f 75 20 75 73 65 20 60 22 6f 6e 6c 79 22 60 20 | l.be.thrown.if.you.use.`"only"`. |
13e0 | 6d 6f 72 65 20 74 68 61 6e 20 6f 6e 63 65 2e 0a 0a 23 23 23 23 20 73 6f 75 72 63 65 0a 0a 53 74 | more.than.once...####.source..St |
1400 | 72 69 6e 67 2e 20 2a 52 65 71 75 69 72 65 64 2e 2a 0a 0a 54 68 65 20 73 6f 75 72 63 65 20 73 74 | ring..*Required.*..The.source.st |
1420 | 72 69 6e 67 20 74 6f 20 73 65 61 72 63 68 20 74 68 72 6f 75 67 68 2e 0a 0a 23 23 23 23 20 74 61 | ring.to.search.through...####.ta |
1440 | 72 67 65 74 0a 0a 53 74 72 69 6e 67 20 6f 72 20 61 72 72 61 79 20 6f 66 20 73 74 72 69 6e 67 73 | rget..String.or.array.of.strings |
1460 | 2e 20 2a 52 65 71 75 69 72 65 64 2e 2a 0a 0a 54 68 65 20 74 61 72 67 65 74 20 6f 66 20 74 68 65 | ..*Required.*..The.target.of.the |
1480 | 20 73 65 61 72 63 68 2e 20 43 61 6e 20 62 65 0a 2d 20 61 20 73 69 6e 67 6c 65 20 63 68 61 72 61 | .search..Can.be.-.a.single.chara |
14a0 | 63 74 65 72 0a 2d 20 61 20 73 74 72 69 6e 67 20 77 69 74 68 20 73 6f 6d 65 20 6c 65 6e 67 74 68 | cter.-.a.string.with.some.length |
14c0 | 0a 2d 20 61 6e 20 61 72 72 61 79 20 6f 66 20 73 74 72 69 6e 67 73 2c 20 61 6c 6c 20 6f 66 20 77 | .-.an.array.of.strings,.all.of.w |
14e0 | 68 69 63 68 20 63 6f 75 6e 74 20 61 73 20 6d 61 74 63 68 65 73 20 28 74 68 65 20 60 6d 61 74 63 | hich.count.as.matches.(the.`matc |
1500 | 68 60 20 6f 62 6a 65 63 74 20 70 61 73 73 65 64 20 74 6f 20 74 68 65 20 60 63 61 6c 6c 62 61 63 | h`.object.passed.to.the.`callbac |
1520 | 6b 60 20 77 69 6c 6c 20 64 69 66 66 65 72 65 6e 74 69 61 74 65 20 77 68 69 63 68 20 73 74 72 69 | k`.will.differentiate.which.stri |
1540 | 6e 67 20 69 6e 20 74 68 65 20 61 72 72 61 79 20 67 6f 74 20 6d 61 74 63 68 65 64 20 76 69 61 20 | ng.in.the.array.got.matched.via. |
1560 | 69 74 73 20 60 74 61 72 67 65 74 60 20 70 72 6f 70 65 72 74 79 29 0a 0a 23 23 23 23 20 6f 6e 63 | its.`target`.property)..####.onc |
1580 | 65 0a 0a 42 6f 6f 6c 65 61 6e 2e 20 44 65 66 61 75 6c 74 3a 20 60 66 61 6c 73 65 60 2e 0a 0a 49 | e..Boolean..Default:.`false`...I |
15a0 | 66 20 60 74 72 75 65 60 2c 20 74 68 65 20 73 65 61 72 63 68 20 77 69 6c 6c 20 73 74 6f 70 20 61 | f.`true`,.the.search.will.stop.a |
15c0 | 66 74 65 72 20 6f 6e 65 20 6d 61 74 63 68 20 69 73 20 66 6f 75 6e 64 2e 0a 0a 23 23 23 23 20 63 | fter.one.match.is.found...####.c |
15e0 | 6f 6d 6d 65 6e 74 73 0a 0a 60 22 73 6b 69 70 22 60 20 7c 20 60 22 63 68 65 63 6b 22 60 20 7c 20 | omments..`"skip"`.|.`"check"`.|. |
1600 | 60 22 6f 6e 6c 79 22 60 2e 20 44 65 66 61 75 6c 74 3a 20 60 22 73 6b 69 70 22 60 2e 0a 0a 54 68 | `"only"`..Default:.`"skip"`...Th |
1620 | 69 73 20 69 6e 63 6c 75 64 65 73 20 62 6f 74 68 20 73 74 61 6e 64 61 72 64 20 60 2f 2a 20 43 53 | is.includes.both.standard.`/*.CS |
1640 | 53 20 63 6f 6d 6d 65 6e 74 73 20 2a 2f 60 20 61 6e 64 20 6e 6f 6e 2d 73 74 61 6e 64 61 72 64 20 | S.comments.*/`.and.non-standard. |
1660 | 62 75 74 20 77 69 64 65 6c 79 20 75 73 65 64 20 60 2f 2f 20 73 69 6e 67 6c 65 20 6c 69 6e 65 20 | but.widely.used.`//.single.line. |
1680 | 63 6f 6d 6d 65 6e 74 73 60 2e 0a 0a 23 23 23 23 20 73 74 72 69 6e 67 73 0a 0a 60 22 73 6b 69 70 | comments`...####.strings..`"skip |
16a0 | 22 60 20 7c 20 60 22 63 68 65 63 6b 22 60 20 7c 20 60 22 6f 6e 6c 79 22 60 2e 20 44 65 66 61 75 | "`.|.`"check"`.|.`"only"`..Defau |
16c0 | 6c 74 3a 20 60 22 73 6b 69 70 22 60 2e 0a 0a 23 23 23 23 20 66 75 6e 63 74 69 6f 6e 4e 61 6d 65 | lt:.`"skip"`...####.functionName |
16e0 | 73 0a 0a 60 22 73 6b 69 70 22 60 20 7c 20 60 22 63 68 65 63 6b 22 60 20 7c 20 60 22 6f 6e 6c 79 | s..`"skip"`.|.`"check"`.|.`"only |
1700 | 22 60 2e 20 44 65 66 61 75 6c 74 3a 20 60 22 73 6b 69 70 22 60 2e 0a 0a 23 23 23 23 20 66 75 6e | "`..Default:.`"skip"`...####.fun |
1720 | 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 0a 0a 60 22 73 6b 69 70 22 60 20 7c 20 60 22 63 68 65 | ctionArguments..`"skip"`.|.`"che |
1740 | 63 6b 22 60 20 7c 20 60 22 6f 6e 6c 79 22 60 2e 20 44 65 66 61 75 6c 74 3a 20 60 22 63 68 65 63 | ck"`.|.`"only"`..Default:.`"chec |
1760 | 6b 22 60 2e 0a 0a 23 23 23 23 20 70 61 72 65 6e 74 68 65 74 69 63 61 6c 73 0a 0a 60 22 73 6b 69 | k"`...####.parentheticals..`"ski |
1780 | 70 22 60 20 7c 20 60 22 63 68 65 63 6b 22 60 20 7c 20 60 22 6f 6e 6c 79 22 60 2e 20 44 65 66 61 | p"`.|.`"check"`.|.`"only"`..Defa |
17a0 | 75 6c 74 3a 20 60 22 63 68 65 63 6b 22 60 2e 0a 0a 54 68 69 73 20 64 65 73 69 67 6e 61 74 65 73 | ult:.`"check"`...This.designates |
17c0 | 20 61 6e 79 74 68 69 6e 67 20 69 6e 73 69 64 65 20 70 61 72 65 6e 74 68 65 73 65 73 2c 20 77 68 | .anything.inside.parentheses,.wh |
17e0 | 69 63 68 20 69 6e 63 6c 75 64 65 73 20 73 74 61 6e 64 61 72 64 20 66 75 6e 63 74 69 6f 6e 73 2c | ich.includes.standard.functions, |
1800 | 20 62 75 74 20 61 6c 73 6f 20 53 61 73 73 20 6d 61 70 73 20 61 6e 64 20 6f 74 68 65 72 20 6e 6f | .but.also.Sass.maps.and.other.no |
1820 | 6e 2d 73 74 61 6e 64 61 72 64 20 63 6f 6e 73 74 72 75 63 74 73 2e 20 60 70 61 72 65 6e 74 68 65 | n-standard.constructs..`parenthe |
1840 | 74 69 63 61 6c 73 60 20 69 73 20 61 20 62 72 6f 61 64 65 72 20 63 61 74 65 67 6f 72 79 20 74 68 | ticals`.is.a.broader.category.th |
1860 | 61 6e 20 60 66 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 60 2e 0a 00 00 00 00 00 00 00 00 | an.`functionArguments`.......... |
1880 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
18a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
18c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
18e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1900 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1920 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1940 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1960 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1980 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
19a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
19c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
19e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1a00 | 70 61 63 6b 61 67 65 2f 4c 49 43 45 4e 53 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | package/LICENSE................. |
1a20 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1a40 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1a60 | 00 00 00 00 30 30 30 36 34 34 20 00 30 30 30 37 36 35 20 00 30 30 30 30 32 34 20 00 30 30 30 30 | ....000644..000765..000024..0000 |
1a80 | 30 30 31 33 33 32 20 00 31 32 37 32 37 31 32 37 31 35 31 00 30 31 31 35 34 30 20 00 30 00 00 00 | 001332..12727127151.011540..0... |
1aa0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1ac0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1ae0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1b00 | 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....................... |
1b20 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1b40 | 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......... |
1b60 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1b80 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1ba0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1bc0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1be0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1c00 | 43 6f 70 79 72 69 67 68 74 20 28 63 29 20 32 30 31 36 2c 20 44 61 76 69 64 20 43 6c 61 72 6b 0a | Copyright.(c).2016,.David.Clark. |
1c20 | 0a 50 65 72 6d 69 73 73 69 6f 6e 20 74 6f 20 75 73 65 2c 20 63 6f 70 79 2c 20 6d 6f 64 69 66 79 | .Permission.to.use,.copy,.modify |
1c40 | 2c 20 61 6e 64 2f 6f 72 20 64 69 73 74 72 69 62 75 74 65 20 74 68 69 73 20 73 6f 66 74 77 61 72 | ,.and/or.distribute.this.softwar |
1c60 | 65 20 66 6f 72 20 61 6e 79 0a 70 75 72 70 6f 73 65 20 77 69 74 68 20 6f 72 20 77 69 74 68 6f 75 | e.for.any.purpose.with.or.withou |
1c80 | 74 20 66 65 65 20 69 73 20 68 65 72 65 62 79 20 67 72 61 6e 74 65 64 2c 20 70 72 6f 76 69 64 65 | t.fee.is.hereby.granted,.provide |
1ca0 | 64 20 74 68 61 74 20 74 68 65 20 61 62 6f 76 65 0a 63 6f 70 79 72 69 67 68 74 20 6e 6f 74 69 63 | d.that.the.above.copyright.notic |
1cc0 | 65 20 61 6e 64 20 74 68 69 73 20 70 65 72 6d 69 73 73 69 6f 6e 20 6e 6f 74 69 63 65 20 61 70 70 | e.and.this.permission.notice.app |
1ce0 | 65 61 72 20 69 6e 20 61 6c 6c 20 63 6f 70 69 65 73 2e 0a 0a 54 48 45 20 53 4f 46 54 57 41 52 45 | ear.in.all.copies...THE.SOFTWARE |
1d00 | 20 49 53 20 50 52 4f 56 49 44 45 44 20 22 41 53 20 49 53 22 20 41 4e 44 20 54 48 45 20 41 55 54 | .IS.PROVIDED."AS.IS".AND.THE.AUT |
1d20 | 48 4f 52 20 44 49 53 43 4c 41 49 4d 53 20 41 4c 4c 20 57 41 52 52 41 4e 54 49 45 53 0a 57 49 54 | HOR.DISCLAIMS.ALL.WARRANTIES.WIT |
1d40 | 48 20 52 45 47 41 52 44 20 54 4f 20 54 48 49 53 20 53 4f 46 54 57 41 52 45 20 49 4e 43 4c 55 44 | H.REGARD.TO.THIS.SOFTWARE.INCLUD |
1d60 | 49 4e 47 20 41 4c 4c 20 49 4d 50 4c 49 45 44 20 57 41 52 52 41 4e 54 49 45 53 20 4f 46 0a 4d 45 | ING.ALL.IMPLIED.WARRANTIES.OF.ME |
1d80 | 52 43 48 41 4e 54 41 42 49 4c 49 54 59 20 41 4e 44 20 46 49 54 4e 45 53 53 2e 20 49 4e 20 4e 4f | RCHANTABILITY.AND.FITNESS..IN.NO |
1da0 | 20 45 56 45 4e 54 20 53 48 41 4c 4c 20 54 48 45 20 41 55 54 48 4f 52 20 42 45 20 4c 49 41 42 4c | .EVENT.SHALL.THE.AUTHOR.BE.LIABL |
1dc0 | 45 20 46 4f 52 0a 41 4e 59 20 53 50 45 43 49 41 4c 2c 20 44 49 52 45 43 54 2c 20 49 4e 44 49 52 | E.FOR.ANY.SPECIAL,.DIRECT,.INDIR |
1de0 | 45 43 54 2c 20 4f 52 20 43 4f 4e 53 45 51 55 45 4e 54 49 41 4c 20 44 41 4d 41 47 45 53 20 4f 52 | ECT,.OR.CONSEQUENTIAL.DAMAGES.OR |
1e00 | 20 41 4e 59 20 44 41 4d 41 47 45 53 0a 57 48 41 54 53 4f 45 56 45 52 20 52 45 53 55 4c 54 49 4e | .ANY.DAMAGES.WHATSOEVER.RESULTIN |
1e20 | 47 20 46 52 4f 4d 20 4c 4f 53 53 20 4f 46 20 55 53 45 2c 20 44 41 54 41 20 4f 52 20 50 52 4f 46 | G.FROM.LOSS.OF.USE,.DATA.OR.PROF |
1e40 | 49 54 53 2c 20 57 48 45 54 48 45 52 20 49 4e 20 41 4e 0a 41 43 54 49 4f 4e 20 4f 46 20 43 4f 4e | ITS,.WHETHER.IN.AN.ACTION.OF.CON |
1e60 | 54 52 41 43 54 2c 20 4e 45 47 4c 49 47 45 4e 43 45 20 4f 52 20 4f 54 48 45 52 20 54 4f 52 54 49 | TRACT,.NEGLIGENCE.OR.OTHER.TORTI |
1e80 | 4f 55 53 20 41 43 54 49 4f 4e 2c 20 41 52 49 53 49 4e 47 20 4f 55 54 20 4f 46 0a 4f 52 20 49 4e | OUS.ACTION,.ARISING.OUT.OF.OR.IN |
1ea0 | 20 43 4f 4e 4e 45 43 54 49 4f 4e 20 57 49 54 48 20 54 48 45 20 55 53 45 20 4f 52 20 50 45 52 46 | .CONNECTION.WITH.THE.USE.OR.PERF |
1ec0 | 4f 52 4d 41 4e 43 45 20 4f 46 20 54 48 49 53 20 53 4f 46 54 57 41 52 45 2e 0a 00 00 00 00 00 00 | ORMANCE.OF.THIS.SOFTWARE........ |
1ee0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1f00 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1f20 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1f40 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1f60 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1f80 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1fa0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1fc0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
1fe0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
2000 | 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................ |
2020 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
2040 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
2060 | 00 00 00 00 30 30 30 36 34 34 20 00 30 30 30 37 36 35 20 00 30 30 30 30 32 34 20 00 30 30 30 30 | ....000644..000765..000024..0000 |
2080 | 30 31 33 37 36 35 20 00 31 32 37 32 37 31 34 30 33 36 31 00 30 31 32 32 31 33 20 00 30 00 00 00 | 013765..12727140361.012213..0... |
20a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
20c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
20e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
2100 | 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....................... |
2120 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
2140 | 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......... |
2160 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
2180 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
21a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
21c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
21e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
2200 | 76 61 72 20 53 4b 49 50 20 3d 20 27 73 6b 69 70 27 3b 0a 76 61 72 20 43 48 45 43 4b 20 3d 20 27 | var.SKIP.=.'skip';.var.CHECK.=.' |
2220 | 63 68 65 63 6b 27 3b 0a 76 61 72 20 4f 4e 4c 59 20 3d 20 27 6f 6e 6c 79 27 3b 0a 0a 6d 6f 64 75 | check';.var.ONLY.=.'only';..modu |
2240 | 6c 65 2e 65 78 70 6f 72 74 73 20 3d 20 66 75 6e 63 74 69 6f 6e 20 28 6f 70 74 69 6f 6e 73 2c 20 | le.exports.=.function.(options,. |
2260 | 63 61 6c 6c 62 61 63 6b 29 20 7b 0a 20 20 76 61 72 20 73 6f 75 72 63 65 20 3d 20 6f 70 74 69 6f | callback).{...var.source.=.optio |
2280 | 6e 73 2e 73 6f 75 72 63 65 3b 0a 20 20 76 61 72 20 74 61 72 67 65 74 20 3d 20 6f 70 74 69 6f 6e | ns.source;...var.target.=.option |
22a0 | 73 2e 74 61 72 67 65 74 3b 0a 0a 20 20 76 61 72 20 73 6b 69 70 43 6f 6d 6d 65 6e 74 73 20 3d 20 | s.target;....var.skipComments.=. |
22c0 | 28 6f 70 74 69 6f 6e 73 2e 63 6f 6d 6d 65 6e 74 73 29 20 3f 20 6f 70 74 69 6f 6e 73 2e 63 6f 6d | (options.comments).?.options.com |
22e0 | 6d 65 6e 74 73 20 3d 3d 3d 20 53 4b 49 50 20 3a 20 74 72 75 65 3b 0a 20 20 76 61 72 20 73 6b 69 | ments.===.SKIP.:.true;...var.ski |
2300 | 70 53 74 72 69 6e 67 73 20 3d 20 28 6f 70 74 69 6f 6e 73 2e 73 74 72 69 6e 67 73 29 20 3f 20 6f | pStrings.=.(options.strings).?.o |
2320 | 70 74 69 6f 6e 73 2e 73 74 72 69 6e 67 73 20 3d 3d 3d 20 53 4b 49 50 20 3a 20 74 72 75 65 3b 0a | ptions.strings.===.SKIP.:.true;. |
2340 | 20 20 76 61 72 20 73 6b 69 70 46 75 6e 63 74 69 6f 6e 4e 61 6d 65 73 20 3d 20 28 6f 70 74 69 6f | ..var.skipFunctionNames.=.(optio |
2360 | 6e 73 2e 66 75 6e 63 74 69 6f 6e 4e 61 6d 65 73 29 20 3f 20 6f 70 74 69 6f 6e 73 2e 66 75 6e 63 | ns.functionNames).?.options.func |
2380 | 74 69 6f 6e 4e 61 6d 65 73 20 3d 3d 3d 20 53 4b 49 50 20 3a 20 74 72 75 65 3b 0a 20 20 76 61 72 | tionNames.===.SKIP.:.true;...var |
23a0 | 20 73 6b 69 70 46 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 20 3d 20 6f 70 74 69 6f 6e 73 | .skipFunctionArguments.=.options |
23c0 | 2e 66 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 20 3d 3d 3d 20 53 4b 49 50 3b 0a 20 20 76 | .functionArguments.===.SKIP;...v |
23e0 | 61 72 20 73 6b 69 70 50 61 72 65 6e 74 68 65 74 69 63 61 6c 73 20 3d 20 6f 70 74 69 6f 6e 73 2e | ar.skipParentheticals.=.options. |
2400 | 70 61 72 65 6e 74 68 65 74 69 63 61 6c 73 20 3d 3d 3d 20 53 4b 49 50 3b 0a 0a 20 20 76 61 72 20 | parentheticals.===.SKIP;....var. |
2420 | 6f 6e 63 65 4f 70 74 69 6f 6e 55 73 65 64 20 3d 20 66 61 6c 73 65 3b 0a 20 20 4f 62 6a 65 63 74 | onceOptionUsed.=.false;...Object |
2440 | 2e 6b 65 79 73 28 6f 70 74 69 6f 6e 73 29 2e 66 6f 72 45 61 63 68 28 66 75 6e 63 74 69 6f 6e 28 | .keys(options).forEach(function( |
2460 | 6b 65 79 29 20 7b 0a 20 20 20 20 69 66 20 28 6f 70 74 69 6f 6e 73 5b 6b 65 79 5d 20 21 3d 3d 20 | key).{.....if.(options[key].!==. |
2480 | 4f 4e 4c 59 29 20 72 65 74 75 72 6e 3b 0a 20 20 20 20 69 66 20 28 21 6f 6e 63 65 4f 70 74 69 6f | ONLY).return;.....if.(!onceOptio |
24a0 | 6e 55 73 65 64 29 20 7b 0a 20 20 20 20 20 20 6f 6e 63 65 4f 70 74 69 6f 6e 55 73 65 64 20 3d 20 | nUsed).{.......onceOptionUsed.=. |
24c0 | 74 72 75 65 3b 0a 20 20 20 20 7d 20 65 6c 73 65 20 7b 0a 20 20 20 20 20 20 74 68 72 6f 77 20 6e | true;.....}.else.{.......throw.n |
24e0 | 65 77 20 45 72 72 6f 72 28 27 4f 6e 6c 79 20 6f 6e 65 20 73 79 6e 74 61 78 20 66 65 61 74 75 72 | ew.Error('Only.one.syntax.featur |
2500 | 65 20 6f 70 74 69 6f 6e 20 63 61 6e 20 62 65 20 74 68 65 20 22 6f 6e 6c 79 22 20 6f 6e 65 20 74 | e.option.can.be.the."only".one.t |
2520 | 6f 20 63 68 65 63 6b 27 29 3b 0a 20 20 20 20 7d 0a 20 20 7d 29 3b 0a 0a 20 20 76 61 72 20 6f 6e | o.check');.....}...});....var.on |
2540 | 6c 79 43 6f 6d 6d 65 6e 74 73 20 3d 20 6f 70 74 69 6f 6e 73 2e 63 6f 6d 6d 65 6e 74 73 20 3d 3d | lyComments.=.options.comments.== |
2560 | 3d 20 4f 4e 4c 59 3b 0a 20 20 76 61 72 20 6f 6e 6c 79 53 74 72 69 6e 67 73 20 3d 20 6f 70 74 69 | =.ONLY;...var.onlyStrings.=.opti |
2580 | 6f 6e 73 2e 73 74 72 69 6e 67 73 20 3d 3d 3d 20 4f 4e 4c 59 3b 0a 20 20 76 61 72 20 6f 6e 6c 79 | ons.strings.===.ONLY;...var.only |
25a0 | 46 75 6e 63 74 69 6f 6e 4e 61 6d 65 73 20 3d 20 6f 70 74 69 6f 6e 73 2e 66 75 6e 63 74 69 6f 6e | FunctionNames.=.options.function |
25c0 | 4e 61 6d 65 73 20 3d 3d 3d 20 4f 4e 4c 59 3b 0a 20 20 76 61 72 20 6f 6e 6c 79 46 75 6e 63 74 69 | Names.===.ONLY;...var.onlyFuncti |
25e0 | 6f 6e 41 72 67 75 6d 65 6e 74 73 20 3d 20 6f 70 74 69 6f 6e 73 2e 66 75 6e 63 74 69 6f 6e 41 72 | onArguments.=.options.functionAr |
2600 | 67 75 6d 65 6e 74 73 20 3d 3d 3d 20 4f 4e 4c 59 3b 0a 20 20 76 61 72 20 6f 6e 6c 79 50 61 72 65 | guments.===.ONLY;...var.onlyPare |
2620 | 6e 74 68 65 74 69 63 61 6c 73 20 3d 20 6f 70 74 69 6f 6e 73 2e 70 61 72 65 6e 74 68 65 74 69 63 | ntheticals.=.options.parenthetic |
2640 | 61 6c 73 20 3d 3d 3d 20 4f 4e 4c 59 3b 0a 0a 20 20 76 61 72 20 69 6e 73 69 64 65 53 74 72 69 6e | als.===.ONLY;....var.insideStrin |
2660 | 67 20 3d 20 66 61 6c 73 65 3b 0a 20 20 76 61 72 20 69 6e 73 69 64 65 43 6f 6d 6d 65 6e 74 20 3d | g.=.false;...var.insideComment.= |
2680 | 20 66 61 6c 73 65 3b 0a 20 20 76 61 72 20 69 6e 73 69 64 65 53 69 6e 67 6c 65 4c 69 6e 65 43 6f | .false;...var.insideSingleLineCo |
26a0 | 6d 6d 65 6e 74 20 3d 20 66 61 6c 73 65 3b 0a 20 20 76 61 72 20 69 6e 73 69 64 65 50 61 72 65 6e | mment.=.false;...var.insideParen |
26c0 | 73 20 3d 20 66 61 6c 73 65 3b 0a 20 20 76 61 72 20 69 6e 73 69 64 65 46 75 6e 63 74 69 6f 6e 41 | s.=.false;...var.insideFunctionA |
26e0 | 72 67 75 6d 65 6e 74 73 20 3d 20 66 61 6c 73 65 3b 0a 20 20 76 61 72 20 6f 70 65 6e 69 6e 67 50 | rguments.=.false;...var.openingP |
2700 | 61 72 65 6e 43 6f 75 6e 74 20 3d 20 30 3b 0a 20 20 76 61 72 20 6d 61 74 63 68 43 6f 75 6e 74 20 | arenCount.=.0;...var.matchCount. |
2720 | 3d 20 30 3b 0a 20 20 76 61 72 20 6f 70 65 6e 69 6e 67 51 75 6f 74 65 3b 0a 0a 20 20 76 61 72 20 | =.0;...var.openingQuote;....var. |
2740 | 74 61 72 67 65 74 49 73 41 72 72 61 79 20 3d 20 41 72 72 61 79 2e 69 73 41 72 72 61 79 28 74 61 | targetIsArray.=.Array.isArray(ta |
2760 | 72 67 65 74 29 3b 0a 0a 20 20 2f 2f 20 49 66 20 74 68 65 20 74 61 72 67 65 74 20 69 73 20 6a 75 | rget);....//.If.the.target.is.ju |
2780 | 73 74 20 61 20 73 74 72 69 6e 67 2c 20 69 74 20 69 73 20 65 61 73 79 20 74 6f 20 63 68 65 63 6b | st.a.string,.it.is.easy.to.check |
27a0 | 20 77 68 65 74 68 65 72 0a 20 20 2f 2f 20 73 6f 6d 65 20 69 6e 64 65 78 20 6f 66 20 74 68 65 20 | .whether...//.some.index.of.the. |
27c0 | 73 6f 75 72 63 65 20 6d 61 74 63 68 65 73 20 69 74 2e 0a 20 20 2f 2f 20 49 66 20 74 68 65 20 74 | source.matches.it....//.If.the.t |
27e0 | 61 72 67 65 74 20 69 73 20 61 6e 20 61 72 72 61 79 20 6f 66 20 73 74 72 69 6e 67 73 2c 20 74 68 | arget.is.an.array.of.strings,.th |
2800 | 6f 75 67 68 2c 20 77 65 20 68 61 76 65 20 74 6f 0a 20 20 2f 2f 20 63 68 65 63 6b 20 77 68 65 74 | ough,.we.have.to...//.check.whet |
2820 | 68 65 72 20 73 6f 6d 65 20 69 6e 64 65 78 20 6f 66 20 74 68 65 20 73 6f 75 72 63 65 20 6d 61 74 | her.some.index.of.the.source.mat |
2840 | 63 68 65 73 20 2a 61 6e 79 2a 20 6f 66 0a 20 20 2f 2f 20 74 68 6f 73 65 20 74 61 72 67 65 74 20 | ches.*any*.of...//.those.target. |
2860 | 73 74 72 69 6e 67 73 20 28 73 74 6f 70 70 69 6e 67 20 61 66 74 65 72 20 74 68 65 20 66 69 72 73 | strings.(stopping.after.the.firs |
2880 | 74 20 6d 61 74 63 68 29 2e 0a 20 20 76 61 72 20 67 65 74 4d 61 74 63 68 20 3d 20 28 66 75 6e 63 | t.match)....var.getMatch.=.(func |
28a0 | 74 69 6f 6e 20 28 29 20 7b 0a 20 20 20 20 69 66 20 28 21 74 61 72 67 65 74 49 73 41 72 72 61 79 | tion.().{.....if.(!targetIsArray |
28c0 | 29 20 7b 0a 20 20 20 20 20 20 72 65 74 75 72 6e 20 67 65 74 4d 61 74 63 68 42 61 73 65 2e 62 69 | ).{.......return.getMatchBase.bi |
28e0 | 6e 64 28 6e 75 6c 6c 2c 20 74 61 72 67 65 74 29 3b 0a 20 20 20 20 7d 0a 20 20 20 20 72 65 74 75 | nd(null,.target);.....}.....retu |
2900 | 72 6e 20 66 75 6e 63 74 69 6f 6e 28 69 6e 64 65 78 29 20 7b 0a 20 20 20 20 20 20 66 6f 72 20 28 | rn.function(index).{.......for.( |
2920 | 76 61 72 20 74 69 20 3d 20 30 2c 20 74 6c 20 3d 20 74 61 72 67 65 74 2e 6c 65 6e 67 74 68 3b 20 | var.ti.=.0,.tl.=.target.length;. |
2940 | 74 69 20 3c 20 74 6c 3b 20 74 69 2b 2b 29 20 7b 0a 20 20 20 20 20 20 20 20 76 61 72 20 63 68 65 | ti.<.tl;.ti++).{.........var.che |
2960 | 63 6b 52 65 73 75 6c 74 20 3d 20 67 65 74 4d 61 74 63 68 42 61 73 65 28 74 61 72 67 65 74 5b 74 | ckResult.=.getMatchBase(target[t |
2980 | 69 5d 2c 20 69 6e 64 65 78 29 3b 0a 20 20 20 20 20 20 20 20 69 66 20 28 63 68 65 63 6b 52 65 73 | i],.index);.........if.(checkRes |
29a0 | 75 6c 74 29 20 72 65 74 75 72 6e 20 63 68 65 63 6b 52 65 73 75 6c 74 3b 0a 20 20 20 20 20 20 7d | ult).return.checkResult;.......} |
29c0 | 0a 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a 20 20 20 20 7d 0a 20 20 7d 29 28 | .......return.false;.....}...})( |
29e0 | 29 3b 0a 0a 20 20 66 75 6e 63 74 69 6f 6e 20 67 65 74 4d 61 74 63 68 42 61 73 65 28 74 61 72 67 | );....function.getMatchBase(targ |
2a00 | 65 74 53 74 72 69 6e 67 2c 20 69 6e 64 65 78 29 20 7b 0a 20 20 20 20 76 61 72 20 74 61 72 67 65 | etString,.index).{.....var.targe |
2a20 | 74 53 74 72 69 6e 67 4c 65 6e 67 74 68 20 3d 20 74 61 72 67 65 74 53 74 72 69 6e 67 2e 6c 65 6e | tStringLength.=.targetString.len |
2a40 | 67 74 68 3b 0a 0a 20 20 20 20 2f 2f 20 54 61 72 67 65 74 20 69 73 20 61 20 73 69 6e 67 6c 65 20 | gth;......//.Target.is.a.single. |
2a60 | 63 68 61 72 61 63 74 65 72 0a 20 20 20 20 69 66 20 28 74 61 72 67 65 74 53 74 72 69 6e 67 4c 65 | character.....if.(targetStringLe |
2a80 | 6e 67 74 68 20 3d 3d 3d 20 31 20 26 26 20 73 6f 75 72 63 65 5b 69 6e 64 65 78 5d 20 21 3d 3d 20 | ngth.===.1.&&.source[index].!==. |
2aa0 | 74 61 72 67 65 74 53 74 72 69 6e 67 29 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a 0a 20 20 20 | targetString).return.false;..... |
2ac0 | 20 2f 2f 20 54 61 72 67 65 74 20 69 73 20 6d 75 6c 74 69 70 6c 65 20 63 68 61 72 61 63 74 65 72 | .//.Target.is.multiple.character |
2ae0 | 73 0a 20 20 20 20 69 66 20 28 73 6f 75 72 63 65 2e 73 75 62 73 74 72 28 69 6e 64 65 78 2c 20 74 | s.....if.(source.substr(index,.t |
2b00 | 61 72 67 65 74 53 74 72 69 6e 67 4c 65 6e 67 74 68 29 20 21 3d 3d 20 74 61 72 67 65 74 53 74 72 | argetStringLength).!==.targetStr |
2b20 | 69 6e 67 29 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 72 65 74 75 72 6e 20 7b | ing).return.false;......return.{ |
2b40 | 0a 20 20 20 20 20 20 69 6e 73 69 64 65 50 61 72 65 6e 73 3a 20 69 6e 73 69 64 65 50 61 72 65 6e | .......insideParens:.insideParen |
2b60 | 73 2c 0a 20 20 20 20 20 20 69 6e 73 69 64 65 46 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 | s,.......insideFunctionArguments |
2b80 | 3a 20 69 6e 73 69 64 65 46 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 2c 0a 20 20 20 20 20 | :.insideFunctionArguments,...... |
2ba0 | 20 69 6e 73 69 64 65 43 6f 6d 6d 65 6e 74 3a 20 69 6e 73 69 64 65 43 6f 6d 6d 65 6e 74 2c 0a 20 | .insideComment:.insideComment,.. |
2bc0 | 20 20 20 20 20 69 6e 73 69 64 65 53 74 72 69 6e 67 3a 20 69 6e 73 69 64 65 53 74 72 69 6e 67 2c | .....insideString:.insideString, |
2be0 | 0a 20 20 20 20 20 20 73 74 61 72 74 49 6e 64 65 78 3a 20 69 6e 64 65 78 2c 0a 20 20 20 20 20 20 | .......startIndex:.index,....... |
2c00 | 65 6e 64 49 6e 64 65 78 3a 20 69 6e 64 65 78 20 2b 20 74 61 72 67 65 74 53 74 72 69 6e 67 4c 65 | endIndex:.index.+.targetStringLe |
2c20 | 6e 67 74 68 2c 0a 20 20 20 20 20 20 74 61 72 67 65 74 3a 20 74 61 72 67 65 74 53 74 72 69 6e 67 | ngth,.......target:.targetString |
2c40 | 2c 0a 20 20 20 20 7d 3b 0a 20 20 7d 0a 0a 20 20 66 6f 72 20 28 76 61 72 20 69 20 3d 20 30 2c 20 | ,.....};...}....for.(var.i.=.0,. |
2c60 | 6c 20 3d 20 73 6f 75 72 63 65 2e 6c 65 6e 67 74 68 3b 20 69 20 3c 20 6c 3b 20 69 2b 2b 29 20 7b | l.=.source.length;.i.<.l;.i++).{ |
2c80 | 0a 20 20 20 20 76 61 72 20 63 75 72 72 65 6e 74 43 68 61 72 20 3d 20 73 6f 75 72 63 65 5b 69 5d | .....var.currentChar.=.source[i] |
2ca0 | 3b 0a 0a 20 20 20 20 2f 2f 20 52 65 67 69 73 74 65 72 20 74 68 65 20 62 65 67 69 6e 6e 69 6e 67 | ;......//.Register.the.beginning |
2cc0 | 20 6f 66 20 61 20 63 6f 6d 6d 65 6e 74 0a 20 20 20 20 69 66 20 28 0a 20 20 20 20 20 20 21 69 6e | .of.a.comment.....if.(.......!in |
2ce0 | 73 69 64 65 53 74 72 69 6e 67 20 26 26 20 21 69 6e 73 69 64 65 43 6f 6d 6d 65 6e 74 0a 20 20 20 | sideString.&&.!insideComment.... |
2d00 | 20 20 20 26 26 20 63 75 72 72 65 6e 74 43 68 61 72 20 3d 3d 3d 20 22 2f 22 0a 20 20 20 20 20 20 | ...&&.currentChar.===."/"....... |
2d20 | 26 26 20 73 6f 75 72 63 65 5b 69 20 2d 20 31 5d 20 21 3d 3d 20 22 5c 5c 22 20 2f 2f 20 65 73 63 | &&.source[i.-.1].!==."\\".//.esc |
2d40 | 61 70 69 6e 67 0a 20 20 20 20 29 20 7b 0a 20 20 20 20 20 20 2f 2f 20 73 74 61 6e 64 61 72 64 20 | aping.....).{.......//.standard. |
2d60 | 63 6f 6d 6d 65 6e 74 73 0a 20 20 20 20 20 20 69 66 20 28 73 6f 75 72 63 65 5b 69 20 2b 20 31 5d | comments.......if.(source[i.+.1] |
2d80 | 20 3d 3d 3d 20 22 2a 22 29 20 7b 0a 20 20 20 20 20 20 20 20 69 6e 73 69 64 65 43 6f 6d 6d 65 6e | .===."*").{.........insideCommen |
2da0 | 74 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0a 20 20 20 20 | t.=.true;.........continue;..... |
2dc0 | 20 20 7d 0a 20 20 20 20 20 20 2f 2f 20 73 69 6e 67 6c 65 2d 6c 69 6e 65 20 63 6f 6d 6d 65 6e 74 | ..}.......//.single-line.comment |
2de0 | 73 0a 20 20 20 20 20 20 69 66 20 28 73 6f 75 72 63 65 5b 69 20 2b 20 31 5d 20 3d 3d 3d 20 22 2f | s.......if.(source[i.+.1].===."/ |
2e00 | 22 29 20 7b 0a 20 20 20 20 20 20 20 20 69 6e 73 69 64 65 43 6f 6d 6d 65 6e 74 20 3d 20 74 72 75 | ").{.........insideComment.=.tru |
2e20 | 65 3b 0a 20 20 20 20 20 20 20 20 69 6e 73 69 64 65 53 69 6e 67 6c 65 4c 69 6e 65 43 6f 6d 6d 65 | e;.........insideSingleLineComme |
2e40 | 6e 74 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0a 20 20 20 | nt.=.true;.........continue;.... |
2e60 | 20 20 20 7d 0a 20 20 20 20 7d 0a 0a 20 20 20 20 69 66 20 28 69 6e 73 69 64 65 43 6f 6d 6d 65 6e | ...}.....}......if.(insideCommen |
2e80 | 74 29 20 7b 0a 20 20 20 20 20 20 2f 2f 20 52 65 67 69 73 74 65 72 20 74 68 65 20 65 6e 64 20 6f | t).{.......//.Register.the.end.o |
2ea0 | 66 20 61 20 73 74 61 6e 64 61 72 64 20 63 6f 6d 6d 65 6e 74 0a 20 20 20 20 20 20 69 66 20 28 0a | f.a.standard.comment.......if.(. |
2ec0 | 20 20 20 20 20 20 20 20 21 69 6e 73 69 64 65 53 69 6e 67 6c 65 4c 69 6e 65 43 6f 6d 6d 65 6e 74 | ........!insideSingleLineComment |
2ee0 | 0a 20 20 20 20 20 20 20 20 26 26 20 63 75 72 72 65 6e 74 43 68 61 72 20 3d 3d 3d 20 22 2a 22 0a | .........&&.currentChar.===."*". |
2f00 | 20 20 20 20 20 20 20 20 26 26 20 73 6f 75 72 63 65 5b 69 20 2d 20 31 5d 20 21 3d 3d 20 22 5c 5c | ........&&.source[i.-.1].!==."\\ |
2f20 | 22 20 2f 2f 20 65 73 63 61 70 69 6e 67 0a 20 20 20 20 20 20 20 20 26 26 20 73 6f 75 72 63 65 5b | ".//.escaping.........&&.source[ |
2f40 | 69 20 2b 20 31 5d 20 3d 3d 3d 20 22 2f 22 0a 20 20 20 20 20 20 20 20 26 26 20 73 6f 75 72 63 65 | i.+.1].===."/".........&&.source |
2f60 | 5b 69 20 2d 20 31 5d 20 21 3d 3d 20 22 2f 22 20 2f 2f 20 64 6f 6e 27 74 20 65 6e 64 20 69 66 20 | [i.-.1].!==."/".//.don't.end.if. |
2f80 | 69 74 27 73 20 2f 2a 2f 0a 20 20 20 20 20 20 29 20 7b 0a 20 20 20 20 20 20 20 20 69 6e 73 69 64 | it's./*/.......).{.........insid |
2fa0 | 65 43 6f 6d 6d 65 6e 74 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e | eComment.=.false;.........contin |
2fc0 | 75 65 3b 0a 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 2f 2f 20 52 65 67 69 73 74 65 72 20 74 | ue;.......}........//.Register.t |
2fe0 | 68 65 20 65 6e 64 20 6f 66 20 61 20 73 69 6e 67 6c 65 2d 6c 69 6e 65 20 63 6f 6d 6d 65 6e 74 0a | he.end.of.a.single-line.comment. |
3000 | 20 20 20 20 20 20 69 66 20 28 0a 20 20 20 20 20 20 20 20 69 6e 73 69 64 65 53 69 6e 67 6c 65 4c | ......if.(.........insideSingleL |
3020 | 69 6e 65 43 6f 6d 6d 65 6e 74 0a 20 20 20 20 20 20 20 20 26 26 20 63 75 72 72 65 6e 74 43 68 61 | ineComment.........&&.currentCha |
3040 | 72 20 3d 3d 3d 20 22 5c 6e 22 0a 20 20 20 20 20 20 29 20 7b 0a 20 20 20 20 20 20 20 20 69 6e 73 | r.===."\n".......).{.........ins |
3060 | 69 64 65 43 6f 6d 6d 65 6e 74 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 69 6e 73 69 | ideComment.=.false;.........insi |
3080 | 64 65 53 69 6e 67 6c 65 4c 69 6e 65 43 6f 6d 6d 65 6e 74 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 | deSingleLineComment.=.false;.... |
30a0 | 20 20 20 7d 0a 0a 20 20 20 20 20 20 69 66 20 28 73 6b 69 70 43 6f 6d 6d 65 6e 74 73 29 20 63 6f | ...}........if.(skipComments).co |
30c0 | 6e 74 69 6e 75 65 3b 0a 20 20 20 20 7d 0a 0a 20 20 20 20 2f 2f 20 52 65 67 69 73 74 65 72 20 74 | ntinue;.....}......//.Register.t |
30e0 | 68 65 20 62 65 67 69 6e 6e 69 6e 67 20 6f 66 20 61 20 73 74 72 69 6e 67 0a 20 20 20 20 69 66 20 | he.beginning.of.a.string.....if. |
3100 | 28 21 69 6e 73 69 64 65 43 6f 6d 6d 65 6e 74 20 26 26 20 21 69 6e 73 69 64 65 53 74 72 69 6e 67 | (!insideComment.&&.!insideString |
3120 | 20 26 26 20 28 63 75 72 72 65 6e 74 43 68 61 72 20 3d 3d 3d 20 22 5c 22 22 20 7c 7c 20 63 75 72 | .&&.(currentChar.===."\"".||.cur |
3140 | 72 65 6e 74 43 68 61 72 20 3d 3d 3d 20 22 27 22 29 29 20 7b 0a 20 20 20 20 20 20 69 66 20 28 73 | rentChar.===."'")).{.......if.(s |
3160 | 6f 75 72 63 65 5b 69 20 2d 20 31 5d 20 3d 3d 3d 20 22 5c 5c 22 29 20 63 6f 6e 74 69 6e 75 65 3b | ource[i.-.1].===."\\").continue; |
3180 | 20 2f 2f 20 65 73 63 61 70 69 6e 67 0a 0a 20 20 20 20 20 20 6f 70 65 6e 69 6e 67 51 75 6f 74 65 | .//.escaping........openingQuote |
31a0 | 20 3d 20 63 75 72 72 65 6e 74 43 68 61 72 3b 0a 20 20 20 20 20 20 69 6e 73 69 64 65 53 74 72 69 | .=.currentChar;.......insideStri |
31c0 | 6e 67 20 3d 20 74 72 75 65 3b 0a 0a 20 20 20 20 20 20 2f 2f 20 46 6f 72 20 73 74 72 69 6e 67 2d | ng.=.true;........//.For.string- |
31e0 | 71 75 6f 74 65 73 20 72 75 6c 65 0a 20 20 20 20 20 20 69 66 20 28 74 61 72 67 65 74 20 3d 3d 3d | quotes.rule.......if.(target.=== |
3200 | 20 63 75 72 72 65 6e 74 43 68 61 72 29 20 68 61 6e 64 6c 65 4d 61 74 63 68 28 67 65 74 4d 61 74 | .currentChar).handleMatch(getMat |
3220 | 63 68 28 69 29 29 3b 0a 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0a 20 20 20 20 7d 0a 0a 20 | ch(i));.......continue;.....}... |
3240 | 20 20 20 69 66 20 28 69 6e 73 69 64 65 53 74 72 69 6e 67 29 20 7b 0a 20 20 20 20 20 20 2f 2f 20 | ...if.(insideString).{.......//. |
3260 | 52 65 67 69 73 74 65 72 20 74 68 65 20 65 6e 64 20 6f 66 20 61 20 73 74 72 69 6e 67 0a 20 20 20 | Register.the.end.of.a.string.... |
3280 | 20 20 20 69 66 20 28 63 75 72 72 65 6e 74 43 68 61 72 20 3d 3d 3d 20 6f 70 65 6e 69 6e 67 51 75 | ...if.(currentChar.===.openingQu |
32a0 | 6f 74 65 29 20 7b 0a 20 20 20 20 20 20 20 20 69 66 20 28 73 6f 75 72 63 65 5b 69 20 2d 20 31 5d | ote).{.........if.(source[i.-.1] |
32c0 | 20 3d 3d 3d 20 22 5c 5c 22 29 20 63 6f 6e 74 69 6e 75 65 3b 20 2f 2f 20 65 73 63 61 70 69 6e 67 | .===."\\").continue;.//.escaping |
32e0 | 0a 20 20 20 20 20 20 20 20 69 6e 73 69 64 65 53 74 72 69 6e 67 20 3d 20 66 61 6c 73 65 3b 0a 20 | .........insideString.=.false;.. |
3300 | 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0a 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 | .......continue;.......}........ |
3320 | 69 66 20 28 73 6b 69 70 53 74 72 69 6e 67 73 29 20 63 6f 6e 74 69 6e 75 65 3b 0a 20 20 20 20 7d | if.(skipStrings).continue;.....} |
3340 | 0a 0a 20 20 20 20 2f 2f 20 52 65 67 69 73 74 65 72 20 74 68 65 20 62 65 67 69 6e 6e 69 6e 67 20 | ......//.Register.the.beginning. |
3360 | 6f 66 20 70 61 72 65 6e 73 2f 66 75 6e 63 74 69 6f 6e 73 0a 20 20 20 20 69 66 20 28 21 69 6e 73 | of.parens/functions.....if.(!ins |
3380 | 69 64 65 53 74 72 69 6e 67 20 26 26 20 21 69 6e 73 69 64 65 43 6f 6d 6d 65 6e 74 20 26 26 20 63 | ideString.&&.!insideComment.&&.c |
33a0 | 75 72 72 65 6e 74 43 68 61 72 20 3d 3d 3d 20 22 28 22 29 20 7b 0a 20 20 20 20 20 20 2f 2f 20 4b | urrentChar.===."(").{.......//.K |
33c0 | 65 65 70 20 74 72 61 63 6b 20 6f 66 20 6f 70 65 6e 69 6e 67 20 70 61 72 65 6e 74 68 65 74 69 63 | eep.track.of.opening.parenthetic |
33e0 | 61 6c 73 20 73 6f 20 74 68 61 74 20 77 65 0a 20 20 20 20 20 20 2f 2f 20 6b 6e 6f 77 20 77 68 65 | als.so.that.we.......//.know.whe |
3400 | 6e 20 74 68 65 20 6f 75 74 65 72 6d 6f 73 74 20 66 75 6e 63 74 69 6f 6e 20 28 70 6f 73 73 69 62 | n.the.outermost.function.(possib |
3420 | 6c 79 0a 20 20 20 20 20 20 2f 2f 20 63 6f 6e 74 61 69 6e 69 6e 67 20 6e 65 73 74 65 64 20 66 75 | ly.......//.containing.nested.fu |
3440 | 6e 63 74 69 6f 6e 73 29 20 69 73 20 63 6c 6f 73 69 6e 67 0a 20 20 20 20 20 20 6f 70 65 6e 69 6e | nctions).is.closing.......openin |
3460 | 67 50 61 72 65 6e 43 6f 75 6e 74 2b 2b 3b 0a 0a 20 20 20 20 20 20 69 6e 73 69 64 65 50 61 72 65 | gParenCount++;........insidePare |
3480 | 6e 73 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 2f 2f 20 4f 6e 6c 79 20 69 6e 73 69 64 65 20 | ns.=.true;.......//.Only.inside. |
34a0 | 61 20 66 75 6e 63 74 69 6f 6e 20 69 66 20 74 68 65 72 65 20 69 73 20 61 20 66 75 6e 63 74 69 6f | a.function.if.there.is.a.functio |
34c0 | 6e 20 6e 61 6d 65 0a 20 20 20 20 20 20 2f 2f 20 62 65 66 6f 72 65 20 74 68 65 20 6f 70 65 6e 69 | n.name.......//.before.the.openi |
34e0 | 6e 67 20 70 61 72 65 6e 0a 20 20 20 20 20 20 69 66 20 28 2f 5b 61 2d 7a 41 2d 5a 5d 2f 2e 74 65 | ng.paren.......if.(/[a-zA-Z]/.te |
3500 | 73 74 28 73 6f 75 72 63 65 5b 69 20 2d 20 31 5d 29 29 20 7b 0a 20 20 20 20 20 20 20 20 69 6e 73 | st(source[i.-.1])).{.........ins |
3520 | 69 64 65 46 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 20 3d 20 74 72 75 65 3b 0a 20 20 20 | ideFunctionArguments.=.true;.... |
3540 | 20 20 20 7d 0a 0a 20 20 20 20 20 20 69 66 20 28 74 61 72 67 65 74 20 3d 3d 3d 20 22 28 22 29 20 | ...}........if.(target.===."("). |
3560 | 68 61 6e 64 6c 65 4d 61 74 63 68 28 67 65 74 4d 61 74 63 68 28 69 29 29 3b 0a 20 20 20 20 20 20 | handleMatch(getMatch(i));....... |
3580 | 63 6f 6e 74 69 6e 75 65 3b 0a 20 20 20 20 7d 0a 0a 20 20 20 20 69 66 20 28 69 6e 73 69 64 65 50 | continue;.....}......if.(insideP |
35a0 | 61 72 65 6e 73 29 20 7b 0a 20 20 20 20 20 20 2f 2f 20 52 65 67 69 73 74 65 72 20 74 68 65 20 65 | arens).{.......//.Register.the.e |
35c0 | 6e 64 20 6f 66 20 61 20 66 75 6e 63 74 69 6f 6e 0a 20 20 20 20 20 20 69 66 20 28 63 75 72 72 65 | nd.of.a.function.......if.(curre |
35e0 | 6e 74 43 68 61 72 20 3d 3d 3d 20 22 29 22 29 20 7b 0a 20 20 20 20 20 20 20 20 6f 70 65 6e 69 6e | ntChar.===.")").{.........openin |
3600 | 67 50 61 72 65 6e 43 6f 75 6e 74 2d 2d 3b 0a 20 20 20 20 20 20 20 20 2f 2f 20 44 6f 20 74 68 69 | gParenCount--;.........//.Do.thi |
3620 | 73 20 68 65 72 65 20 73 6f 20 74 68 65 20 6d 61 74 63 68 20 69 73 20 73 74 69 6c 6c 20 74 65 63 | s.here.so.the.match.is.still.tec |
3640 | 68 6e 69 63 61 6c 6c 79 20 69 6e 73 69 64 65 20 61 20 66 75 6e 63 74 69 6f 6e 0a 20 20 20 20 20 | hnically.inside.a.function...... |
3660 | 20 20 20 69 66 20 28 74 61 72 67 65 74 20 3d 3d 3d 20 22 29 22 29 20 68 61 6e 64 6c 65 4d 61 74 | ...if.(target.===.")").handleMat |
3680 | 63 68 28 67 65 74 4d 61 74 63 68 28 69 29 29 3b 0a 20 20 20 20 20 20 20 20 69 66 20 28 6f 70 65 | ch(getMatch(i));.........if.(ope |
36a0 | 6e 69 6e 67 50 61 72 65 6e 43 6f 75 6e 74 20 3d 3d 3d 20 30 29 20 7b 0a 20 20 20 20 20 20 20 20 | ningParenCount.===.0).{......... |
36c0 | 20 20 69 6e 73 69 64 65 50 61 72 65 6e 73 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 | ..insideParens.=.false;......... |
36e0 | 20 20 69 6e 73 69 64 65 46 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 20 3d 20 66 61 6c 73 | ..insideFunctionArguments.=.fals |
3700 | 65 3b 0a 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0a 20 | e;.........}.........continue;.. |
3720 | 20 20 20 20 20 7d 0a 20 20 20 20 7d 0a 0a 20 20 20 20 76 61 72 20 69 73 46 75 6e 63 74 69 6f 6e | .....}.....}......var.isFunction |
3740 | 4e 61 6d 65 20 3d 20 2f 5e 5b 61 2d 7a 41 2d 5a 5d 2a 5c 28 2f 2e 74 65 73 74 28 73 6f 75 72 63 | Name.=./^[a-zA-Z]*\(/.test(sourc |
3760 | 65 2e 73 6c 69 63 65 28 69 29 29 3b 0a 20 20 20 20 69 66 20 28 73 6b 69 70 46 75 6e 63 74 69 6f | e.slice(i));.....if.(skipFunctio |
3780 | 6e 4e 61 6d 65 73 20 26 26 20 69 73 46 75 6e 63 74 69 6f 6e 4e 61 6d 65 29 20 63 6f 6e 74 69 6e | nNames.&&.isFunctionName).contin |
37a0 | 75 65 3b 0a 20 20 20 20 69 66 20 28 6f 6e 6c 79 46 75 6e 63 74 69 6f 6e 4e 61 6d 65 73 20 26 26 | ue;.....if.(onlyFunctionNames.&& |
37c0 | 20 21 69 73 46 75 6e 63 74 69 6f 6e 4e 61 6d 65 29 20 63 6f 6e 74 69 6e 75 65 3b 0a 0a 20 20 20 | .!isFunctionName).continue;..... |
37e0 | 20 76 61 72 20 6d 61 74 63 68 20 3d 20 67 65 74 4d 61 74 63 68 28 69 29 3b 0a 0a 20 20 20 20 69 | .var.match.=.getMatch(i);......i |
3800 | 66 20 28 21 6d 61 74 63 68 29 20 63 6f 6e 74 69 6e 75 65 3b 0a 20 20 20 20 68 61 6e 64 6c 65 4d | f.(!match).continue;.....handleM |
3820 | 61 74 63 68 28 6d 61 74 63 68 29 3b 0a 20 20 20 20 69 66 20 28 6f 70 74 69 6f 6e 73 2e 6f 6e 63 | atch(match);.....if.(options.onc |
3840 | 65 29 20 72 65 74 75 72 6e 3b 0a 20 20 7d 0a 0a 20 20 66 75 6e 63 74 69 6f 6e 20 68 61 6e 64 6c | e).return;...}....function.handl |
3860 | 65 4d 61 74 63 68 28 6d 61 74 63 68 29 20 7b 0a 20 20 20 20 69 66 20 28 6f 6e 6c 79 50 61 72 65 | eMatch(match).{.....if.(onlyPare |
3880 | 6e 74 68 65 74 69 63 61 6c 73 20 26 26 20 21 69 6e 73 69 64 65 50 61 72 65 6e 73 29 20 72 65 74 | ntheticals.&&.!insideParens).ret |
38a0 | 75 72 6e 3b 0a 20 20 20 20 69 66 20 28 73 6b 69 70 50 61 72 65 6e 74 68 65 74 69 63 61 6c 73 20 | urn;.....if.(skipParentheticals. |
38c0 | 26 26 20 69 6e 73 69 64 65 50 61 72 65 6e 73 29 20 72 65 74 75 72 6e 3b 0a 20 20 20 20 69 66 20 | &&.insideParens).return;.....if. |
38e0 | 28 6f 6e 6c 79 46 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 20 26 26 20 21 69 6e 73 69 64 | (onlyFunctionArguments.&&.!insid |
3900 | 65 46 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 29 20 72 65 74 75 72 6e 3b 0a 20 20 20 20 | eFunctionArguments).return;..... |
3920 | 69 66 20 28 73 6b 69 70 46 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 20 26 26 20 69 6e 73 | if.(skipFunctionArguments.&&.ins |
3940 | 69 64 65 46 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 29 20 72 65 74 75 72 6e 3b 0a 20 20 | ideFunctionArguments).return;... |
3960 | 20 20 69 66 20 28 6f 6e 6c 79 53 74 72 69 6e 67 73 20 26 26 20 21 69 6e 73 69 64 65 53 74 72 69 | ..if.(onlyStrings.&&.!insideStri |
3980 | 6e 67 29 20 72 65 74 75 72 6e 3b 0a 20 20 20 20 69 66 20 28 6f 6e 6c 79 43 6f 6d 6d 65 6e 74 73 | ng).return;.....if.(onlyComments |
39a0 | 20 26 26 20 21 69 6e 73 69 64 65 43 6f 6d 6d 65 6e 74 29 20 72 65 74 75 72 6e 3b 0a 20 20 20 20 | .&&.!insideComment).return;..... |
39c0 | 6d 61 74 63 68 43 6f 75 6e 74 2b 2b 3b 0a 20 20 20 20 63 61 6c 6c 62 61 63 6b 28 6d 61 74 63 68 | matchCount++;.....callback(match |
39e0 | 2c 20 6d 61 74 63 68 43 6f 75 6e 74 29 3b 0a 20 20 7d 0a 7d 0a 00 00 00 00 00 00 00 00 00 00 00 | ,.matchCount);...}.}............ |
3a00 | 70 61 63 6b 61 67 65 2f 74 65 73 74 2e 6a 73 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | package/test.js................. |
3a20 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
3a40 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
3a60 | 00 00 00 00 30 30 30 36 34 34 20 00 30 30 30 37 36 35 20 00 30 30 30 30 32 34 20 00 30 30 30 30 | ....000644..000765..000024..0000 |
3a80 | 30 32 36 31 36 33 20 00 31 32 37 32 37 31 34 31 36 30 36 00 30 31 32 30 36 32 20 00 30 00 00 00 | 026163..12727141606.012062..0... |
3aa0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
3ac0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
3ae0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
3b00 | 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....................... |
3b20 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
3b40 | 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......... |
3b60 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
3b80 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
3ba0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
3bc0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
3be0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
3c00 | 76 61 72 20 74 65 73 74 20 3d 20 72 65 71 75 69 72 65 28 22 74 61 70 65 22 29 3b 0a 76 61 72 20 | var.test.=.require("tape");.var. |
3c20 | 73 74 79 6c 65 53 65 61 72 63 68 20 3d 20 72 65 71 75 69 72 65 28 22 2e 2f 69 6e 64 65 78 22 29 | styleSearch.=.require("./index") |
3c40 | 3b 0a 0a 66 75 6e 63 74 69 6f 6e 20 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 6f | ;..function.styleSearchResults(o |
3c60 | 70 74 69 6f 6e 73 29 20 7b 0a 20 20 63 6f 6e 73 74 20 72 65 73 75 6c 74 73 20 3d 20 5b 5d 3b 0a | ptions).{...const.results.=.[];. |
3c80 | 20 20 73 74 79 6c 65 53 65 61 72 63 68 28 6f 70 74 69 6f 6e 73 2c 20 66 75 6e 63 74 69 6f 6e 28 | ..styleSearch(options,.function( |
3ca0 | 6d 61 74 63 68 29 20 7b 0a 20 20 20 20 72 65 73 75 6c 74 73 2e 70 75 73 68 28 6d 61 74 63 68 2e | match).{.....results.push(match. |
3cc0 | 73 74 61 72 74 49 6e 64 65 78 29 3b 0a 20 20 7d 29 3b 0a 20 20 72 65 74 75 72 6e 20 72 65 73 75 | startIndex);...});...return.resu |
3ce0 | 6c 74 73 3b 0a 7d 0a 0a 74 65 73 74 28 22 64 65 66 61 75 6c 74 20 6f 70 74 69 6f 6e 73 22 2c 20 | lts;.}..test("default.options",. |
3d00 | 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c | function(t).{...t.deepEqual(styl |
3d20 | 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 | eSearchResults({.....source:."ab |
3d40 | 63 20 63 62 61 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 63 22 2c 0a 20 20 7d 29 2c 20 5b | c.cba",.....target:."c",...}),.[ |
3d60 | 20 32 2c 20 34 20 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 | .2,.4.]);...t.deepEqual(styleSea |
3d80 | 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 63 62 | rchResults({.....source:."abc.cb |
3da0 | 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 61 22 2c 0a 20 20 7d 29 2c 20 5b 30 5d 29 3b 0a | ",.....target:."a",...}),.[0]);. |
3dc0 | 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 | ..t.deepEqual(styleSearchResults |
3de0 | 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 63 62 61 22 2c 0a 20 20 20 20 74 61 | ({.....source:."abc.cba",.....ta |
3e00 | 72 67 65 74 3a 20 22 62 22 2c 0a 20 20 7d 29 2c 20 5b 20 31 2c 20 35 20 5d 29 3b 0a 20 20 74 2e | rget:."b",...}),.[.1,.5.]);...t. |
3e20 | 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 | deepEqual(styleSearchResults({.. |
3e40 | 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 5c 22 76 61 72 28 2d 2d 63 62 61 29 5c 22 22 2c | ...source:."abc.\"var(--cba)\"", |
3e60 | 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 61 22 2c 0a 20 20 7d 29 2c 20 5b 30 5d 29 3b 0a 20 20 | .....target:."a",...}),.[0]);... |
3e80 | 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 6f 6e 63 65 22 2c 20 66 75 6e 63 74 | t.end();.});..test("once",.funct |
3ea0 | 69 6f 6e 28 74 29 20 7b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 | ion(t).{...t.deepEqual(styleSear |
3ec0 | 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 63 62 61 | chResults({.....source:."abc.cba |
3ee0 | 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 63 22 2c 0a 20 20 20 20 6f 6e 63 65 3a 20 74 72 | ",.....target:."c",.....once:.tr |
3f00 | 75 65 2c 0a 20 20 7d 29 2c 20 5b 32 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 | ue,...}),.[2]);...t.deepEqual(st |
3f20 | 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 | yleSearchResults({.....source:." |
3f40 | 61 62 63 20 63 62 61 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 61 22 2c 0a 20 20 20 20 6f | abc.cba",.....target:."a",.....o |
3f60 | 6e 63 65 3a 20 74 72 75 65 2c 0a 20 20 7d 29 2c 20 5b 30 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 | nce:.true,...}),.[0]);...t.deepE |
3f80 | 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f | qual(styleSearchResults({.....so |
3fa0 | 75 72 63 65 3a 20 22 61 62 63 20 63 62 61 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 62 22 | urce:."abc.cba",.....target:."b" |
3fc0 | 2c 0a 20 20 20 20 6f 6e 63 65 3a 20 66 61 6c 73 65 2c 0a 20 20 7d 29 2c 20 5b 20 31 2c 20 35 20 | ,.....once:.false,...}),.[.1,.5. |
3fe0 | 5d 29 3b 0a 20 20 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 66 75 6e 63 74 69 | ]);...t.end();.});..test("functi |
4000 | 6f 6e 41 72 67 75 6d 65 6e 74 73 3a 20 27 6f 6e 6c 79 27 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 | onArguments:.'only'",.function(t |
4020 | 29 20 7b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 | ).{...t.deepEqual(styleSearchRes |
4040 | 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 76 61 72 28 2d 2d 63 62 | ults({.....source:."abc.var(--cb |
4060 | 61 29 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 63 22 2c 0a 20 20 20 20 66 75 6e 63 74 69 | a)",.....target:."c",.....functi |
4080 | 6f 6e 41 72 67 75 6d 65 6e 74 73 3a 20 22 6f 6e 6c 79 22 2c 0a 20 20 7d 29 2c 20 5b 31 30 5d 29 | onArguments:."only",...}),.[10]) |
40a0 | 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c | ;...t.deepEqual(styleSearchResul |
40c0 | 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 76 61 72 28 2d 2d 63 62 61 29 | ts({.....source:."abc.var(--cba) |
40e0 | 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 61 22 2c 0a 20 20 20 20 66 75 6e 63 74 69 6f 6e | ",.....target:."a",.....function |
4100 | 41 72 67 75 6d 65 6e 74 73 3a 20 22 6f 6e 6c 79 22 2c 0a 20 20 7d 29 2c 20 5b 31 32 5d 29 3b 0a | Arguments:."only",...}),.[12]);. |
4120 | 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 | ..t.deepEqual(styleSearchResults |
4140 | 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 5c 22 76 61 72 28 2d 2d 63 62 61 29 | ({.....source:."abc.\"var(--cba) |
4160 | 5c 22 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 61 22 2c 0a 20 20 20 20 66 75 6e 63 74 69 | \"",.....target:."a",.....functi |
4180 | 6f 6e 41 72 67 75 6d 65 6e 74 73 3a 20 22 6f 6e 6c 79 22 2c 0a 20 20 7d 29 2c 20 5b 5d 29 3b 0a | onArguments:."only",...}),.[]);. |
41a0 | 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 | ..t.deepEqual(styleSearchResults |
41c0 | 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 74 72 61 6e 73 6c 61 74 65 28 31 70 78 2c 20 63 | ({.....source:."translate(1px,.c |
41e0 | 61 6c 63 28 31 70 78 20 2a 20 32 29 29 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 31 22 2c | alc(1px.*.2))",.....target:."1", |
4200 | 0a 20 20 20 20 66 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 3a 20 22 6f 6e 6c 79 22 2c 0a | .....functionArguments:."only",. |
4220 | 20 20 7d 29 2c 20 5b 20 31 30 2c 20 32 30 20 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c | ..}),.[.10,.20.]);...t.deepEqual |
4240 | 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 | (styleSearchResults({.....source |
4260 | 3a 20 22 76 61 72 28 2d 2d 68 6f 72 73 65 29 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 76 | :."var(--horse)",.....target:."v |
4280 | 22 2c 0a 20 20 20 20 66 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 3a 20 22 6f 6e 6c 79 22 | ",.....functionArguments:."only" |
42a0 | 2c 0a 20 20 7d 29 2c 20 5b 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 | ,...}),.[]);...t.deepEqual(style |
42c0 | 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 | SearchResults({.....source:."abc |
42e0 | 20 28 61 62 63 29 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 62 22 2c 0a 20 20 20 20 66 75 | .(abc)",.....target:."b",.....fu |
4300 | 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 3a 20 22 6f 6e 6c 79 22 2c 0a 20 20 7d 29 2c 20 5b | nctionArguments:."only",...}),.[ |
4320 | 5d 2c 20 22 70 61 72 65 6e 73 20 77 69 74 68 6f 75 74 20 66 75 6e 63 74 69 6f 6e 20 69 73 20 6e | ],."parens.without.function.is.n |
4340 | 6f 74 20 69 6e 74 65 72 70 72 65 74 65 64 20 61 73 20 61 20 66 75 6e 63 74 69 6f 6e 22 29 3b 0a | ot.interpreted.as.a.function");. |
4360 | 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 | ..t.deepEqual(styleSearchResults |
4380 | 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 64 65 24 28 61 62 63 29 66 67 22 2c 0a 20 20 20 | ({.....source:."de$(abc)fg",.... |
43a0 | 20 74 61 72 67 65 74 3a 20 22 62 22 2c 0a 20 20 20 20 66 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 | .target:."b",.....functionArgume |
43c0 | 6e 74 73 3a 20 22 6f 6e 6c 79 22 2c 0a 20 20 7d 29 2c 20 5b 5d 2c 20 22 70 61 72 65 6e 73 20 70 | nts:."only",...}),.[],."parens.p |
43e0 | 72 65 63 65 64 65 64 20 62 79 20 60 24 60 2c 20 66 6f 72 20 70 6f 73 74 63 73 73 2d 73 69 6d 70 | receded.by.`$`,.for.postcss-simp |
4400 | 6c 65 2d 76 61 72 73 20 69 6e 74 65 72 70 6f 6c 61 74 69 6f 6e 2c 20 6e 6f 74 20 69 6e 74 65 72 | le-vars.interpolation,.not.inter |
4420 | 70 72 65 74 65 64 20 61 73 20 61 20 66 75 6e 63 74 69 6f 6e 22 29 3b 0a 20 20 74 2e 64 65 65 70 | preted.as.a.function");...t.deep |
4440 | 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 | Equal(styleSearchResults({.....s |
4460 | 6f 75 72 63 65 3a 20 22 64 65 24 28 61 62 63 29 66 67 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a | ource:."de$(abc)fg",.....target: |
4480 | 20 22 29 22 2c 0a 20 20 20 20 66 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 3a 20 22 6f 6e | .")",.....functionArguments:."on |
44a0 | 6c 79 22 2c 0a 20 20 7d 29 2c 20 5b 5d 2c 20 22 63 6c 6f 73 69 6e 67 20 70 61 72 65 6e 20 6f 66 | ly",...}),.[],."closing.paren.of |
44c0 | 20 6e 6f 6e 2d 66 75 6e 63 74 69 6f 6e 20 69 73 20 69 67 6e 6f 72 65 64 22 29 3b 0a 20 20 74 2e | .non-function.is.ignored");...t. |
44e0 | 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 66 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 | end();.});..test("functionArgume |
4500 | 6e 74 73 3a 20 27 73 6b 69 70 27 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 74 2e | nts:.'skip'",.function(t).{...t. |
4520 | 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 | deepEqual(styleSearchResults({.. |
4540 | 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 76 61 72 28 2d 2d 63 62 61 29 22 2c 0a 20 20 20 | ...source:."abc.var(--cba)",.... |
4560 | 20 74 61 72 67 65 74 3a 20 22 63 22 2c 0a 20 20 20 20 66 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 | .target:."c",.....functionArgume |
4580 | 6e 74 73 3a 20 22 73 6b 69 70 22 2c 0a 20 20 7d 29 2c 20 5b 32 5d 29 3b 0a 20 20 74 2e 64 65 65 | nts:."skip",...}),.[2]);...t.dee |
45a0 | 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 | pEqual(styleSearchResults({..... |
45c0 | 73 6f 75 72 63 65 3a 20 22 61 62 63 20 76 61 72 28 2d 2d 63 62 61 29 22 2c 0a 20 20 20 20 74 61 | source:."abc.var(--cba)",.....ta |
45e0 | 72 67 65 74 3a 20 22 61 22 2c 0a 20 20 20 20 66 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 | rget:."a",.....functionArguments |
4600 | 3a 20 22 73 6b 69 70 22 2c 0a 20 20 7d 29 2c 20 5b 30 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 | :."skip",...}),.[0]);...t.deepEq |
4620 | 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 | ual(styleSearchResults({.....sou |
4640 | 72 63 65 3a 20 22 61 62 63 20 5c 22 61 20 76 61 72 28 2d 2d 63 62 61 29 5c 22 22 2c 0a 20 20 20 | rce:."abc.\"a.var(--cba)\"",.... |
4660 | 20 74 61 72 67 65 74 3a 20 22 61 22 2c 0a 20 20 20 20 66 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 | .target:."a",.....functionArgume |
4680 | 6e 74 73 3a 20 22 73 6b 69 70 22 2c 0a 20 20 7d 29 2c 20 5b 30 5d 29 3b 0a 20 20 74 2e 64 65 65 | nts:."skip",...}),.[0]);...t.dee |
46a0 | 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 | pEqual(styleSearchResults({..... |
46c0 | 73 6f 75 72 63 65 3a 20 22 74 72 61 6e 73 6c 61 74 65 28 31 70 78 2c 20 63 61 6c 63 28 31 70 78 | source:."translate(1px,.calc(1px |
46e0 | 20 2a 20 32 29 29 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 31 22 2c 0a 20 20 20 20 66 75 | .*.2))",.....target:."1",.....fu |
4700 | 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 3a 20 22 73 6b 69 70 22 2c 0a 20 20 7d 29 2c 20 5b | nctionArguments:."skip",...}),.[ |
4720 | 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 | ]);...t.deepEqual(styleSearchRes |
4740 | 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 76 61 72 28 2d 2d 68 6f 72 73 65 29 | ults({.....source:."var(--horse) |
4760 | 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 76 22 2c 0a 20 20 20 20 66 75 6e 63 74 69 6f 6e | ",.....target:."v",.....function |
4780 | 41 72 67 75 6d 65 6e 74 73 3a 20 22 73 6b 69 70 22 2c 0a 20 20 7d 29 2c 20 5b 5d 29 3b 0a 20 20 | Arguments:."skip",...}),.[]);... |
47a0 | 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b | t.deepEqual(styleSearchResults({ |
47c0 | 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 28 64 65 66 29 22 2c 0a 20 20 20 20 74 61 | .....source:."abc.(def)",.....ta |
47e0 | 72 67 65 74 3a 20 22 65 22 2c 0a 20 20 20 20 66 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 | rget:."e",.....functionArguments |
4800 | 3a 20 22 73 6b 69 70 22 2c 0a 20 20 7d 29 2c 20 5b 36 5d 2c 20 22 70 61 72 65 6e 73 20 77 69 74 | :."skip",...}),.[6],."parens.wit |
4820 | 68 6f 75 74 20 66 75 6e 63 74 69 6f 6e 20 69 73 20 6e 6f 74 20 69 6e 74 65 72 70 72 65 74 65 64 | hout.function.is.not.interpreted |
4840 | 20 61 73 20 61 20 66 75 6e 63 74 69 6f 6e 22 29 3b 0a 20 20 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b | .as.a.function");...t.end();.}); |
4860 | 0a 0a 74 65 73 74 28 22 70 61 72 65 6e 74 68 65 74 69 63 61 6c 73 3a 20 27 73 6b 69 70 27 22 2c | ..test("parentheticals:.'skip'", |
4880 | 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 | .function(t).{...t.deepEqual(sty |
48a0 | 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 | leSearchResults({.....source:."a |
48c0 | 62 63 20 76 61 72 28 2d 2d 63 62 61 29 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 63 22 2c | bc.var(--cba)",.....target:."c", |
48e0 | 0a 20 20 20 20 70 61 72 65 6e 74 68 65 74 69 63 61 6c 73 3a 20 22 73 6b 69 70 22 2c 0a 20 20 7d | .....parentheticals:."skip",...} |
4900 | 29 2c 20 5b 32 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 | ),.[2]);...t.deepEqual(styleSear |
4920 | 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 76 61 72 | chResults({.....source:."abc.var |
4940 | 28 2d 2d 63 62 61 29 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 61 22 2c 0a 20 20 20 20 70 | (--cba)",.....target:."a",.....p |
4960 | 61 72 65 6e 74 68 65 74 69 63 61 6c 73 3a 20 22 73 6b 69 70 22 2c 0a 20 20 7d 29 2c 20 5b 30 5d | arentheticals:."skip",...}),.[0] |
4980 | 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 | );...t.deepEqual(styleSearchResu |
49a0 | 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 5c 22 61 20 76 61 72 28 2d | lts({.....source:."abc.\"a.var(- |
49c0 | 2d 63 62 61 29 5c 22 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 61 22 2c 0a 20 20 20 20 70 | -cba)\"",.....target:."a",.....p |
49e0 | 61 72 65 6e 74 68 65 74 69 63 61 6c 73 3a 20 22 73 6b 69 70 22 2c 0a 20 20 7d 29 2c 20 5b 30 5d | arentheticals:."skip",...}),.[0] |
4a00 | 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 | );...t.deepEqual(styleSearchResu |
4a20 | 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 74 72 61 6e 73 6c 61 74 65 28 31 70 78 | lts({.....source:."translate(1px |
4a40 | 2c 20 63 61 6c 63 28 31 70 78 20 2a 20 32 29 29 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 | ,.calc(1px.*.2))",.....target:." |
4a60 | 31 22 2c 0a 20 20 20 20 70 61 72 65 6e 74 68 65 74 69 63 61 6c 73 3a 20 22 73 6b 69 70 22 2c 0a | 1",.....parentheticals:."skip",. |
4a80 | 20 20 7d 29 2c 20 5b 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 | ..}),.[]);...t.deepEqual(styleSe |
4aa0 | 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 76 61 72 28 2d | archResults({.....source:."var(- |
4ac0 | 2d 68 6f 72 73 65 29 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 76 22 2c 0a 20 20 20 20 70 | -horse)",.....target:."v",.....p |
4ae0 | 61 72 65 6e 74 68 65 74 69 63 61 6c 73 3a 20 22 73 6b 69 70 22 2c 0a 20 20 7d 29 2c 20 5b 5d 29 | arentheticals:."skip",...}),.[]) |
4b00 | 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c | ;...t.deepEqual(styleSearchResul |
4b20 | 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 28 64 65 66 29 22 2c 0a 20 20 | ts({.....source:."abc.(def)",... |
4b40 | 20 20 74 61 72 67 65 74 3a 20 22 65 22 2c 0a 20 20 20 20 70 61 72 65 6e 74 68 65 74 69 63 61 6c | ..target:."e",.....parenthetical |
4b60 | 73 3a 20 22 73 6b 69 70 22 2c 0a 20 20 7d 29 2c 20 5b 5d 2c 20 22 70 61 72 65 6e 73 20 77 69 74 | s:."skip",...}),.[],."parens.wit |
4b80 | 68 6f 75 74 20 66 75 6e 63 74 69 6f 6e 20 61 72 65 20 73 74 69 6c 6c 20 69 67 6e 6f 72 65 64 22 | hout.function.are.still.ignored" |
4ba0 | 29 3b 0a 20 20 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 69 67 6e 6f 72 65 73 | );...t.end();.});..test("ignores |
4bc0 | 20 6d 61 74 63 68 65 73 20 69 6e 73 69 64 65 20 73 69 6e 67 6c 65 2d 71 75 6f 74 65 20 73 74 72 | .matches.inside.single-quote.str |
4be0 | 69 6e 67 73 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 74 2e 64 65 65 70 45 71 75 | ings",.function(t).{...t.deepEqu |
4c00 | 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 | al(styleSearchResults({.....sour |
4c20 | 63 65 3a 20 22 61 62 63 20 27 61 62 63 27 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 63 22 | ce:."abc.'abc'",.....target:."c" |
4c40 | 2c 0a 20 20 7d 29 2c 20 5b 32 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c | ,...}),.[2]);...t.deepEqual(styl |
4c60 | 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 | eSearchResults({.....source:."ab |
4c80 | 63 20 27 61 62 63 27 20 63 62 61 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 63 22 2c 0a 20 | c.'abc'.cba",.....target:."c",.. |
4ca0 | 20 7d 29 2c 20 5b 20 32 2c 20 31 30 20 5d 29 3b 0a 20 20 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a | .}),.[.2,.10.]);...t.end();.});. |
4cc0 | 0a 74 65 73 74 28 22 69 67 6e 6f 72 65 73 20 6d 61 74 63 68 65 73 20 69 6e 73 69 64 65 20 64 6f | .test("ignores.matches.inside.do |
4ce0 | 75 62 6c 65 2d 71 75 6f 74 65 20 73 74 72 69 6e 67 73 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 29 | uble-quote.strings",.function(t) |
4d00 | 20 7b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 | .{...t.deepEqual(styleSearchResu |
4d20 | 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 27 61 62 63 20 22 61 62 63 22 27 2c 0a 20 | lts({.....source:.'abc."abc"',.. |
4d40 | 20 20 20 74 61 72 67 65 74 3a 20 22 63 22 2c 0a 20 20 7d 29 2c 20 5b 32 5d 29 3b 0a 20 20 74 2e | ...target:."c",...}),.[2]);...t. |
4d60 | 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 | deepEqual(styleSearchResults({.. |
4d80 | 20 20 20 73 6f 75 72 63 65 3a 20 27 61 62 63 20 22 61 62 63 22 20 63 62 61 27 2c 0a 20 20 20 20 | ...source:.'abc."abc".cba',..... |
4da0 | 74 61 72 67 65 74 3a 20 22 63 22 2c 0a 20 20 7d 29 2c 20 5b 20 32 2c 20 31 30 20 5d 29 3b 0a 20 | target:."c",...}),.[.2,.10.]);.. |
4dc0 | 20 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 73 74 72 69 6e 67 73 3a 20 27 63 | .t.end();.});..test("strings:.'c |
4de0 | 68 65 63 6b 27 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 74 2e 64 65 65 70 45 71 | heck'",.function(t).{...t.deepEq |
4e00 | 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 | ual(styleSearchResults({.....sou |
4e20 | 72 63 65 3a 20 22 61 62 63 20 27 61 62 63 27 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 62 | rce:."abc.'abc'",.....target:."b |
4e40 | 22 2c 0a 20 20 20 20 73 74 72 69 6e 67 73 3a 20 22 63 68 65 63 6b 22 2c 0a 20 20 7d 29 2c 20 5b | ",.....strings:."check",...}),.[ |
4e60 | 20 31 2c 20 36 20 5d 29 3b 0a 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 | .1,.6.]);....t.deepEqual(styleSe |
4e80 | 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 2f | archResults({.....source:."abc./ |
4ea0 | 2a 20 27 61 62 63 27 20 2a 2f 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 62 22 2c 0a 20 20 | *.'abc'.*/",.....target:."b",... |
4ec0 | 20 20 73 74 72 69 6e 67 73 3a 20 22 63 68 65 63 6b 22 2c 0a 20 20 7d 29 2c 20 5b 31 5d 2c 20 22 | ..strings:."check",...}),.[1],." |
4ee0 | 6e 6f 20 73 74 72 69 6e 67 73 20 69 6e 73 69 64 65 20 63 6f 6d 6d 65 6e 74 73 22 29 3b 0a 20 20 | no.strings.inside.comments");... |
4f00 | 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 73 74 72 69 6e 67 73 3a 20 27 6f 6e | t.end();.});..test("strings:.'on |
4f20 | 6c 79 27 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 | ly'",.function(t).{...t.deepEqua |
4f40 | 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 | l(styleSearchResults({.....sourc |
4f60 | 65 3a 20 27 61 62 63 20 22 61 62 63 22 27 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 62 22 2c | e:.'abc."abc"',.....target:."b", |
4f80 | 0a 20 20 20 20 73 74 72 69 6e 67 73 3a 20 22 6f 6e 6c 79 22 2c 0a 20 20 7d 29 2c 20 5b 36 5d 29 | .....strings:."only",...}),.[6]) |
4fa0 | 3b 0a 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 | ;....t.deepEqual(styleSearchResu |
4fc0 | 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 70 5b 68 72 65 66 5e 3d 27 68 74 74 70 | lts({.....source:."p[href^='http |
4fe0 | 73 3a 2f 2f 27 5d 3a 62 65 66 6f 72 65 20 7b 20 63 6f 6e 74 65 6e 74 3a 20 5c 22 5c 2f 2a 5c 22 | s://']:before.{.content:.\"\/*\" |
5000 | 3b 20 5c 6e 20 20 74 6f 70 3a 20 30 3b 5c 6e 7d 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 | ;.\n..top:.0;\n}",.....target:." |
5020 | 5c 6e 22 2c 0a 20 20 20 20 73 74 72 69 6e 67 73 3a 20 22 6f 6e 6c 79 22 2c 0a 20 20 7d 29 2c 20 | \n",.....strings:."only",...}),. |
5040 | 5b 5d 2c 20 22 63 6f 6d 6d 65 6e 74 73 20 64 6f 20 6e 6f 74 20 73 74 61 72 74 20 69 6e 73 69 64 | [],."comments.do.not.start.insid |
5060 | 65 20 73 74 72 69 6e 67 73 22 29 3b 0a 0a 20 20 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 | e.strings");....t.end();.});..te |
5080 | 73 74 28 22 69 67 6e 6f 72 65 73 20 6d 61 74 63 68 65 73 20 69 6e 73 69 64 65 20 63 6f 6d 6d 65 | st("ignores.matches.inside.comme |
50a0 | 6e 74 73 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 | nts",.function(t).{...t.deepEqua |
50c0 | 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 | l(styleSearchResults({.....sourc |
50e0 | 65 3a 20 22 61 62 63 2f 2a 63 6f 6d 6d 65 6e 74 2a 2f 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a | e:."abc/*comment*/",.....target: |
5100 | 20 22 6d 22 2c 0a 20 20 7d 29 2c 20 5b 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 | ."m",...}),.[]);...t.deepEqual(s |
5120 | 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 | tyleSearchResults({.....source:. |
5140 | 22 61 62 63 2f 2a 63 6f 6d 6d 61 6e 64 2a 2f 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 61 | "abc/*command*/",.....target:."a |
5160 | 22 2c 0a 20 20 7d 29 2c 20 5b 30 5d 29 3b 0a 20 20 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 | ",...}),.[0]);...t.end();.});..t |
5180 | 65 73 74 28 22 63 6f 6d 6d 65 6e 74 73 3a 20 27 63 68 65 63 6b 27 22 2c 20 66 75 6e 63 74 69 6f | est("comments:.'check'",.functio |
51a0 | 6e 28 74 29 20 7b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 | n(t).{...t.deepEqual(styleSearch |
51c0 | 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 2f 2a 61 62 63 2a | Results({.....source:."abc/*abc* |
51e0 | 2f 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 62 22 2c 0a 20 20 20 20 63 6f 6d 6d 65 6e 74 | /",.....target:."b",.....comment |
5200 | 73 3a 20 22 63 68 65 63 6b 22 2c 0a 20 20 7d 29 2c 20 5b 20 31 2c 20 36 20 5d 29 3b 0a 20 20 74 | s:."check",...}),.[.1,.6.]);...t |
5220 | 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 63 6f 6d 6d 65 6e 74 73 3a 20 27 6f 6e | .end();.});..test("comments:.'on |
5240 | 6c 79 27 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 | ly'",.function(t).{...t.deepEqua |
5260 | 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 | l(styleSearchResults({.....sourc |
5280 | 65 3a 20 22 61 62 63 2f 2a 61 62 63 2a 2f 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 62 22 | e:."abc/*abc*/",.....target:."b" |
52a0 | 2c 0a 20 20 20 20 63 6f 6d 6d 65 6e 74 73 3a 20 22 6f 6e 6c 79 22 2c 0a 20 20 7d 29 2c 20 5b 36 | ,.....comments:."only",...}),.[6 |
52c0 | 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 | ]);...t.deepEqual(styleSearchRes |
52e0 | 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 2f 2a 2f 61 62 63 2a 2f 22 | ults({.....source:."abc/*/abc*/" |
5300 | 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 62 22 2c 0a 20 20 20 20 63 6f 6d 6d 65 6e 74 73 3a | ,.....target:."b",.....comments: |
5320 | 20 22 6f 6e 6c 79 22 2c 0a 20 20 7d 29 2c 20 5b 37 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 | ."only",...}),.[7]);...t.deepEqu |
5340 | 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 | al(styleSearchResults({.....sour |
5360 | 63 65 3a 20 22 61 62 27 63 2f 2a 61 62 63 2a 2f 63 27 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a | ce:."ab'c/*abc*/c'",.....target: |
5380 | 20 22 62 22 2c 0a 20 20 20 20 63 6f 6d 6d 65 6e 74 73 3a 20 22 6f 6e 6c 79 22 2c 0a 20 20 7d 29 | ."b",.....comments:."only",...}) |
53a0 | 2c 20 5b 5d 2c 20 22 6e 6f 20 63 6f 6d 6d 65 6e 74 73 20 69 6e 73 69 64 65 20 73 74 72 69 6e 67 | ,.[],."no.comments.inside.string |
53c0 | 73 22 29 3b 0a 20 20 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 69 67 6e 6f 72 | s");...t.end();.});..test("ignor |
53e0 | 65 73 20 6d 61 74 63 68 65 73 20 69 6e 73 69 64 65 20 73 69 6e 67 6c 65 2d 6c 69 6e 65 20 63 6f | es.matches.inside.single-line.co |
5400 | 6d 6d 65 6e 74 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 74 2e 64 65 65 70 45 71 | mment",.function(t).{...t.deepEq |
5420 | 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 | ual(styleSearchResults({.....sou |
5440 | 72 63 65 3a 20 22 61 62 63 20 2f 2f 20 63 6f 6d 6d 65 6e 74 22 2c 0a 20 20 20 20 74 61 72 67 65 | rce:."abc.//.comment",.....targe |
5460 | 74 3a 20 22 6d 22 2c 0a 20 20 7d 29 2c 20 5b 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c | t:."m",...}),.[]);...t.deepEqual |
5480 | 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 | (styleSearchResults({.....source |
54a0 | 3a 20 22 61 62 63 20 2f 2f 20 63 6f 6d 6d 61 6e 64 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 | :."abc.//.command",.....target:. |
54c0 | 22 61 22 2c 0a 20 20 7d 29 2c 20 5b 30 5d 29 3b 0a 20 20 2f 2f 20 54 72 69 70 6c 65 2d 73 6c 61 | "a",...}),.[0]);...//.Triple-sla |
54e0 | 73 68 20 63 6f 6d 6d 65 6e 74 73 20 61 72 65 20 75 73 65 64 20 66 6f 72 20 73 61 73 73 64 6f 63 | sh.comments.are.used.for.sassdoc |
5500 | 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 | ...t.deepEqual(styleSearchResult |
5520 | 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 2f 2f 2f 20 69 74 27 73 20 61 6c | s({.....source:."abc.///.it's.al |
5540 | 6c 20 6f 6b 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 61 22 2c 0a 20 20 7d 29 2c 20 5b 30 | l.ok",.....target:."a",...}),.[0 |
5560 | 5d 29 3b 0a 20 20 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 68 61 6e 64 6c 65 | ]);...t.end();.});..test("handle |
5580 | 73 20 65 73 63 61 70 65 64 20 64 6f 75 62 6c 65 2d 71 75 6f 74 65 73 20 69 6e 20 64 6f 75 62 6c | s.escaped.double-quotes.in.doubl |
55a0 | 65 2d 71 75 6f 74 65 20 73 74 72 69 6e 67 73 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a | e-quote.strings",.function(t).{. |
55c0 | 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 | ..t.deepEqual(styleSearchResults |
55e0 | 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 27 61 62 63 20 22 61 62 5c 5c 22 63 22 27 2c 0a 20 | ({.....source:.'abc."ab\\"c"',.. |
5600 | 20 20 20 74 61 72 67 65 74 3a 20 22 63 22 2c 0a 20 20 7d 29 2c 20 5b 32 5d 29 3b 0a 20 20 74 2e | ...target:."c",...}),.[2]);...t. |
5620 | 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 | deepEqual(styleSearchResults({.. |
5640 | 20 20 20 73 6f 75 72 63 65 3a 20 27 61 62 63 20 22 61 5c 5c 22 62 63 22 20 66 6f 6f 20 63 62 61 | ...source:.'abc."a\\"bc".foo.cba |
5660 | 27 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 63 22 2c 0a 20 20 7d 29 2c 20 5b 20 32 2c 20 31 | ',.....target:."c",...}),.[.2,.1 |
5680 | 36 20 5d 29 3b 0a 20 20 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 68 61 6e 64 | 6.]);...t.end();.});..test("hand |
56a0 | 6c 65 73 20 65 73 63 61 70 65 64 20 64 6f 75 62 6c 65 2d 71 75 6f 74 65 73 20 69 6e 20 73 69 6e | les.escaped.double-quotes.in.sin |
56c0 | 67 6c 65 2d 71 75 6f 74 65 20 73 74 72 69 6e 67 73 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 | gle-quote.strings",.function(t). |
56e0 | 7b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c | {...t.deepEqual(styleSearchResul |
5700 | 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 27 61 62 5c 5c 27 63 27 22 2c | ts({.....source:."abc.'ab\\'c'", |
5720 | 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 63 22 2c 0a 20 20 7d 29 2c 20 5b 32 5d 29 3b 0a 20 20 | .....target:."c",...}),.[2]);... |
5740 | 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b | t.deepEqual(styleSearchResults({ |
5760 | 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 27 61 5c 5c 27 62 63 27 20 66 6f 6f 20 63 | .....source:."abc.'a\\'bc'.foo.c |
5780 | 62 61 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 63 22 2c 0a 20 20 7d 29 2c 20 5b 20 32 2c | ba",.....target:."c",...}),.[.2, |
57a0 | 20 31 36 20 5d 29 3b 0a 20 20 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 63 6f | .16.]);...t.end();.});..test("co |
57c0 | 75 6e 74 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 63 6f 6e 73 74 20 65 6e 64 43 | unt",.function(t).{...const.endC |
57e0 | 6f 75 6e 74 73 20 3d 20 5b 5d 0a 20 20 73 74 79 6c 65 53 65 61 72 63 68 28 7b 20 73 6f 75 72 63 | ounts.=.[]...styleSearch({.sourc |
5800 | 65 3a 20 22 31 32 33 20 31 32 33 20 31 32 33 22 2c 20 74 61 72 67 65 74 3a 20 22 31 22 20 7d 2c | e:."123.123.123",.target:."1".}, |
5820 | 20 66 75 6e 63 74 69 6f 6e 28 69 6e 64 65 78 2c 20 63 6f 75 6e 74 29 20 7b 0a 20 20 20 20 65 6e | .function(index,.count).{.....en |
5840 | 64 43 6f 75 6e 74 73 2e 70 75 73 68 28 63 6f 75 6e 74 29 3b 0a 20 20 7d 29 3b 0a 20 20 74 2e 64 | dCounts.push(count);...});...t.d |
5860 | 65 65 70 45 71 75 61 6c 28 65 6e 64 43 6f 75 6e 74 73 2c 20 5b 20 31 2c 20 32 2c 20 33 20 5d 29 | eepEqual(endCounts,.[.1,.2,.3.]) |
5880 | 3b 0a 20 20 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 66 69 6e 64 73 20 70 61 | ;...t.end();.});..test("finds.pa |
58a0 | 72 65 6e 74 68 65 73 65 73 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 74 2e 64 65 | rentheses",.function(t).{...t.de |
58c0 | 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 | epEqual(styleSearchResults({.... |
58e0 | 20 73 6f 75 72 63 65 3a 20 22 61 20 7b 20 63 6f 6c 6f 72 3a 20 72 67 62 28 30 2c 30 2c 30 29 3b | .source:."a.{.color:.rgb(0,0,0); |
5900 | 20 7d 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 28 22 2c 0a 20 20 7d 29 2c 20 5b 31 34 5d | .}",.....target:."(",...}),.[14] |
5920 | 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 | );...t.deepEqual(styleSearchResu |
5940 | 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 20 7b 20 63 6f 6c 6f 72 3a 20 72 67 | lts({.....source:."a.{.color:.rg |
5960 | 62 28 30 2c 30 2c 30 29 3b 20 7d 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 29 22 2c 0a 20 | b(0,0,0);.}",.....target:.")",.. |
5980 | 20 7d 29 2c 20 5b 32 30 5d 29 3b 0a 20 20 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 | .}),.[20]);...t.end();.});..test |
59a0 | 28 22 66 75 6e 63 74 69 6f 6e 4e 61 6d 65 73 3a 20 27 63 68 65 63 6b 27 22 2c 20 66 75 6e 63 74 | ("functionNames:.'check'",.funct |
59c0 | 69 6f 6e 28 74 29 20 7b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 | ion(t).{...t.deepEqual(styleSear |
59e0 | 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 20 7b 20 63 6f 6c | chResults({.....source:."a.{.col |
5a00 | 6f 72 3a 20 72 67 62 28 30 2c 30 2c 30 29 3b 20 7d 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 | or:.rgb(0,0,0);.}",.....target:. |
5a20 | 22 72 67 62 22 2c 0a 20 20 7d 29 2c 20 5b 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 | "rgb",...}),.[]);...t.deepEqual( |
5a40 | 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a | styleSearchResults({.....source: |
5a60 | 20 22 61 20 7b 20 63 6f 6c 6f 72 3a 20 72 67 62 28 30 2c 30 2c 30 29 3b 20 7d 22 2c 0a 20 20 20 | ."a.{.color:.rgb(0,0,0);.}",.... |
5a80 | 20 74 61 72 67 65 74 3a 20 22 72 67 62 22 2c 0a 20 20 20 20 66 75 6e 63 74 69 6f 6e 4e 61 6d 65 | .target:."rgb",.....functionName |
5aa0 | 73 3a 20 22 63 68 65 63 6b 22 0a 20 20 7d 29 2c 20 5b 31 31 5d 29 3b 0a 20 20 74 2e 65 6e 64 28 | s:."check"...}),.[11]);...t.end( |
5ac0 | 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 6e 6f 6e 2d 73 69 6e 67 6c 65 2d 63 68 61 72 61 63 74 | );.});..test("non-single-charact |
5ae0 | 65 72 20 74 61 72 67 65 74 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 74 2e 64 65 | er.target",.function(t).{...t.de |
5b00 | 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 | epEqual(styleSearchResults({.... |
5b20 | 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 63 62 61 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 | .source:."abc.cba",.....target:. |
5b40 | 22 61 62 63 22 2c 0a 20 20 7d 29 2c 20 5b 30 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c | "abc",...}),.[0]);...t.deepEqual |
5b60 | 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 | (styleSearchResults({.....source |
5b80 | 3a 20 22 61 62 63 20 63 62 61 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 63 62 22 2c 0a 20 | :."abc.cba",.....target:."cb",.. |
5ba0 | 20 7d 29 2c 20 5b 34 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 | .}),.[4]);...t.deepEqual(styleSe |
5bc0 | 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 63 | archResults({.....source:."abc.c |
5be0 | 62 61 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 63 20 63 22 2c 0a 20 20 7d 29 2c 20 5b 32 | ba",.....target:."c.c",...}),.[2 |
5c00 | 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 | ]);...t.deepEqual(styleSearchRes |
5c20 | 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 63 62 61 20 61 62 63 22 | ults({.....source:."abc.cba.abc" |
5c40 | 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 61 62 63 22 2c 0a 20 20 7d 29 2c 20 5b 20 30 2c 20 | ,.....target:."abc",...}),.[.0,. |
5c60 | 38 20 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 | 8.]);...t.deepEqual(styleSearchR |
5c80 | 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 63 62 61 20 27 61 | esults({.....source:."abc.cba.'a |
5ca0 | 62 63 27 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 61 62 63 22 2c 0a 20 20 7d 29 2c 20 5b | bc'",.....target:."abc",...}),.[ |
5cc0 | 30 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 | 0]);...t.deepEqual(styleSearchRe |
5ce0 | 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 63 62 22 2c 0a 20 20 | sults({.....source:."abc.cb",... |
5d00 | 20 20 74 61 72 67 65 74 3a 20 22 61 61 22 2c 0a 20 20 7d 29 2c 20 5b 5d 29 3b 0a 20 20 74 2e 65 | ..target:."aa",...}),.[]);...t.e |
5d20 | 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 61 72 72 61 79 20 74 61 72 67 65 74 22 2c 20 | nd();.});..test("array.target",. |
5d40 | 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c | function(t).{...t.deepEqual(styl |
5d60 | 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 | eSearchResults({.....source:."ab |
5d80 | 63 20 63 62 61 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 5b 20 22 61 22 2c 20 22 62 22 20 5d | c.cba",.....target:.[."a",."b".] |
5da0 | 2c 0a 20 20 7d 29 2c 20 5b 20 30 2c 20 31 2c 20 35 2c 20 36 20 5d 29 3b 0a 20 20 74 2e 64 65 65 | ,...}),.[.0,.1,.5,.6.]);...t.dee |
5dc0 | 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 | pEqual(styleSearchResults({..... |
5de0 | 73 6f 75 72 63 65 3a 20 22 61 62 63 20 63 62 61 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 5b | source:."abc.cba",.....target:.[ |
5e00 | 20 22 63 22 2c 20 22 62 22 20 5d 2c 0a 20 20 7d 29 2c 20 5b 20 31 2c 20 32 2c 20 34 2c 20 35 20 | ."c",."b".],...}),.[.1,.2,.4,.5. |
5e20 | 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 53 65 61 72 63 68 52 65 73 | ]);...t.deepEqual(styleSearchRes |
5e40 | 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 63 62 61 22 2c 0a 20 20 | ults({.....source:."abc.cba",... |
5e60 | 20 20 74 61 72 67 65 74 3a 20 5b 20 22 62 63 22 2c 20 22 61 22 20 5d 2c 0a 20 20 7d 29 2c 20 5b | ..target:.[."bc",."a".],...}),.[ |
5e80 | 20 30 2c 20 31 2c 20 36 20 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 6c 65 | .0,.1,.6.]);...t.deepEqual(style |
5ea0 | 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 62 63 | SearchResults({.....source:."abc |
5ec0 | 20 63 62 61 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 5b 20 22 61 62 63 22 2c 20 22 66 22 20 | .cba",.....target:.[."abc",."f". |
5ee0 | 5d 2c 0a 20 20 7d 29 2c 20 5b 30 5d 29 3b 0a 20 20 74 2e 64 65 65 70 45 71 75 61 6c 28 73 74 79 | ],...}),.[0]);...t.deepEqual(sty |
5f00 | 6c 65 53 65 61 72 63 68 52 65 73 75 6c 74 73 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 22 61 | leSearchResults({.....source:."a |
5f20 | 62 63 20 63 62 61 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 5b 20 30 2c 20 31 2c 20 32 20 5d | bc.cba",.....target:.[.0,.1,.2.] |
5f40 | 2c 0a 20 20 7d 29 2c 20 5b 5d 29 3b 0a 20 20 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 | ,...}),.[]);...t.end();.});..tes |
5f60 | 74 28 22 6d 61 74 63 68 20 6f 62 6a 65 63 74 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a | t("match.object",.function(t).{. |
5f80 | 20 20 73 74 79 6c 65 53 65 61 72 63 68 28 7b 20 73 6f 75 72 63 65 3a 20 22 61 62 63 22 2c 20 74 | ..styleSearch({.source:."abc",.t |
5fa0 | 61 72 67 65 74 3a 20 22 62 63 22 20 7d 2c 20 66 75 6e 63 74 69 6f 6e 28 6d 61 74 63 68 29 20 7b | arget:."bc".},.function(match).{ |
5fc0 | 0a 20 20 20 20 74 2e 65 71 75 61 6c 28 6d 61 74 63 68 2e 73 74 61 72 74 49 6e 64 65 78 2c 20 31 | .....t.equal(match.startIndex,.1 |
5fe0 | 29 3b 0a 20 20 20 20 74 2e 65 71 75 61 6c 28 6d 61 74 63 68 2e 65 6e 64 49 6e 64 65 78 2c 20 33 | );.....t.equal(match.endIndex,.3 |
6000 | 29 3b 0a 20 20 20 20 74 2e 65 71 75 61 6c 28 6d 61 74 63 68 2e 74 61 72 67 65 74 2c 20 22 62 63 | );.....t.equal(match.target,."bc |
6020 | 22 29 3b 0a 20 20 20 20 74 2e 65 71 75 61 6c 28 6d 61 74 63 68 2e 69 6e 73 69 64 65 46 75 6e 63 | ");.....t.equal(match.insideFunc |
6040 | 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 2c 20 66 61 6c 73 65 29 3b 0a 20 20 20 20 74 2e 65 71 75 | tionArguments,.false);.....t.equ |
6060 | 61 6c 28 6d 61 74 63 68 2e 69 6e 73 69 64 65 43 6f 6d 6d 65 6e 74 2c 20 66 61 6c 73 65 29 3b 0a | al(match.insideComment,.false);. |
6080 | 20 20 7d 29 3b 0a 0a 20 20 63 6f 6e 73 74 20 74 77 6f 4d 61 74 63 68 65 73 20 3d 20 5b 5d 0a 20 | ..});....const.twoMatches.=.[].. |
60a0 | 20 73 74 79 6c 65 53 65 61 72 63 68 28 7b 20 73 6f 75 72 63 65 3a 20 22 61 62 63 20 62 63 61 22 | .styleSearch({.source:."abc.bca" |
60c0 | 2c 20 74 61 72 67 65 74 3a 20 5b 20 22 62 63 20 22 2c 20 22 63 61 22 20 5d 20 7d 2c 20 66 75 6e | ,.target:.[."bc.",."ca".].},.fun |
60e0 | 63 74 69 6f 6e 28 6d 61 74 63 68 29 20 7b 0a 20 20 20 20 74 77 6f 4d 61 74 63 68 65 73 2e 70 75 | ction(match).{.....twoMatches.pu |
6100 | 73 68 28 6d 61 74 63 68 29 3b 0a 20 20 7d 29 3b 0a 20 20 63 6f 6e 73 74 20 66 69 72 73 74 4d 61 | sh(match);...});...const.firstMa |
6120 | 74 63 68 20 3d 20 74 77 6f 4d 61 74 63 68 65 73 5b 30 5d 0a 20 20 63 6f 6e 73 74 20 73 65 63 6f | tch.=.twoMatches[0]...const.seco |
6140 | 6e 64 4d 61 74 63 68 20 3d 20 74 77 6f 4d 61 74 63 68 65 73 5b 31 5d 0a 20 20 74 2e 65 71 75 61 | ndMatch.=.twoMatches[1]...t.equa |
6160 | 6c 28 66 69 72 73 74 4d 61 74 63 68 2e 73 74 61 72 74 49 6e 64 65 78 2c 20 31 29 3b 0a 20 20 74 | l(firstMatch.startIndex,.1);...t |
6180 | 2e 65 71 75 61 6c 28 66 69 72 73 74 4d 61 74 63 68 2e 65 6e 64 49 6e 64 65 78 2c 20 34 29 3b 0a | .equal(firstMatch.endIndex,.4);. |
61a0 | 20 20 74 2e 65 71 75 61 6c 28 66 69 72 73 74 4d 61 74 63 68 2e 74 61 72 67 65 74 2c 20 22 62 63 | ..t.equal(firstMatch.target,."bc |
61c0 | 20 22 29 3b 0a 20 20 74 2e 65 71 75 61 6c 28 66 69 72 73 74 4d 61 74 63 68 2e 69 6e 73 69 64 65 | .");...t.equal(firstMatch.inside |
61e0 | 46 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 2c 20 66 61 6c 73 65 29 3b 0a 20 20 74 2e 65 | FunctionArguments,.false);...t.e |
6200 | 71 75 61 6c 28 66 69 72 73 74 4d 61 74 63 68 2e 69 6e 73 69 64 65 43 6f 6d 6d 65 6e 74 2c 20 66 | qual(firstMatch.insideComment,.f |
6220 | 61 6c 73 65 29 3b 0a 20 20 74 2e 65 71 75 61 6c 28 73 65 63 6f 6e 64 4d 61 74 63 68 2e 73 74 61 | alse);...t.equal(secondMatch.sta |
6240 | 72 74 49 6e 64 65 78 2c 20 35 29 3b 0a 20 20 74 2e 65 71 75 61 6c 28 73 65 63 6f 6e 64 4d 61 74 | rtIndex,.5);...t.equal(secondMat |
6260 | 63 68 2e 65 6e 64 49 6e 64 65 78 2c 20 37 29 3b 0a 20 20 74 2e 65 71 75 61 6c 28 73 65 63 6f 6e | ch.endIndex,.7);...t.equal(secon |
6280 | 64 4d 61 74 63 68 2e 74 61 72 67 65 74 2c 20 22 63 61 22 29 3b 0a 20 20 74 2e 65 71 75 61 6c 28 | dMatch.target,."ca");...t.equal( |
62a0 | 73 65 63 6f 6e 64 4d 61 74 63 68 2e 69 6e 73 69 64 65 46 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 | secondMatch.insideFunctionArgume |
62c0 | 6e 74 73 2c 20 66 61 6c 73 65 29 3b 0a 20 20 74 2e 65 71 75 61 6c 28 73 65 63 6f 6e 64 4d 61 74 | nts,.false);...t.equal(secondMat |
62e0 | 63 68 2e 69 6e 73 69 64 65 43 6f 6d 6d 65 6e 74 2c 20 66 61 6c 73 65 29 3b 0a 20 20 74 2e 65 6e | ch.insideComment,.false);...t.en |
6300 | 64 28 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 6d 61 74 63 68 20 69 6e 73 69 64 65 20 61 20 66 | d();.});..test("match.inside.a.f |
6320 | 75 6e 63 74 69 6f 6e 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 73 74 79 6c 65 53 | unction",.function(t).{...styleS |
6340 | 65 61 72 63 68 28 7b 20 73 6f 75 72 63 65 3a 20 22 61 20 7b 20 63 6f 6c 6f 72 3a 20 72 67 62 28 | earch({.source:."a.{.color:.rgb( |
6360 | 30 2c 20 30 2c 20 31 29 3b 20 7d 22 2c 20 74 61 72 67 65 74 3a 20 22 31 22 20 7d 2c 20 66 75 6e | 0,.0,.1);.}",.target:."1".},.fun |
6380 | 63 74 69 6f 6e 28 6d 61 74 63 68 29 20 7b 0a 20 20 20 20 74 2e 65 71 75 61 6c 28 6d 61 74 63 68 | ction(match).{.....t.equal(match |
63a0 | 2e 69 6e 73 69 64 65 46 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 2c 20 74 72 75 65 29 3b | .insideFunctionArguments,.true); |
63c0 | 0a 20 20 20 20 74 2e 65 71 75 61 6c 28 6d 61 74 63 68 2e 69 6e 73 69 64 65 43 6f 6d 6d 65 6e 74 | .....t.equal(match.insideComment |
63e0 | 2c 20 66 61 6c 73 65 29 3b 0a 20 20 20 20 74 2e 65 6e 64 28 29 3b 0a 20 20 7d 29 3b 0a 7d 29 3b | ,.false);.....t.end();...});.}); |
6400 | 0a 0a 74 65 73 74 28 22 6d 61 74 63 68 20 69 6e 73 69 64 65 20 61 20 63 6f 6d 6d 65 6e 74 22 2c | ..test("match.inside.a.comment", |
6420 | 20 66 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 73 74 79 6c 65 53 65 61 72 63 68 28 7b 0a 20 | .function(t).{...styleSearch({.. |
6440 | 20 20 20 73 6f 75 72 63 65 3a 20 22 61 20 7b 20 63 6f 6c 6f 72 3a 20 2f 2a 20 31 20 2a 2f 20 70 | ...source:."a.{.color:./*.1.*/.p |
6460 | 69 6e 6b 3b 20 7d 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 31 22 2c 0a 20 20 20 20 63 6f | ink;.}",.....target:."1",.....co |
6480 | 6d 6d 65 6e 74 73 3a 20 22 63 68 65 63 6b 22 0a 20 20 7d 2c 20 66 75 6e 63 74 69 6f 6e 28 6d 61 | mments:."check"...},.function(ma |
64a0 | 74 63 68 29 20 7b 0a 20 20 20 20 74 2e 65 71 75 61 6c 28 6d 61 74 63 68 2e 69 6e 73 69 64 65 46 | tch).{.....t.equal(match.insideF |
64c0 | 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 2c 20 66 61 6c 73 65 29 3b 0a 20 20 20 20 74 2e | unctionArguments,.false);.....t. |
64e0 | 65 71 75 61 6c 28 6d 61 74 63 68 2e 69 6e 73 69 64 65 43 6f 6d 6d 65 6e 74 2c 20 74 72 75 65 29 | equal(match.insideComment,.true) |
6500 | 3b 0a 20 20 20 20 74 2e 65 6e 64 28 29 3b 0a 20 20 7d 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 | ;.....t.end();...});.});..test(" |
6520 | 6d 61 74 63 68 20 69 6e 73 69 64 65 20 61 20 62 6c 6f 63 6b 20 63 6f 6d 6d 65 6e 74 22 2c 20 66 | match.inside.a.block.comment",.f |
6540 | 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 73 74 79 6c 65 53 65 61 72 63 68 28 7b 0a 20 20 20 | unction(t).{...styleSearch({.... |
6560 | 20 73 6f 75 72 63 65 3a 20 22 61 20 7b 20 63 6f 6c 6f 72 3a 5c 6e 2f 2a 2a 5c 6e 20 2a 20 30 5c | .source:."a.{.color:\n/**\n.*.0\ |
6580 | 6e 20 2a 20 31 5c 6e 20 2a 2f 5c 6e 70 69 6e 6b 3b 20 7d 22 2c 0a 20 20 20 20 74 61 72 67 65 74 | n.*.1\n.*/\npink;.}",.....target |
65a0 | 3a 20 22 31 22 2c 0a 20 20 20 20 63 6f 6d 6d 65 6e 74 73 3a 20 22 63 68 65 63 6b 22 0a 20 20 7d | :."1",.....comments:."check"...} |
65c0 | 2c 20 66 75 6e 63 74 69 6f 6e 28 6d 61 74 63 68 29 20 7b 0a 20 20 20 20 74 2e 65 71 75 61 6c 28 | ,.function(match).{.....t.equal( |
65e0 | 6d 61 74 63 68 2e 69 6e 73 69 64 65 46 75 6e 63 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 2c 20 66 | match.insideFunctionArguments,.f |
6600 | 61 6c 73 65 29 3b 0a 20 20 20 20 74 2e 65 71 75 61 6c 28 6d 61 74 63 68 2e 69 6e 73 69 64 65 43 | alse);.....t.equal(match.insideC |
6620 | 6f 6d 6d 65 6e 74 2c 20 74 72 75 65 29 3b 0a 20 20 20 20 74 2e 65 6e 64 28 29 3b 0a 20 20 7d 29 | omment,.true);.....t.end();...}) |
6640 | 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 6d 61 74 63 68 20 69 6e 73 69 64 65 20 61 20 63 6f 6d 6d | ;.});..test("match.inside.a.comm |
6660 | 65 6e 74 20 69 6e 73 69 64 65 20 66 75 6e 63 74 69 6f 6e 22 2c 20 66 75 6e 63 74 69 6f 6e 28 74 | ent.inside.function",.function(t |
6680 | 29 20 7b 0a 20 20 73 74 79 6c 65 53 65 61 72 63 68 28 7b 0a 20 20 20 20 73 6f 75 72 63 65 3a 20 | ).{...styleSearch({.....source:. |
66a0 | 22 61 20 7b 20 63 6f 6c 6f 72 3a 20 72 67 62 28 30 2c 20 30 2c 20 30 20 2f 2a 20 31 20 2a 2f 29 | "a.{.color:.rgb(0,.0,.0./*.1.*/) |
66c0 | 3b 20 7d 22 2c 0a 20 20 20 20 74 61 72 67 65 74 3a 20 22 31 22 2c 0a 20 20 20 20 63 6f 6d 6d 65 | ;.}",.....target:."1",.....comme |
66e0 | 6e 74 73 3a 20 22 63 68 65 63 6b 22 0a 20 20 7d 2c 20 66 75 6e 63 74 69 6f 6e 28 6d 61 74 63 68 | nts:."check"...},.function(match |
6700 | 29 20 7b 0a 20 20 20 20 74 2e 65 71 75 61 6c 28 6d 61 74 63 68 2e 69 6e 73 69 64 65 46 75 6e 63 | ).{.....t.equal(match.insideFunc |
6720 | 74 69 6f 6e 41 72 67 75 6d 65 6e 74 73 2c 20 74 72 75 65 29 3b 0a 20 20 20 20 74 2e 65 71 75 61 | tionArguments,.true);.....t.equa |
6740 | 6c 28 6d 61 74 63 68 2e 69 6e 73 69 64 65 43 6f 6d 6d 65 6e 74 2c 20 74 72 75 65 29 3b 0a 20 20 | l(match.insideComment,.true);... |
6760 | 20 20 74 2e 65 6e 64 28 29 3b 0a 20 20 7d 29 3b 0a 7d 29 3b 0a 0a 74 65 73 74 28 22 65 72 72 6f | ..t.end();...});.});..test("erro |
6780 | 72 20 6f 6e 20 6d 75 6c 74 69 70 6c 65 20 27 6f 6e 6c 79 27 20 6f 70 74 69 6f 6e 73 22 2c 20 66 | r.on.multiple.'only'.options",.f |
67a0 | 75 6e 63 74 69 6f 6e 28 74 29 20 7b 0a 20 20 74 2e 74 68 72 6f 77 73 28 66 75 6e 63 74 69 6f 6e | unction(t).{...t.throws(function |
67c0 | 28 29 20 7b 0a 20 20 20 20 73 74 79 6c 65 53 65 61 72 63 68 28 7b 0a 20 20 20 20 20 20 73 6f 75 | ().{.....styleSearch({.......sou |
67e0 | 72 63 65 3a 20 22 61 20 7b 7d 22 2c 0a 20 20 20 20 20 20 74 61 72 67 65 74 3a 20 22 61 22 2c 0a | rce:."a.{}",.......target:."a",. |
6800 | 20 20 20 20 20 20 63 6f 6d 6d 65 6e 74 73 3a 20 22 6f 6e 6c 79 22 2c 0a 20 20 20 20 20 20 73 74 | ......comments:."only",.......st |
6820 | 72 69 6e 67 73 3a 20 22 6f 6e 6c 79 22 2c 0a 20 20 20 20 7d 2c 20 66 75 6e 63 74 69 6f 6e 28 6d | rings:."only",.....},.function(m |
6840 | 61 74 63 68 29 20 7b 7d 29 3b 0a 20 20 7d 2c 20 2f 4f 6e 6c 79 20 6f 6e 65 20 73 79 6e 74 61 78 | atch).{});...},./Only.one.syntax |
6860 | 2f 29 3b 0a 20 20 74 2e 65 6e 64 28 29 3b 0a 7d 29 3b 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 | /);...t.end();.});.............. |
6880 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
68a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
68c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
68e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6900 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6920 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6940 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6960 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6980 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
69a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
69c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
69e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6a00 | 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............ |
6a20 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6a40 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6a60 | 00 00 00 00 30 30 30 36 34 34 20 00 30 30 30 37 36 35 20 00 30 30 30 30 32 34 20 00 30 30 30 30 | ....000644..000765..000024..0000 |
6a80 | 30 30 30 32 30 34 20 00 31 32 37 32 37 32 37 30 30 35 32 00 30 31 32 33 34 30 20 00 30 00 00 00 | 000204..12727270052.012340..0... |
6aa0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6ac0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6ae0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6b00 | 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....................... |
6b20 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6b40 | 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......... |
6b60 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6b80 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6ba0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6bc0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6be0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6c00 | 23 20 43 68 61 6e 67 65 6c 6f 67 0a 0a 23 23 20 30 2e 31 2e 30 0a 0a 2d 20 49 6e 69 74 69 61 6c | #.Changelog..##.0.1.0..-.Initial |
6c20 | 20 65 78 74 72 61 63 74 69 6f 6e 20 66 72 6f 6d 20 5b 73 74 79 6c 65 6c 69 6e 74 5d 28 68 74 74 | .extraction.from.[stylelint](htt |
6c40 | 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 73 74 79 6c 65 6c 69 6e 74 2f 73 74 79 6c 65 6c | ps://github.com/stylelint/stylel |
6c60 | 69 6e 74 29 2c 20 41 50 49 20 72 65 66 61 63 74 6f 72 69 6e 67 2c 20 61 6e 64 20 72 65 6c 65 61 | int),.API.refactoring,.and.relea |
6c80 | 73 65 2e 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | se.............................. |
6ca0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6cc0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6ce0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6d00 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6d20 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6d40 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6d60 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6d80 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6da0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6dc0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6de0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6e00 | 70 61 63 6b 61 67 65 2f 63 69 72 63 6c 65 2e 79 6d 6c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | package/circle.yml.............. |
6e20 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6e40 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6e60 | 00 00 00 00 30 30 30 36 34 34 20 00 30 30 30 37 36 35 20 00 30 30 30 30 32 34 20 00 30 30 30 30 | ....000644..000765..000024..0000 |
6e80 | 30 30 30 31 35 36 20 00 31 32 37 32 37 31 34 32 30 33 34 00 30 31 32 35 31 37 20 00 30 00 00 00 | 000156..12727142034.012517..0... |
6ea0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6ec0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6ee0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6f00 | 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....................... |
6f20 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6f40 | 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......... |
6f60 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6f80 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6fa0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6fc0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
6fe0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7000 | 74 65 73 74 3a 0a 20 20 6f 76 65 72 72 69 64 65 3a 0a 20 20 20 20 2d 20 6e 76 6d 20 75 73 65 20 | test:...override:.....-.nvm.use. |
7020 | 30 2e 31 30 20 26 26 20 6e 70 6d 20 74 65 73 74 0a 20 20 20 20 2d 20 6e 76 6d 20 75 73 65 20 30 | 0.10.&&.npm.test.....-.nvm.use.0 |
7040 | 2e 31 32 20 26 26 20 6e 70 6d 20 74 65 73 74 0a 20 20 20 20 2d 20 6e 76 6d 20 75 73 65 20 34 2e | .12.&&.npm.test.....-.nvm.use.4. |
7060 | 30 20 26 26 20 6e 70 6d 20 74 65 73 74 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | 0.&&.npm.test................... |
7080 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
70a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
70c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
70e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7100 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7120 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7140 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7160 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7180 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
71a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
71c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
71e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7200 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7220 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7240 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7260 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7280 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
72a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
72c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
72e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7300 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7320 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7340 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7360 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7380 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
73a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
73c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
73e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7400 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7420 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7440 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7460 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7480 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
74a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
74c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
74e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7500 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7520 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7540 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7560 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
7580 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
75a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
75c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
75e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |