GitXplorerGitXplorer
s

html-comment-regex

public
15 stars
7 forks
1 issues

Commits

List of commits on branch master.
Unverified
54615a8da50b105e83838cf2d7a482189aa1b451

Improve performance in regex

kkevva committed 9 years ago
Unverified
9b37e7a77c9b1a28cb16d027b38ef300a1a567ab

test normal comments and capturing group

sstevemao committed 10 years ago
Unverified
4d838b10a5e67d8c5e396494830904eecedd1e7f

1.1.0

sstevemao committed 10 years ago
Unverified
018895b886dfe19a6ddc543df914cc124109f3d6

should capture whatever in the comment

sstevemao committed 10 years ago
Unverified
f63b72332ee00de4a7ee0009656c507486893f32

1.0.0

committed 10 years ago
Unverified
2dbb3be06587c4aa517d86981efba75c78e6ebe2

init

committed 10 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