File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -723,8 +723,8 @@ class Utils {
723
723
}
724
724
725
725
if ( removeScriptAndStyle ) {
726
- htmlStr = recursiveRemove ( / < s c r i p t [ ^ > ] * > .* ?< \/ s c r i p t > / gi, htmlStr ) ;
727
- htmlStr = recursiveRemove ( / < s t y l e [ ^ > ] * > .* ?< \/ s t y l e > / gi, htmlStr ) ;
726
+ htmlStr = recursiveRemove ( / < s c r i p t [ ^ > ] * > .* ?< \/ s c r i p t [ ^ > ] * > / gi, htmlStr ) ;
727
+ htmlStr = recursiveRemove ( / < s t y l e [ ^ > ] * > .* ?< \/ s t y l e [ ^ > ] * > / gi, htmlStr ) ;
728
728
}
729
729
return htmlStr . replace ( / < [ ^ > ] + > / g, "" ) ;
730
730
}
Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ class ToBase45 extends Operation {
43
43
* @returns {string }
44
44
*/
45
45
run ( input , args ) {
46
+ if ( ! input ) return "" ;
46
47
input = new Uint8Array ( input ) ;
47
48
const alphabet = Utils . expandAlphRange ( args [ 0 ] ) ;
48
- if ( ! input ) return "" ;
49
49
50
50
const res = [ ] ;
51
51
You can’t perform that action at this time.
0 commit comments