pax_global_header00006660000000000000000000000064127411534350014517gustar00rootroot0000000000000052 comment=8829fa5dcecdabb8680cdd8cf36fe73b297fffdf html-comment-regex-1.1.1/000077500000000000000000000000001274115343500152335ustar00rootroot00000000000000html-comment-regex-1.1.1/.editorconfig000066400000000000000000000002741274115343500177130ustar00rootroot00000000000000root = true [*] indent_style = space indent_size = 2 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [*.md] trim_trailing_whitespace = false html-comment-regex-1.1.1/.gitattributes000066400000000000000000000000141274115343500201210ustar00rootroot00000000000000* text=auto html-comment-regex-1.1.1/.gitignore000066400000000000000000000000351274115343500172210ustar00rootroot00000000000000/node_modules/ npm-debug.log html-comment-regex-1.1.1/.jscsrc000066400000000000000000000001351274115343500165220ustar00rootroot00000000000000{ "preset": "google", "maximumLineLength": null, "excludeFiles": ["node_modules/**"] } html-comment-regex-1.1.1/.jshintrc000066400000000000000000000003431274115343500170600ustar00rootroot00000000000000{ "boss": true, "curly": true, "eqeqeq": true, "eqnull": true, "immed": true, "latedef": true, "mocha" : true, "newcap": true, "noarg": true, "node": true, "sub": true, "undef": true, "unused": true } html-comment-regex-1.1.1/.travis.yml000066400000000000000000000001101274115343500173340ustar00rootroot00000000000000sudo: false language: node_js node_js: - 'iojs' - '0.12' - '0.10' html-comment-regex-1.1.1/README.md000066400000000000000000000017161274115343500165170ustar00rootroot00000000000000# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] > Regular expression for matching HTML comments ## Install ```sh $ npm install --save html-comment-regex ``` ## Usage ```js var htmlCommentRegex = require('html-comment-regex'); htmlCommentRegex.test('Document'); //=> true htmlCommentRegex.test('Document'); //=> false ``` ## License MIT © [Steve Mao](https://github.com/stevemao) [npm-image]: https://badge.fury.io/js/html-comment-regex.svg [npm-url]: https://npmjs.org/package/html-comment-regex [travis-image]: https://travis-ci.org/stevemao/html-comment-regex.svg?branch=master [travis-url]: https://travis-ci.org/stevemao/html-comment-regex html-comment-regex-1.1.1/index.js000066400000000000000000000000651274115343500167010ustar00rootroot00000000000000'use strict'; module.exports = //g; html-comment-regex-1.1.1/package.json000066400000000000000000000016021274115343500175200ustar00rootroot00000000000000{ "name": "html-comment-regex", "version": "1.1.1", "description": "Regular expression for matching HTML comments", "homepage": "https://github.com/stevemao/html-comment-regex", "author": { "name": "Steve Mao", "email": "maochenyan@gmail.com", "url": "https://github.com/stevemao" }, "repository": "stevemao/html-comment-regex", "license": "MIT", "files": [ "index.js" ], "keywords": [ "html-comment-regex", "text", "string", "regex", "regexp", "re", "match", "test", "find", "pattern", "comment", "comments", "html", "HTML", "HyperText Markup Language" ], "dependencies": {}, "devDependencies": { "jscs": "^1.11.3", "jshint": "^2.6.3", "mocha": "*" }, "scripts": { "lint": "jshint *.js --exclude node_modules && jscs *.js", "test": "npm run-script lint && mocha" } } html-comment-regex-1.1.1/test.js000066400000000000000000000016711274115343500165550ustar00rootroot00000000000000'use strict'; var assert = require('assert'); var htmlCommentRegex = require('./'); var html = ' Document'; it('html should match the regex', function() { var result = htmlCommentRegex.exec(html); assert.deepEqual(result[0], ''); assert.deepEqual(result[1], '[if lt IE 7]> '); assert.deepEqual(result[1], ' normal comment 1 '); result = htmlCommentRegex.exec(html); assert.deepEqual(result[0], ''); assert.deepEqual(result[1], 'normal comment 2'); });