html-comment-regex

WebJar for html-comment-regex

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

html-comment-regex
Last Version

Last Version

1.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

html-comment-regex
WebJar for html-comment-regex
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/stevemao/html-comment-regex

Download html-comment-regex

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/html-comment-regex/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>html-comment-regex</artifactId>
    <version>1.1.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/html-comment-regex/
implementation 'org.webjars.npm:html-comment-regex:1.1.2'
// https://jarcasting.com/artifacts/org.webjars.npm/html-comment-regex/
implementation ("org.webjars.npm:html-comment-regex:1.1.2")
'org.webjars.npm:html-comment-regex:jar:1.1.2'
<dependency org="org.webjars.npm" name="html-comment-regex" rev="1.1.2">
  <artifact name="html-comment-regex" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='html-comment-regex', version='1.1.2')
)
libraryDependencies += "org.webjars.npm" % "html-comment-regex" % "1.1.2"
[org.webjars.npm/html-comment-regex "1.1.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.1.2
1.1.1