GitXplorerGitXplorer
s

html-comment-regex

public
15 stars
7 forks
1 issues

Commits

List of commits on branch master.
Verified
62ef1d5f46bd03e36ea0c8f2f4d2c91b60ff39d0

1.1.2

sstevemao committed 6 years ago
Verified
9c228988fe74f4cdb5c31fefc0b59660d969d887

update env

sstevemao committed 6 years ago
Verified
1546a45a1eb0a500a41bd40f14efbd725d1b3417

Merge pull request #3 from warmans/master

sstevemao committed 6 years ago
Verified
9735fb8b677b08d625c6e9838707827cfe75d4a5

Create LICENSE

wwarmans committed 6 years ago
Verified
8829fa5dcecdabb8680cdd8cf36fe73b297fffdf

1.1.1

sstevemao committed 9 years ago
Unverified
09dd6f683db262c6a88981d6bdbf135b7e73d8ac

Merge pull request #2 from kevva/improve-performance

sstevemao committed 9 years ago

README

The README file for this repository.

NPM version Build Status

Regular expression for matching HTML comments

Install

$ npm install --save html-comment-regex

Usage

var htmlCommentRegex = require('html-comment-regex');

htmlCommentRegex.test('<!DOCTYPE html><!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--><html lang="en"><head><meta charset="UTF-8"><title>Document</title></head><body></body></html>');
//=> true

htmlCommentRegex.test('<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Document</title></head><body></body></html>');
//=> false

License

MIT © Steve Mao