Skip to content

Commit 7c76627

Browse files
authored
Merge pull request #297 from nidgetgod/fix-replaceAll-unfinished-modify
More completely type detect to replaceAll
2 parents 29106eb + 9018e3b commit 7c76627

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/assets/src/js/jquery.multipleInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@
485485
};
486486

487487
var replaceAll = function (search, replace, subject) {
488-
if (!(subject instanceof String)) {
488+
if (!(subject instanceof String) && typeof subject !== 'string')) {
489489
console.warn('Call replaceAll for non-string value: ' + subject);
490490
return subject;
491491
}

src/assets/src/js/jquery.multipleInput.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)