Force string on format

This commit is contained in:
Sam Potts
2018-06-13 00:48:42 +10:00
parent aae1092bac
commit 0ecf7e3854
9 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -972,7 +972,7 @@ function format(input) {
}
return input.toString().replace(/{(\d+)}/g, function (match, i) {
return is.string(args[i]) ? args[i] : '';
return args[i].toString();
});
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -6361,7 +6361,7 @@ function format(input) {
}
return input.toString().replace(/{(\d+)}/g, function (match, i) {
return is$1.string(args[i]) ? args[i] : '';
return args[i].toString();
});
}
@@ -9724,7 +9724,7 @@ var Listeners = function () {
// Check for audio tracks on load
// We can't use `loadedmetadata` as it doesn't seem to have audio tracks at that point
on.call(this.player, this.player.media, 'loadeddata', function () {
on.call(this.player, this.player.media, 'canplay', function () {
toggleHidden(_this3.player.elements.volume, !_this3.player.hasAudio);
toggleHidden(_this3.player.elements.buttons.mute, !_this3.player.hasAudio);
});
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -15,7 +15,7 @@ export function format(input, ...args) {
return input;
}
return input.toString().replace(/{(\d+)}/g, (match, i) => (is.string(args[i]) ? args[i] : ''));
return input.toString().replace(/{(\d+)}/g, (match, i) => args[i].toString());
}
// Get percentage