Skip to content

Commit 92ad78e

Browse files
committed
chore: bump version to 3.3.4
1 parent f6d3fba commit 92ad78e

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

dist/string.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,12 @@ string.js - Copyright (C) 2012-2014, JP Richardson <jprichardson@gmail.com>
519519
return new this.constructor(this.s)
520520
}
521521
var s = this.s, args = arguments.length > 0 ? arguments : [''];
522-
multiArgs(args, function(tag) {
523-
s = s.replace(RegExp('<\/?' + tag + '[^<>]*>', 'gi'), '');
524-
});
522+
function stripRecursively(tag) {
523+
var regex = RegExp('<\/?' + tag + '[^<>]*>', 'gi');
524+
s = s.replace(regex, '');
525+
if (s.match(regex)) stripRecursively(tag);
526+
}
527+
multiArgs(args, stripRecursively)
525528
return new this.constructor(s);
526529
},
527530

0 commit comments

Comments
 (0)