Skip to content

Commit 9018e3b

Browse files
author
NidgetGod
committed
More completely type detect to replaceAll
1 parent 6411bbf commit 9018e3b

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)