Skip to content

Commit

Permalink
Added polyfil to istanbul ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
danday74 committed Mar 19, 2018
1 parent d221dad commit e9d8dd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/replaceLast.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var isRegex = function(any) {
var regexReplaceLast = function(str, pattern, replacement) {
// Official MDN polyfill https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/flags
// for Node.js v4
/* istanbul ignore next */
if (RegExp.prototype.flags === undefined) {
Object.defineProperty(RegExp.prototype, 'flags', {
configurable: true,
Expand Down

0 comments on commit e9d8dd0

Please sign in to comment.