mirror of
https://github.com/video-dev/hls.js.git
synced 2026-06-16 13:34:44 +00:00
Lint characters that require UTF encoding in the source so that can be replaces with simpler text
This commit is contained in:
@@ -92,6 +92,11 @@ module.exports = {
|
||||
'MemberExpression[property.name="includes"][object.type="Identifier"]',
|
||||
message: arrayIncludesCompatibilityMsg,
|
||||
},
|
||||
{
|
||||
selector:
|
||||
'Literal[value=/\u2014/], TemplateElement[value.cooked=/\u2014/] ',
|
||||
message: 'Em-dash (—) is not allowed. Use a hyphen (-) instead.',
|
||||
},
|
||||
],
|
||||
'import/order': [
|
||||
'warn',
|
||||
|
||||
@@ -927,7 +927,7 @@ transfer tracks: ${stringify(transferredTracks, (key, value) => (key === 'initSe
|
||||
if (evictEnd > 0) {
|
||||
this._quotaEvictionPending[type] = true;
|
||||
this.log(
|
||||
`QuotaExceededError on "${type}" append sn: ${sn} — evicting back buffer to ${evictEnd.toFixed(3)}s and retrying`,
|
||||
`QuotaExceededError on "${type}" append sn: ${sn} - evicting back buffer to ${evictEnd.toFixed(3)}s and retrying`,
|
||||
);
|
||||
const removeOp = this.getFlushOp(type, 0, evictEnd);
|
||||
const clearOp = this.getClearEvictionPendingOp(type);
|
||||
@@ -936,7 +936,7 @@ transfer tracks: ${stringify(transferredTracks, (key, value) => (key === 'initSe
|
||||
return;
|
||||
}
|
||||
this.warn(
|
||||
`QuotaExceededError on "${type}" sn: ${sn} — no back buffer available to evict`,
|
||||
`QuotaExceededError on "${type}" sn: ${sn} - no back buffer available to evict`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user