puvox-library 1.0.2 → 1.0.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/library_standard.js +3 -3
- package/package.json +1 -1
package/library_standard.js
CHANGED
@@ -1202,7 +1202,7 @@ const puvox_library =
|
|
1202
1202
|
} ,
|
1203
1203
|
|
1204
1204
|
// more from locutus: https://github.com/locutusjs/locutus/blob/master/src/php
|
1205
|
-
|
1205
|
+
stripTags (input, allowed) {
|
1206
1206
|
allowed = (((allowed || '') + '').toLowerCase().match(/<[a-z][a-z0-9]*>/g) || []).join('');
|
1207
1207
|
const tags = /<\/?([a-z][a-z0-9]*)\b[^>]*>/gi;
|
1208
1208
|
const commentsAndPhpTags = /<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi;
|
@@ -2780,9 +2780,9 @@ const puvox_library =
|
|
2780
2780
|
|
2781
2781
|
|
2782
2782
|
// export to outside world
|
2783
|
-
if (typeof module !=
|
2783
|
+
if (typeof module != 'undefined' && module.hasOwnProperty('exports')) {
|
2784
2784
|
module.exports = puvox_library;
|
2785
2785
|
}
|
2786
|
-
if (window != undefined) {
|
2786
|
+
if (typeof window != 'undefined') {
|
2787
2787
|
window['PuvoxLibrary'] = puvox_library;
|
2788
2788
|
}
|