regex-is-jsp 3.0.13 → 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 +2 -2
- 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 +1 -1
package/README.md
CHANGED
|
@@ -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 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.
|
|
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);
|