regex-is-jsp 3.0.11 → 3.0.14
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/README.md +3 -3
- package/dist/regex-is-jsp.esm.js +2 -2
- package/dist/regex-is-jsp.umd.js +2 -2
- package/examples/_quickTake.js +2 -2
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
## Install
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
This package is [pure ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). If you're not ready yet, install an older version of this program, 2.1.0 (`npm i regex-is-jsp@2.1.0`).
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
npm i regex-is-jsp
|
|
@@ -42,8 +42,8 @@ import { isJSP } from "regex-is-jsp";
|
|
|
42
42
|
// detects JSP code
|
|
43
43
|
assert.equal(isJSP().test(`<div><% out.println("Hi!"); %></div>`), true);
|
|
44
44
|
|
|
45
|
-
// in case if it's not
|
|
46
|
-
assert.equal(isJSP().test(`<div>
|
|
45
|
+
// in case if it's not JSP
|
|
46
|
+
assert.equal(isJSP().test(`<div>text</div>`), false);
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
## Documentation
|
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.0.
|
|
4
|
+
* @version 3.0.14
|
|
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.0.
|
|
10
|
+
var e="3.0.14";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.0.
|
|
4
|
+
* @version 3.0.14
|
|
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 regexIsJsp=(()=>{var n=Object.defineProperty;var
|
|
10
|
+
var regexIsJsp=(()=>{var n=Object.defineProperty;var p=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=p(e,r))||i.enumerable});return s};var l=s=>a(n({},"__esModule",{value:!0}),s);var x={};u(x,{isJSP:()=>m,version:()=>y});var o="3.0.14";var y=o;function m(){return/<%|%>|<\s*jsp:|<\s*cms:|<\s*c:|\${\s*jsp/gi}return l(x);})();
|
package/examples/_quickTake.js
CHANGED
|
@@ -7,5 +7,5 @@ import { isJSP } from "../dist/regex-is-jsp.esm.js";
|
|
|
7
7
|
// detects JSP code
|
|
8
8
|
assert.equal(isJSP().test(`<div><% out.println("Hi!"); %></div>`), true);
|
|
9
9
|
|
|
10
|
-
// in case if it's not
|
|
11
|
-
assert.equal(isJSP().test(`<div>
|
|
10
|
+
// in case if it's not JSP
|
|
11
|
+
assert.equal(isJSP().test(`<div>text</div>`), false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "regex-is-jsp",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.14",
|
|
4
4
|
"description": "Regular expression for detecting JSP (Java Server Pages) code",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"code",
|
|
@@ -39,9 +39,10 @@
|
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "node '../../ops/scripts/esbuild.js' && yarn run dts",
|
|
41
41
|
"dev": "DEV=true node '../../ops/scripts/esbuild.js' && yarn run dts",
|
|
42
|
+
"devtest": "c8 yarn run unit && yarn run examples && yarn run lint",
|
|
42
43
|
"dts": "rollup -c && yarn run prettier 'types/index.d.ts' --write",
|
|
43
44
|
"examples": "node '../../ops/scripts/run-examples.js'",
|
|
44
|
-
"lect": "node '../../ops/lect/lect.js'",
|
|
45
|
+
"lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
|
|
45
46
|
"letspublish": "yarn publish || :",
|
|
46
47
|
"lint": "eslint . --fix",
|
|
47
48
|
"perf": "node perf/check.js",
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
"prettier": "prettier",
|
|
50
51
|
"prettier:format": "prettier --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern",
|
|
51
52
|
"pretest": "yarn run lect && yarn run build",
|
|
52
|
-
"test": "
|
|
53
|
+
"test": "yarn run devtest",
|
|
53
54
|
"unit": "uvu test"
|
|
54
55
|
},
|
|
55
56
|
"engines": {
|