{"_id":"@textlint/regexp-string-matcher","_rev":"18-43fbaa6c69b859886dea028c4cff16e9","name":"@textlint/regexp-string-matcher","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.1":{"name":"@textlint/regexp-string-matcher","version":"1.0.1","keywords":["helper","regexp","util"],"author":{"name":"azu"},"license":"MIT","_id":"@textlint/regexp-string-matcher@1.0.1","maintainers":[{"name":"0x6b","email":"0x6b.npmjs@gmail.com"},{"name":"azu","email":"azuciao@gmail.com"},{"name":"textlint-user","email":"azuciao+textlint@gmail.com"}],"homepage":"https://github.com/textlint/regexp-string-matcher","bugs":{"url":"https://github.com/textlint/regexp-string-matcher/issues"},"dist":{"shasum":"6e47a4916d8f5031d1943af7fddd0907e1ffa0eb","tarball":"https://registry.npmjs.org/@textlint/regexp-string-matcher/-/regexp-string-matcher-1.0.1.tgz","fileCount":7,"integrity":"sha512-NbV05KF7oUbZpx/5N7hcUNNfYcpbiyyY378rAeK1rLeLNP5Gtni0XosGhMiydemV0SFCFRcieVSEWlSrerizIw==","signatures":[{"sig":"MEYCIQDU3vsx/YF6IWZBqLVQ3O92rojAYdbleaUXICcygVDEAQIhANby4W8TbSm2qNXy4tw1ui06hL0pxZqBjg/yKfp2PPHS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16250,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbBSEOCRA9TVsSAnZWagAA3ikP+QEEzqG3ZZRBHGjuxLsT\n+RoKTF/bR6POC4MRsGTGV3rdnc9vTa1GRFTZ96o//OmPaVD/R6yUMGbqGPr8\nj7kFn1ZUvX9ujjhEOoBhj7+WrZvMfbZJG+7p3VZjmiU0a+OBk1VjMomrZnlr\n0bdBWuHUGZvfpg9TbVsJ5jqsdoRiJkzrrry7lbnXhpy3zMqDHwLPz+HT4Y/X\njDs8acp75XfoSXIsRdWfB/tcQKRJDibcHda+7/KqlmrTAdxjQaIsUFt9TCSw\nK7d7aDT7JOJEAR8+LUftG6eUU0SxO8b48sJBipzg/XFQJPqXP45MTSQP7dFL\nyNoR3rEke8eO7OPhdCfJKwTnhWFRqpkKeWWuWBDbXeIeGTabqvz9GC5rkE/G\nPElYuoRXrYpORcx4VUmp1q452gRQSuuM3JbATJ6BDmSiZS1CoDQwpZxgzmII\nTAm5hgRUdmuVj3qefpLuFO/QyZvsWTynxv7HAeZ0Oyqrqepnxq7+IFg9TTgR\n3i6YJ31qPCg4/aYcAN+D6HVRKaX0cMGCz5TTNb443MrvbuQMee26PJXjVdb0\nDBhPh9p8Qj310aKG1yB6vlYK4hmJNiA3lcxlOMHZC6QUys4IO2s+i/hxAAt/\nbeEWyi46im5mXYvqDIr4+zcmIvQGDZACGFIHyvoCw01WEMKX2m4e1dVGazPN\n6Pej\r\n=lKum\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/regexp-string-matcher.js","files":["bin/","lib/","src/"],"types":"lib/regexp-string-matcher.d.ts","gitHead":"b0b77d3605a0b909ba00a2057bacb2e3743c00a8","scripts":{"test":"mocha \"test/**/*.ts\"","build":"cross-env NODE_ENV=production tsc -p .","watch":"tsc -p . --watch","prettier":"prettier --write \"**/*.{js,jsx,ts,tsx,css}\"","precommit":"lint-staged","postcommit":"git reset","prepublish":"npm run --if-present build","test:updateSnapshot":"cross-env UPDATE_SNAPSHOT=1 npm test"},"_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"prettier":{"tabWidth":4,"printWidth":120,"singleQuote":false},"repository":{"url":"git+https://github.com/textlint/regexp-string-matcher.git","type":"git"},"_npmVersion":"5.8.0","description":"Regexp-like string matcher.","directories":{"lib":"lib","test":"test"},"lint-staged":{"*.{js,jsx,ts,tsx,css}":["prettier --write","git add"]},"_nodeVersion":"9.10.0","dependencies":{"execall":"^1.0.0","to-regex":"^3.0.2","lodash.uniq":"^4.5.0","lodash.sortby":"^4.7.0","lodash.uniqwith":"^4.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^0.14.3","mocha":"^5.2.0","ts-node":"^6.0.3","prettier":"^1.12.1","cross-env":"^5.1.5","typescript":"^2.8.3","@types/node":"^10.1.2","lint-staged":"^7.1.2","@types/mocha":"^5.2.0","@types/lodash.uniq":"^4.5.3","@types/lodash.sortby":"^4.7.3","ts-node-test-register":"^3.0.0","@types/lodash.uniqwith":"^4.5.3"},"_npmOperationalInternal":{"tmp":"tmp/regexp-string-matcher_1.0.1_1527062797387_0.1478409936830738","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@textlint/regexp-string-matcher","version":"1.0.2","keywords":["helper","regexp","util"],"author":{"name":"azu"},"license":"MIT","_id":"@textlint/regexp-string-matcher@1.0.2","maintainers":[{"name":"0x6b","email":"0x6b.npmjs@gmail.com"},{"name":"azu","email":"azuciao@gmail.com"},{"name":"textlint-user","email":"azuciao+textlint@gmail.com"}],"homepage":"https://github.com/textlint/regexp-string-matcher","bugs":{"url":"https://github.com/textlint/regexp-string-matcher/issues"},"dist":{"shasum":"af2f04023d1481e1e6144f8ef22788811b93e542","tarball":"https://registry.npmjs.org/@textlint/regexp-string-matcher/-/regexp-string-matcher-1.0.2.tgz","fileCount":11,"integrity":"sha512-AU4QVhTgdVOC+YdwpJdRTuSSl/bnxxKy/ou0UnuGOK8Phlq5K0zDOsLnBur55xRYf0wW8mYvb3YiiTxJDdPGhQ==","signatures":[{"sig":"MEUCIQD/XolivKUZE1gTh6u/Z6cY4uxvujCQpbisbk+h9Ff4fgIgPpmGFRp83+VlZNVYKhATkJZAgvxLk/pnPfpIaSxjbc8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16969,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbBS6cCRA9TVsSAnZWagAALCMQAJX6CgoUGrz/jxWRVyK4\nLdpwsRm/R8UPfB3Iu6H3FiL57SxaS3fggxQvuQJCekyy+QwVPZoTHs20ZtMW\niVvarKUH4i45eJ83uyHM9MGIPXhy5L/hiJuvm8zeZsI5js3dUZk7bjx43AuX\n/iomckEp4xd4rXD+6/GNxy+CDpvPaenKEsGg1NUUjPk6X5cP2w0YRAvIPsG5\n7H9qnnqf7VgFcD0Idxvnftz6v8q7hp9yHEfkKF8Fc/9ORVt16xPPctNXMJ3K\nTD9OThr5eGQRdLfwk3leMvLIe77sGg/e15w++dXvExpmi42wCt4GIuf/2tQu\ngAjZtL37F8betllcwq/FITOMW6WKas3Txa3ET/dcvmCRJjwlHedaBhGeCAW3\nUhCAex/piBN+cWQnYlugQPpyIrGH2vqJBhBDwGwANBKypgZ09WBzq8DSGktr\nA4ndPmiORh9WW02MZ04bqQmmF5VPFVJ/BvmkW6lTd+AW5d4p+6mbUVl0/wct\nAi9lc1DUsMT9rYRO97pqu8Tze+gh242KwBvu6iT+1rwQmPB3INes93z/hWsh\nahqmpIb+CsN652JOdaccfycRnYtFl5iDDilwCnjsY/92ZMVLSfJ5zH6/l4aI\nXXcgItvTiui6G8pEmagrU/2m51Pl51HZGgUfGoroy/qx6GinOX5rrppVv5Em\nfua1\r\n=LefX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/regexp-string-matcher.js","files":["bin/","lib/","src/"],"types":"lib/regexp-string-matcher.d.ts","gitHead":"2795bc232daf3c016f6baaf7b49b98a3dafc58e1","scripts":{"test":"mocha \"test/**/*.ts\"","build":"cross-env NODE_ENV=production tsc -p .","watch":"tsc -p . --watch","prettier":"prettier --write \"**/*.{js,jsx,ts,tsx,css}\"","precommit":"lint-staged","postcommit":"git reset","prepublish":"npm run --if-present build","test:updateSnapshot":"cross-env UPDATE_SNAPSHOT=1 npm test"},"_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"prettier":{"tabWidth":4,"printWidth":120,"singleQuote":false},"repository":{"url":"git+https://github.com/textlint/regexp-string-matcher.git","type":"git"},"_npmVersion":"5.8.0","description":"Regexp-like string matcher.","directories":{"lib":"lib","test":"test"},"lint-staged":{"*.{js,jsx,ts,tsx,css}":["prettier --write","git add"]},"_nodeVersion":"9.10.0","dependencies":{"execall":"^1.0.0","to-regex":"^3.0.2","lodash.uniq":"^4.5.0","lodash.sortby":"^4.7.0","lodash.uniqwith":"^4.5.0","escape-string-regexp":"^1.0.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^0.14.3","mocha":"^5.2.0","ts-node":"^6.0.3","prettier":"^1.12.1","cross-env":"^5.1.5","typescript":"^2.8.3","@types/node":"^10.1.2","lint-staged":"^7.1.2","@types/mocha":"^5.2.0","@types/lodash.uniq":"^4.5.3","@types/lodash.sortby":"^4.7.3","ts-node-test-register":"^3.0.0","@types/lodash.uniqwith":"^4.5.3","@types/escape-string-regexp":"^0.0.32"},"_npmOperationalInternal":{"tmp":"tmp/regexp-string-matcher_1.0.2_1527066267681_0.8109962576247955","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@textlint/regexp-string-matcher","version":"1.1.0","keywords":["helper","regexp","util"],"author":{"name":"azu"},"license":"MIT","_id":"@textlint/regexp-string-matcher@1.1.0","maintainers":[{"name":"0x6b","email":"0x6b.npmjs@gmail.com"},{"name":"azu","email":"azuciao@gmail.com"},{"name":"textlint-user","email":"azuciao+textlint@gmail.com"}],"homepage":"https://github.com/textlint/regexp-string-matcher","bugs":{"url":"https://github.com/textlint/regexp-string-matcher/issues"},"dist":{"shasum":"e19975029ce228a214d50c6a7e9dbcbef29ad8cd","tarball":"https://registry.npmjs.org/@textlint/regexp-string-matcher/-/regexp-string-matcher-1.1.0.tgz","fileCount":11,"integrity":"sha512-uTPnE1Dw1j+9clXPn61ZUdtg+WyhbgeXHwCTfBev7quHjeCP9PS8NdRkR6wEgmjuLg+xZlI4r/e1r6Bd0xyusQ==","signatures":[{"sig":"MEYCIQCg8QRv1XzHy2qoyxsF8F183SlODJ79ohAuAEx29dmDMwIhAM8AsdDZIWx69+QiZ5qxEBFcGSjnziF5kVtwWJcsaMp5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeBifeCRA9TVsSAnZWagAA44MQAJayPHiyYx8Y5u29m3lp\ngsXzqyOvSx2X//oJcDCOAx41TQejr16+vsVP+YQpAz+O0LNl8EGlW4jFZv3n\n98ibK72+UqS6aoqxj509u+gBlH1dNljLYZdfcHNn6RI1pnyiG6pY592xWSnp\nALJrfe8YdPWoBmbJ9tDFB74YiG95V6EqbrZiTnXgKCssmI0PQqr14wSkrXW5\nh7Rd+T2ZG1yhKQlLYmpol7oO9jz2BMUQRRTgUR7b9DmzwN/+vosXax214ZLS\n/lhlFuN+J1CKNftjQAhxN4ipiYAcuGE/vnikdmX9rjFn3uUXgxEOpG42SZ2U\nIFA+W18zXlUjGkvm/5zTuznc1BfJjMDhRIbS8Hf/B18ztGF/agHpgKFqR8Oc\nB5Yi+xQKyINPQCvkkzoJRIddf0F4HgFvZUI464Q95V3gBWfvSYEg58NNNyxm\nn9UZbdJr7fL7JgYVmoXJqZzyGDpflhac1PbypTxYy0WslQQrXTPA4/S4vNi7\nrTXqfceX0gX5YPFyBmnGj2AnmMn7jbN+XhEsBk+bUivjx6rH4MeVBlLCKjpS\nrwwt2lpYM/Fj9/TFeWjB4LaZfGtK0Csfa9y1gKu1C7vP9Uucc39ulcT3ws+w\nS//MiMFAY8t/YOJVFSNi7JFITC1FSHTFPDlPO4Q/vmbE16PYTGHZddiRrNwF\nOuZA\r\n=4Nmb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/regexp-string-matcher.js","types":"lib/regexp-string-matcher.d.ts","gitHead":"43c537ac17b0c9c4eb44853c66ce31e69a2df976","scripts":{"test":"mocha \"test/**/*.ts\"","build":"cross-env NODE_ENV=production tsc -p .","watch":"tsc -p . --watch","prettier":"prettier --write \"**/*.{js,jsx,ts,tsx,css}\"","precommit":"lint-staged","postcommit":"git reset","prepublish":"npm run --if-present build","test:updateSnapshot":"cross-env UPDATE_SNAPSHOT=1 npm test"},"_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"prettier":{"tabWidth":4,"printWidth":120,"singleQuote":false},"repository":{"url":"git+https://github.com/textlint/regexp-string-matcher.git","type":"git"},"_npmVersion":"6.13.4","description":"Regexp-like string matcher.","directories":{"lib":"lib","test":"test"},"lint-staged":{"*.{js,jsx,ts,tsx,css}":["prettier --write","git add"]},"_nodeVersion":"12.12.0","dependencies":{"execall":"^1.0.0","to-regex":"^3.0.2","lodash.uniq":"^4.5.0","lodash.sortby":"^4.7.0","lodash.uniqwith":"^4.5.0","escape-string-regexp":"^1.0.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^0.14.3","mocha":"^5.2.0","ts-node":"^6.0.3","prettier":"^1.12.1","cross-env":"^5.1.5","typescript":"^2.8.3","@types/node":"^10.1.2","lint-staged":"^7.1.2","@types/mocha":"^5.2.0","@types/lodash.uniq":"^4.5.3","@types/lodash.sortby":"^4.7.3","ts-node-test-register":"^3.0.0","@types/lodash.uniqwith":"^4.5.3","@types/escape-string-regexp":"^0.0.32"},"_npmOperationalInternal":{"tmp":"tmp/regexp-string-matcher_1.1.0_1577461726441_0.26471330431176887","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@textlint/regexp-string-matcher","version":"1.1.1","keywords":["helper","regexp","util"],"author":{"name":"azu"},"license":"MIT","_id":"@textlint/regexp-string-matcher@1.1.1","maintainers":[{"name":"azu","email":"azuciao@gmail.com"},{"name":"0x6b","email":"0x6b.npmjs@gmail.com"}],"homepage":"https://github.com/textlint/regexp-string-matcher","bugs":{"url":"https://github.com/textlint/regexp-string-matcher/issues"},"dist":{"shasum":"6f19d5cc6b21264a1749ce8d49cb8995c025b917","tarball":"https://registry.npmjs.org/@textlint/regexp-string-matcher/-/regexp-string-matcher-1.1.1.tgz","fileCount":11,"integrity":"sha512-rrNUCKGKYBrZALotSF8D5A8xD05VHX6kxv0BP805Ig2M73Ha6LK+de31+ZocGm4CO+sikVFYyMCPPJhp7bCXcw==","signatures":[{"sig":"MEUCIQD+yYv/3NN3z84SknHe0napKCvEjlRf8eV2gxeUOL4SIQIgUXSq3Es/noq3EPgD1T0Tmq72FvvOKKcbmku7b8fy6Vc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17983,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihCZ4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8QQ/5AI53YY5ReF1Ebrpuu2jv7iUnsuoxR/mUjjv9x7v6ZfOZ+qUf\r\n3bcoEEs4kSOD3bQleEQ7wELS2hEaPAkvRbKzbq3SSzZG5bNBDOQa+o9F7jlr\r\ncS4xpYCMjfg8o4UcPWrmxQWT5GGnVMXX2DPYG7Nd/jbR4bk4sCE186S6RKsV\r\nCyd1zLLnOeNPxdmZUEFx0xf3v1ZUT9YTvx4/Uu2Wu4I+rHco8pBOdGBiwvMy\r\nkU1aC+ZRJwVIP9sXBLoN+lGr87Gx6QGdeq7DmJJCfXh3fmrLoOe3z6G9xovt\r\nqR+F723oUqu4Ggd8MCWvy+89cZMnQ+d5Eg96pYLTZzA5dIVsub6tOiK3e0Qb\r\ndJ0ucjCBdFYo+0EoGxPSNzFsMTr2bCYe4Lc0ebCZIx3HLagq/RggoPNyiYh2\r\nWpvyuV7tZ7d7V1unJ/Hi3ogg05b1QQ/rEhhRMk0y7w/tCyjfkkJNAXLV7aoU\r\nU6Tfh0V/e2J9iLk1liM/V4hUNWA0VOwMiq//BxPNvoiGa4Ou7xx++VtfpfPI\r\nVElUWSi6Bw6LBu5HryCyRs+WsiXdEZ21ZJW/g+edpTV0mcCQYSgpzTWL3lVk\r\n/ZgkcwEi5VC11pMaLhP1LUGL3pPcBXNJM6+5uW30hsCPX5a6YrYNpKt4gOJz\r\n1EADdpmG/mTAnSlQRhVDbR4lcrmWUQ1t90Y=\r\n=3ef5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/regexp-string-matcher.js","types":"lib/regexp-string-matcher.d.ts","gitHead":"add8b24ab960abcaf063ae0c53c7b25be2e2f5c4","scripts":{"test":"mocha \"test/**/*.ts\"","build":"cross-env NODE_ENV=production tsc -p .","watch":"tsc -p . --watch","format":"prettier --write \"**/*.{js,jsx,ts,tsx,css}\"","prepare":"git config --local core.hooksPath .githooks","precommit":"lint-staged","postcommit":"git reset","prepublish":"npm run --if-present build","test:updateSnapshot":"cross-env UPDATE_SNAPSHOT=1 npm test"},"_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"prettier":{"tabWidth":4,"printWidth":120,"singleQuote":false,"trailingComma":"none"},"repository":{"url":"git+https://github.com/textlint/regexp-string-matcher.git","type":"git"},"_npmVersion":"7.20.1","description":"Regexp-like string matcher.","directories":{"lib":"lib","test":"test"},"lint-staged":{"*.{js,jsx,ts,tsx,css}":["prettier --write"]},"_nodeVersion":"16.13.0","dependencies":{"execall":"^2.0.0","to-regex":"^3.0.2","lodash.uniq":"^4.5.0","lodash.sortby":"^4.7.0","lodash.uniqwith":"^4.5.0","escape-string-regexp":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.0.0","ts-node":"^10.7.0","prettier":"^2.6.2","cross-env":"^7.0.3","typescript":"^4.6.4","@types/node":"^17.0.34","lint-staged":"^12.4.1","@types/mocha":"^9.1.1","@types/to-regex":"^3.0.0","@types/lodash.uniq":"^4.5.3","@types/lodash.sortby":"^4.7.3","ts-node-test-register":"^10.0.0","@types/lodash.uniqwith":"^4.5.3"},"_npmOperationalInternal":{"tmp":"tmp/regexp-string-matcher_1.1.1_1652827768485_0.6756065356372709","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@textlint/regexp-string-matcher","version":"2.0.0","keywords":["helper","regexp","util"],"author":{"name":"azu"},"license":"MIT","_id":"@textlint/regexp-string-matcher@2.0.0","maintainers":[{"name":"azu","email":"azuciao@gmail.com"},{"name":"0x6b","email":"0x6b.npmjs@gmail.com"}],"homepage":"https://github.com/textlint/regexp-string-matcher","bugs":{"url":"https://github.com/textlint/regexp-string-matcher/issues"},"dist":{"shasum":"6da39f66bdc5507dc993afc7be4f29d3b4d892d1","tarball":"https://registry.npmjs.org/@textlint/regexp-string-matcher/-/regexp-string-matcher-2.0.0.tgz","fileCount":11,"integrity":"sha512-hcoXCiY+GG8splIHIZStl8NQ+ac5zi7kncMBM1q5Qaw2ewCU+lOSprvTNTNnu7jW9uJl1+q65pKNUa0zjt5LSw==","signatures":[{"sig":"MEUCIQDFl5E17V0P/Rl9FKBt5lrWXb2P5Yga5FMaI/3g/1AlUAIgNI9hb4vsjcMASbujZZ75U0jh4C9cgTqGgfFpzm80ZvE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18716,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihDDwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmozIQ//Usrafydynayi9/SW6MFe6eoebOthqbZOorHi5alw9OaxYLNM\r\nfLjMnkiUTxuxlg5ZBoJTs3rZEcMUxL2yklrEkC7AAe51fE0YJxh7dxhof5n7\r\nHBPOxP2uds3wi2kNqvnLXtlVkC2qu8PDPlmQrg4twEygvBAOc3V4g+3fQSGj\r\nLiPZ2RuSOLQ1i2fPqqgehDW7HoD4jDArItzBEl6D5f1zY/EuS0bi/gkhRyus\r\na7dDKeb4xx0yv+Z08+Qx0vQPqhAJ5wJzpdjjEpaRqAcU9gmgEqRv5QObV33G\r\njADoLLtG1isUxOI7ovqPSlQRNv7WrNi/BtukgHTH4ygAL3aHEeyG3mQDCEml\r\nV147KRxqDuuNUCwtBCfJ9tIQNxvcU6H+YsrHo7QBVLnLGWA6QvX3xwZp3wzn\r\nQUTGpHs+3LEJdz0iW+8bODg1ZZej7RD+KdliJRQgNJYLEwga4kdtubCNIf9l\r\nAcahDi5gu5mBoylKX3DCESuVO0w5NOgLW4DdzVNOhYaCBQ6K8ufj5zGjAuFh\r\n4W2Hr3AQcta9gSjpt5nzFUhvA9yCz8ZbS3hdDU9rg+655DKEqm3w5NQf9C2S\r\nyyJO4FaMWJXytBgIFFOv4fcsnVmcVPZKz5Y+HYkofzDOybSdaIi3wINSvfwe\r\nM1MsJfa/Y8sf95AXME8NOcwjhYvYS1UIiXk=\r\n=ehck\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/regexp-string-matcher.js","types":"lib/regexp-string-matcher.d.ts","gitHead":"24b47a30d0a3fed84813ca99e115d9f44347d5d4","scripts":{"test":"mocha \"test/**/*.ts\"","build":"cross-env NODE_ENV=production tsc -p .","watch":"tsc -p . --watch","format":"prettier --write \"**/*.{js,jsx,ts,tsx,css}\"","prepare":"git config --local core.hooksPath .githooks","precommit":"lint-staged","postcommit":"git reset","prepublish":"npm run --if-present build","test:updateSnapshot":"cross-env UPDATE_SNAPSHOT=1 npm test"},"_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"prettier":{"tabWidth":4,"printWidth":120,"singleQuote":false,"trailingComma":"none"},"repository":{"url":"git+https://github.com/textlint/regexp-string-matcher.git","type":"git"},"_npmVersion":"7.20.1","description":"Regexp-like string matcher.","directories":{"lib":"lib","test":"test"},"lint-staged":{"*.{js,jsx,ts,tsx,css}":["prettier --write"]},"_nodeVersion":"16.13.0","dependencies":{"to-regex":"^3.0.2","lodash.uniq":"^4.5.0","lodash.sortby":"^4.7.0","lodash.uniqwith":"^4.5.0","escape-string-regexp":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.0.0","ts-node":"^10.7.0","prettier":"^2.6.2","cross-env":"^7.0.3","typescript":"^4.6.4","@types/node":"^17.0.34","lint-staged":"^12.4.1","@types/mocha":"^9.1.1","@types/to-regex":"^3.0.0","@types/lodash.uniq":"^4.5.3","@types/lodash.sortby":"^4.7.3","ts-node-test-register":"^10.0.0","@types/lodash.uniqwith":"^4.5.3"},"_npmOperationalInternal":{"tmp":"tmp/regexp-string-matcher_2.0.0_1652830448144_0.830520816771477","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@textlint/regexp-string-matcher","version":"2.0.1","keywords":["helper","regexp","util"],"author":{"name":"azu"},"license":"MIT","_id":"@textlint/regexp-string-matcher@2.0.1","maintainers":[{"name":"azu","email":"azuciao@gmail.com"},{"name":"0x6b","email":"0x6b.npmjs@gmail.com"}],"homepage":"https://github.com/textlint/regexp-string-matcher","bugs":{"url":"https://github.com/textlint/regexp-string-matcher/issues"},"dist":{"shasum":"ce0174a6a856f2df1cebe5fa03aff91edc3ff218","tarball":"https://registry.npmjs.org/@textlint/regexp-string-matcher/-/regexp-string-matcher-2.0.1.tgz","fileCount":11,"integrity":"sha512-l25lLFYWvN3JH7ECLyVjkb33YYPA4aAPY1iiddVrqyDZepT0d5u+aBC7wfoOOejxKMElJi1gDv2MPqrjKXK4vg==","signatures":[{"sig":"MEYCIQDSDxWlZCNkN+z68jXv5B9CJulHk5IQiCNgbu7tiuO5fQIhANIxj0GfsPJCEgWkwUwLnnyw2BmQ9VZqho4JVZUvIiCC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18849,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihEOYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoq+w//d+x/jLlMbCnHJ0cJ3gMKWrdiDQ7iya0w0Nh6AaA5KbG8tQpR\r\nN6Nwi+x7unFUT2XFlbH5YLnbTHBIcm4OfB/BDKHD/cpqjJT23F7HIKIEmGp/\r\nP7mDkhONdUwYVYFq+6OPz/ThY7ghtOF79/VxA0jzHV9qxJiA4sgi1ml4Hao9\r\nysgD6Gbq86Suhzz2LTEfi9iGugUitX7jK3YRV3ze74fg5+49bqz4ziS8XKpc\r\nYtEjXm1lyHbpdGOvnNX7F7IBVEXtvuS2xshnjo9vXyq+/vCpUK0o8c7PNCp/\r\nELNSryn+GwtWU8FVNFsWAHTR+5Ss9zF55mkZIw8mXy6pxaZk/7zhjzTvPJzw\r\nA/FCCMywFSfKoEXzz9lCAyfIlj3n/kTKi4U9Z2lwOSi6K22obTIFv8UARaY3\r\nz971Oh32mQquDBvUcOqj/1xuSfGecaPER3hv6JL4daZ0yQgkK2j1VIoAOGID\r\n8A75eeClUgrM/ZGEcW+1+Uq6aWW2LdsVYkFhlZmeF11wSPpWS08Yd5fT7WfL\r\n6gMNs7Ta23KuoabW2xH0HXSY6n8RU1KYphPK/PFTK93IHpOkhZxTSXovSzC5\r\nCFuhgdNEMG5zktk0/2+8E5/sbMyqQt9jr6/YBgTGkhfX1iy50ejd1aSkkBCr\r\nzvbCImJi7J/mmPr7t0bMxEUAnO467obHVNw=\r\n=Fpxf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/regexp-string-matcher.js","types":"lib/regexp-string-matcher.d.ts","gitHead":"fab3c0e4c1dc71deaaec736d87da18335458e1c1","scripts":{"test":"mocha \"test/**/*.ts\"","build":"cross-env NODE_ENV=production tsc -p .","watch":"tsc -p . --watch","format":"prettier --write \"**/*.{js,jsx,ts,tsx,css}\"","prepare":"git config --local core.hooksPath .githooks","precommit":"lint-staged","postcommit":"git reset","prepublish":"npm run --if-present build","test:updateSnapshot":"cross-env UPDATE_SNAPSHOT=1 npm test"},"_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"prettier":{"tabWidth":4,"printWidth":120,"singleQuote":false,"trailingComma":"none"},"repository":{"url":"git+https://github.com/textlint/regexp-string-matcher.git","type":"git"},"_npmVersion":"7.20.1","description":"Regexp-like string matcher.","directories":{"lib":"lib","test":"test"},"lint-staged":{"*.{js,jsx,ts,tsx,css}":["prettier --write"]},"_nodeVersion":"16.13.0","dependencies":{"lodash.uniq":"^4.5.0","lodash.sortby":"^4.7.0","lodash.uniqwith":"^4.5.0","escape-string-regexp":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.0.0","ts-node":"^10.7.0","prettier":"^2.6.2","cross-env":"^7.0.3","typescript":"^4.6.4","@types/node":"^17.0.34","lint-staged":"^12.4.1","@types/mocha":"^9.1.1","@types/to-regex":"^3.0.0","@types/lodash.uniq":"^4.5.3","@types/lodash.sortby":"^4.7.3","ts-node-test-register":"^10.0.0","@types/lodash.uniqwith":"^4.5.3"},"_npmOperationalInternal":{"tmp":"tmp/regexp-string-matcher_2.0.1_1652835224033_0.6182208404384357","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@textlint/regexp-string-matcher","version":"2.0.2","keywords":["helper","regexp","util"],"author":{"name":"azu"},"license":"MIT","_id":"@textlint/regexp-string-matcher@2.0.2","maintainers":[{"name":"azu","email":"azuciao@gmail.com"},{"name":"0x6b","email":"0x6b.npmjs@gmail.com"}],"homepage":"https://github.com/textlint/regexp-string-matcher","bugs":{"url":"https://github.com/textlint/regexp-string-matcher/issues"},"dist":{"shasum":"cef4d8353dac624086069e290d9631ca285df34d","tarball":"https://registry.npmjs.org/@textlint/regexp-string-matcher/-/regexp-string-matcher-2.0.2.tgz","fileCount":11,"integrity":"sha512-OXLD9XRxMhd3S0LWuPHpiARQOI7z9tCOs0FsynccW2lmyZzHHFJ9/eR6kuK9xF459Qf+740qI5h+/0cx+NljzA==","signatures":[{"sig":"MEYCIQCvcGEy9UpxmIiUkCUVsxDXlVXjkMO1CaV2HZ4ZgMt0MwIhAKgWbfOBaS7VpiKIdhWzWrJALk9QbUmpU4sol5+S+4At","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuvysACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnkRAAhT5UIxcNFN+awE6PTb/tu9z2kw6A4G0J0z1FX0abMst+k822\r\nqwQg4FhCYzwQjS1Pn1n5BsWuuX6vH6o2m3RjFE3JmrjKvNDOAf/iCB4D4i0S\r\nV1fkKVd4kaXDhJiTD6EFdlBj23O3dBKJK1Uk5GHVeFTUEoX6ONHViT6UTLtf\r\nQqfUYXhcmkY95W6ez30CfMthi64tq/oTJwufs99Fx4Xv/k0NPIQ9QfTqTOee\r\n+LHLWJ3qYcvuyFhkzt282VpvLd1+xDCJ6cUKQjRsKsEd1kV9oBzu8EGAwmPb\r\nxkeo8EBy07t2i5IbcBAN7G6ehZZyr0UjrbwyAUlywNVDWxtwmOS+jFYT7TXu\r\nwAcasb4a8Y8CvtL02Qq/6WZdtg4eRTJ/xVKPBxTqy0mnI9H2txzmo4vh+2ce\r\nb7XBZEtds7318Xn/0tii0dYueRx4OqsxQ+ojnKbiLP3bgWXC0WBqE3uddY40\r\nZ22fgA+ODgn/llGB5kpejN/AjznFuJzsba8bRBTkexvNo90wOqSxUj0+ww2X\r\nAQX5htzbhZOo3m05+7cIQDcik5n+snBtvvrVZzo+nFndBJyEl2MY2qIw8/0+\r\n1J7Aqg3p07ZAyHwfbtxc2BHuLUFAmiPMyT53Qud3Rs+VegYr3GKjy1UucO3o\r\nWHBjH/vxvyj1v0oaqPJ6xAcFL3YEoq349w4=\r\n=wO5C\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/regexp-string-matcher.js","types":"lib/regexp-string-matcher.d.ts","gitHead":"a7e6a5d6b9ad7dcafd8276755a1918257ad37ca5","scripts":{"test":"mocha \"test/**/*.ts\"","build":"cross-env NODE_ENV=production tsc -p .","watch":"tsc -p . --watch","format":"prettier --write \"**/*.{js,jsx,ts,tsx,css}\"","prepare":"git config --local core.hooksPath .githooks","precommit":"lint-staged","postcommit":"git reset","prepublish":"npm run --if-present build","test:updateSnapshot":"cross-env UPDATE_SNAPSHOT=1 npm test"},"_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"prettier":{"tabWidth":4,"printWidth":120,"singleQuote":false,"trailingComma":"none"},"repository":{"url":"git+https://github.com/textlint/regexp-string-matcher.git","type":"git"},"_npmVersion":"8.11.0","description":"Regexp-like string matcher.","directories":{"lib":"lib","test":"test"},"lint-staged":{"*.{js,jsx,ts,tsx,css}":["prettier --write"]},"_nodeVersion":"16.15.0","dependencies":{"lodash.uniq":"^4.5.0","lodash.sortby":"^4.7.0","lodash.uniqwith":"^4.5.0","escape-string-regexp":"^4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.0.0","ts-node":"^10.7.0","prettier":"^2.6.2","cross-env":"^7.0.3","typescript":"^4.6.4","@types/node":"^17.0.34","lint-staged":"^12.4.1","@types/mocha":"^9.1.1","@types/to-regex":"^3.0.0","@types/lodash.uniq":"^4.5.3","@types/lodash.sortby":"^4.7.3","ts-node-test-register":"^10.0.0","@types/lodash.uniqwith":"^4.5.3"},"_npmOperationalInternal":{"tmp":"tmp/regexp-string-matcher_2.0.2_1656421547993_0.1464611400499225","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-05-23T08:06:37.170Z","modified":"2025-07-20T01:51:01.893Z","1.0.1":"2018-05-23T08:06:37.447Z","1.0.2":"2018-05-23T09:04:27.914Z","1.1.0":"2019-12-27T15:48:46.552Z","1.1.1":"2022-05-17T22:49:28.627Z","2.0.0":"2022-05-17T23:34:08.352Z","2.0.1":"2022-05-18T00:53:44.232Z","2.0.2":"2022-06-28T13:05:48.105Z"},"bugs":{"url":"https://github.com/textlint/regexp-string-matcher/issues"},"author":{"name":"azu"},"license":"MIT","homepage":"https://github.com/textlint/regexp-string-matcher","keywords":["helper","regexp","util"],"repository":{"url":"git+https://github.com/textlint/regexp-string-matcher.git","type":"git"},"description":"Regexp-like string matcher.","maintainers":[{"email":"azuciao@gmail.com","name":"azu"},{"email":"azuciao+textlint@gmail.com","name":"textlint-user"}],"readme":"# @textlint/regexp-string-matcher [![Actions Status: test](https://github.com/textlint/regexp-string-matcher/workflows/test/badge.svg)](https://github.com/textlint/regexp-string-matcher/actions?query=workflow%3A\"test\")\n\nRegexp-like string matcher library.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n    npm install @textlint/regexp-string-matcher\n\n## Usage\n\nInterface:\n\n```ts\nexport interface matchPatternResult {\n    match: string;\n    startIndex: number;\n    endIndex: number;\n}\n/**\n * Match regExpLikeStrings and return matchPatternResults\n * @param text target text\n * @param regExpLikeStrings an array of pattern string\n */\nexport declare const matchPatterns: (text: string, regExpLikeStrings: string[]) => matchPatternResult[];\n```\n\nExample:\n\n```js\nimport { matchPatterns } from \"@textlint/regexp-string-matcher\";\nconst inputText = `\nGitHub is a web-based hosting service for version control using git.\nIt is mostly used for computer code.\nGitHub launched in 2018-04-10.`;\n// RegExp like strings\nconst inputPatterns = [\n    \"git\", // => /git/g\n    \"/github/i\", // => /github/ig\n    \"/(\\\\d{4})-(\\\\d{2})-(\\\\d{2})/\" // => /\\d{4}-\\d{2}-\\d{2}/g\n];\n\nconst results = matchPatterns(inputText, inputPatterns);\nassert.deepStrictEqual(results, [\n    { match: \"GitHub\", startIndex: 1, endIndex: 7, captures: [] },\n    { match: \"git\", startIndex: 65, endIndex: 68, captures: [] },\n    { match: \"GitHub\", startIndex: 107, endIndex: 113, captures: [] },\n    { match: \"2018-04-10\", startIndex: 126, endIndex: 136, captures: [\"2018\", \"04\", \"10\"] }\n]);\n```\n\n## RegExp-like String\n\nThis library aim to represent RegExp in JSON and use it for ignoring words.\n`g`(global) flag and `u`(unicode) is added by default.\n\n| Input        | Ouput   | Note                                       |\n|--------------|---------|--------------------------------------------|\n| `\"str\"`      | `/str/gu` | convert string to regexp with global       |\n| `\"/str/\"`    | `/str/gu` |                                            |\n| `\"/str/g\"`   | `/str/gu` | Duplicated `g` is just ignored             |\n| `\"/str/i\"`   | `/str/igu` |                                            |\n| `\"/str/u\"`   | `/str/ug` |                                            |\n| `\"/str/m\"`   | `/str/mgu` |                                            |\n| `\"/str/y\"`   | `/str/ygu` |                                            |\n| ---          | ---     | ---                                        |\n| `\"/\\\\d+/\"`   | `/\\d+/gu` | You should escape meta character like `\\d` |\n| `\"/(\\\\d+)/\"` | `/\\d+/gu` | You can use capture                        |\n\n:warning: You should escape meta character like `\\d` in RegExp-like string.\n\nFor example, If you want to write `\\w`(any word) in RegExp-like string, you should escape `\\w` to `\\\\w`.\n\n- [Regular Expressions - JavaScript | MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Using_special_characters)\n\nText:\n\n```\nThis is a pen.\n```\n\nRegExp-like String:\n\n```json\n[\n    \"/a (\\\\w+)/\"\n]\n```\n\nResults:\n\n```\n[ { match: 'a pen', startIndex: 8, endIndex: 13, captures: [\"pen\"] } ]\n```\n\n## Examples\n\n### string\n\n**text:**\n```markdown\nGitHub is a web-based hosting service for version control using git.\nIt is mostly used for computer code.\nGitHub launched in 2018-04-10.\n```\n\n**pattern:**\n\n```json\n[\n  \"GitHub\"\n]\n```\n\n**results:** 2 hits\n```markdown\n**GitHub** is a web-based hosting service for version control using git.\nIt is mostly used for computer code.\n**GitHub** launched in 2018-04-10.\n```\n\n### Ignore Case match\n\n**text:**\n```markdown\nGitHub is a web-based hosting service for version control using git.\nIt is mostly used for computer code.\nGitHub launched in 2018-04-10.\n```\n\n**pattern:**\n\n```json\n[\n  \"/git/i\"\n]\n```\n\n**results:**: 3 hits\n```markdown\n**Git**Hub is a web-based hosting service for version control using **git**.\nIt is mostly used for computer code.\n**Git**Hub launched in 2018-04-10.\n```\n\n### Special character\n\nYou should escape special charactor like `\\d` in RegExp-like string.\n\n**text:**\n```markdown\nGitHub is a web-based hosting service for version control using git.\nIt is mostly used for computer code.\nGitHub launched in 2018-04-10.\n```\n\n**pattern:**\n```json\n[\n  \"/\\\\d{4}-\\\\d{2}-\\\\d{2}/\"\n]\n```\n\n**results:**: 1 hit\n```markdown\nGitHub is a web-based hosting service for version control using git.\nIt is mostly used for computer code.\nGitHub launched in **2018-04-10**.\n```\n\n### Multi-line\n\n\n**text:**\n```markdown\n===START===\n1st inline text.\n===END===\n\n===START===\n2nd inline text.\n===END===\n```\n\n**pattern:**\n```json\n[\n  \"/===START===[\\\\s\\\\S]*?===END===/m\"\n]\n\n```\n\n**results:**: 2 hits\n```markdown\n**===START===\n1st inline text.\n===END===**\n\n**===START===\n2nd inline text.\n===END===**\n```\n\n\nFor more details, see [test/snapshots](./test/snapshots)\n\n### Escape bracket\n\n**text:**\n```markdown\nTODO [Issue #1]: it will be fixed\n```\n\n**patterns:**\n```json\n[\n  \"/TODO \\\\[Issue #\\\\d+\\\\]:/i\"\n]\n```\n\n:memo: You should escape bracket both. `\\\\[` and `\\\\]`,\n\n**results:**\n\n```\n**TODO [Issue #1]:** it will be fixed\n```\n\n\n## Changelog\n\nSee [Releases page](https://github.com/textlint/regexp-string-matcher/releases).\n\n## Running tests\n\nInstall devDependencies and Run `npm test`:\n\n    npm i -d && npm test\n\n### How to add snapshot tests?\n\n1. Create new dir to `./snapshots/<name>/`\n2. Add `input.txt` and `input-patterns.json`\n3. Run `npm run test:updateSnapshot`\n4. You should verify the output results manually\n5. Run `npm test` and pass it\n5. Commit it\n\n## Contributing\n\nPull requests and stars are always welcome.\n\nFor bugs and feature requests, [please create an issue](https://github.com/textlint/regexp-string-matcher/issues).\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## Author\n\n- [github/azu](https://github.com/azu)\n- [twitter/azu_re](https://twitter.com/azu_re)\n\n## License\n\nMIT © azu\n","readmeFilename":"README.md"}