regex-is-jsp 3.1.2 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/README.md +13 -16
- package/dist/regex-is-jsp.esm.js +2 -2
- package/dist/regex-is-jsp.umd.js +2 -2
- package/package.json +2 -2
- package/examples/_quickTake.js +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -17,7 +17,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
17
17
|
|
|
18
18
|
### BREAKING CHANGES
|
|
19
19
|
|
|
20
|
-
- programs now are in ES Modules and won't work with Common JS require()
|
|
20
|
+
- programs now are in ES Modules and won't work with Common JS `require()`
|
|
21
21
|
|
|
22
22
|
## 2.1.0 (2021-05-24)
|
|
23
23
|
|
|
@@ -35,7 +35,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
35
35
|
|
|
36
36
|
### Fixed
|
|
37
37
|
|
|
38
|
-
- add testStats to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29))
|
|
38
|
+
- add `testStats` to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29))
|
|
39
39
|
|
|
40
40
|
## 2.0.0 (2021-01-23)
|
|
41
41
|
|
package/README.md
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">regex-is-jsp</h1>
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
<p align="center">Regular expression for detecting JSP (Java Server Pages) code</p>
|
|
4
4
|
|
|
5
|
-
<
|
|
6
|
-
<a href="https://www.npmjs.com/package/regex-is-jsp" rel="nofollow noreferrer noopener">
|
|
7
|
-
<img src="https://img.shields.io/badge/-npm-blue?style=flat-square" alt="page on npm">
|
|
8
|
-
</a>
|
|
5
|
+
<p align="center">
|
|
9
6
|
<a href="https://codsen.com/os/regex-is-jsp" rel="nofollow noreferrer noopener">
|
|
10
7
|
<img src="https://img.shields.io/badge/-codsen-blue?style=flat-square" alt="page on codsen.com">
|
|
11
8
|
</a>
|
|
9
|
+
<a href="https://www.npmjs.com/package/regex-is-jsp" rel="nofollow noreferrer noopener">
|
|
10
|
+
<img src="https://img.shields.io/badge/-npm-blue?style=flat-square" alt="page on npm">
|
|
11
|
+
</a>
|
|
12
12
|
<a href="https://github.com/codsen/codsen/tree/main/packages/regex-is-jsp" rel="nofollow noreferrer noopener">
|
|
13
13
|
<img src="https://img.shields.io/badge/-github-blue?style=flat-square" alt="page on github">
|
|
14
14
|
</a>
|
|
15
15
|
<a href="https://npmcharts.com/compare/regex-is-jsp?interval=30" rel="nofollow noreferrer noopener" target="_blank">
|
|
16
16
|
<img src="https://img.shields.io/npm/dm/regex-is-jsp.svg?style=flat-square" alt="Downloads per month">
|
|
17
17
|
</a>
|
|
18
|
-
<a href="https://
|
|
19
|
-
<img src="https://img.shields.io/badge/
|
|
20
|
-
</a>
|
|
21
|
-
<img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT License">
|
|
22
|
-
<a href="https://liberamanifesto.com" rel="nofollow noreferrer noopener" target="_blank">
|
|
23
|
-
<img src="https://img.shields.io/badge/libera-manifesto-lightgrey.svg?style=flat-square" alt="libera manifesto">
|
|
18
|
+
<a href="https://codsen.com/os/regex-is-jsp/changelog" rel="nofollow noreferrer noopener">
|
|
19
|
+
<img src="https://img.shields.io/badge/changelog-here-brightgreen?style=flat-square" alt="changelog">
|
|
24
20
|
</a>
|
|
25
|
-
|
|
21
|
+
<img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT Licence">
|
|
22
|
+
</p>
|
|
26
23
|
|
|
27
24
|
## Install
|
|
28
25
|
|
|
@@ -56,8 +53,8 @@ To report bugs or request features or assistance, [raise an issue](https://githu
|
|
|
56
53
|
|
|
57
54
|
## Licence
|
|
58
55
|
|
|
59
|
-
MIT License
|
|
56
|
+
MIT License.
|
|
60
57
|
|
|
61
|
-
Copyright
|
|
58
|
+
Copyright © 2010-2022 Roy Revelt and other contributors.
|
|
62
59
|
|
|
63
|
-
<img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center">
|
|
60
|
+
<p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>
|
package/dist/regex-is-jsp.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name regex-is-jsp
|
|
3
3
|
* @fileoverview Regular expression for detecting JSP (Java Server Pages) code
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.4
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/regex-is-jsp/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var e="3.1.
|
|
10
|
+
var e="3.1.4";var n=e;function i(){return/<%|%>|<\s*jsp:|<\s*cms:|<\s*c:|\${\s*jsp/gi}export{i as isJSP,n as version};
|
package/dist/regex-is-jsp.umd.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name regex-is-jsp
|
|
3
3
|
* @fileoverview Regular expression for detecting JSP (Java Server Pages) code
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.4
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/regex-is-jsp/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var regexIsJsp=(()=>{var n=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var u=(s,e)=>{for(var t in e)n(s,t,{get:e[t],enumerable:!0})},a=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!d.call(s,r)&&r!==t&&n(s,r,{get:()=>e[r],enumerable:!(i=o(e,r))||i.enumerable});return s};var l=s=>a(n({},"__esModule",{value:!0}),s);var m={};u(m,{isJSP:()=>
|
|
10
|
+
"use strict";var regexIsJsp=(()=>{var n=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var u=(s,e)=>{for(var t in e)n(s,t,{get:e[t],enumerable:!0})},a=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!d.call(s,r)&&r!==t&&n(s,r,{get:()=>e[r],enumerable:!(i=o(e,r))||i.enumerable});return s};var l=s=>a(n({},"__esModule",{value:!0}),s);var m={};u(m,{isJSP:()=>g,version:()=>x});var p="3.1.4";var x=p;function g(){return/<%|%>|<\s*jsp:|<\s*cms:|<\s*c:|\${\s*jsp/gi}return l(m);})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "regex-is-jsp",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"description": "Regular expression for detecting JSP (Java Server Pages) code",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"code",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"examples": "node '../../ops/scripts/run-examples.js'",
|
|
46
46
|
"lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
|
|
47
47
|
"letspublish": "yarn publish || :",
|
|
48
|
-
"lint": "eslint . --fix",
|
|
48
|
+
"lint": "eslint . --ext .js --ext .ts --fix",
|
|
49
49
|
"perf": "node perf/check.js",
|
|
50
50
|
"prepare": "echo 'ready'",
|
|
51
51
|
"prettier": "prettier",
|
package/examples/_quickTake.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// Quick Take
|
|
2
|
-
|
|
3
|
-
import { strict as assert } from "assert";
|
|
4
|
-
|
|
5
|
-
import { isJSP } from "../dist/regex-is-jsp.esm.js";
|
|
6
|
-
|
|
7
|
-
// detects JSP code
|
|
8
|
-
assert.equal(isJSP().test(`<div><% out.println("Hi!"); %></div>`), true);
|
|
9
|
-
|
|
10
|
-
// in case if it's not JSP
|
|
11
|
-
assert.equal(isJSP().test(`<div>text</div>`), false);
|