Skip to content

Commit

Permalink
chore: Fix typos (#5742)
Browse files Browse the repository at this point in the history
These typos were reported by an internal tool at Google. This fixes
typos and updates our public tooling to catch future instances of these.
  • Loading branch information
joeyparrish committed Oct 6, 2023
1 parent a55ebab commit 018428e
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 18 deletions.
5 changes: 5 additions & 0 deletions build/misspellings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@
r'(?i)cur+ent': 'current',
r"(?i)doens?'t": "doesn't",
r'(?i)droping': 'dropping',
r'(?i)e\.g[^.a-z0-9_]': r'e.g.',
r'(?i)errr+or': r'error',
r'(?i)errorr+': r'error',
r'(?i)ful+screen': 'fullscreen',
r'(?i)futher': 'further',
r'(?i)gene?ra?tor': 'generator',
r'(?i)(?:(in|)n*)ac+ur+ate': r'\1accurate',
r'(?i)infomation': r'information',
r'(?i)in?ter[ai]ble': 'iterable',
r'(?i)int(er|re)p(er|re)tation': 'interpretation',
r'(?i)langauge': 'language',
Expand All @@ -20,6 +24,7 @@
r'(?i)\boc+ur+(?!ed|ing|ence)': 'occur',
r'(?i)oc+ur+(ed|ing|ence)': r'occurr\1',
r'(?i)oc+ur+ance': 'occurrence',
r'(?i)orginal': 'original',
r'(?i)parrent': 'parent',
r'(?i)pol+yfil+': 'polyfill',
r'(?i)propogate': 'propagate',
Expand Down
4 changes: 2 additions & 2 deletions externs/shaka/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ shaka.extern.RequestContext;
* it before it is sent to the scheme plugin.
* The RequestType describes the basic type of the request (manifest, segment,
* etc). The optional RequestContext will be provided where applicable to
* provide additional infomation about the request. A request filter can run
* provide additional information about the request. A request filter can run
* asynchronously by returning a promise; in this case, the request will not be
* sent until the promise is resolved.
*
Expand All @@ -244,7 +244,7 @@ shaka.extern.RequestFilter;
* it before it is returned.
* The RequestType describes the basic type of the request (manifest, segment,
* etc). The optional RequestContext will be provided where applicable to
* provide additional infomation about the request. A response filter can run
* provide additional information about the request. A response filter can run
* asynchronously by returning a promise.
*
* @typedef {!function(shaka.net.NetworkingEngine.RequestType,
Expand Down
4 changes: 2 additions & 2 deletions externs/shaka/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ shaka.extern.TimelineRegionInfo;
* @property {?number} channelsCount
* The number of audio channels, or null if unknown.
* @property {?string} pixelAspectRatio
* The pixel aspect ratio value; e.g "1:1".
* The pixel aspect ratio value; e.g. "1:1".
* @property {?number} width
* The video width in pixels.
* @exportDoc
Expand Down Expand Up @@ -1050,7 +1050,7 @@ shaka.extern.MssManifestConfiguration;
* @property {shaka.extern.MssManifestConfiguration} mss
* Advanced parameters used by the MSS manifest parser.
* @property {boolean} raiseFatalErrorOnManifestUpdateRequestFailure
* If true, manifest update request failures will cause a fatal errror.
* If true, manifest update request failures will cause a fatal error.
* Defaults to <code>false</code> if not provided.
*
* @exportDoc
Expand Down
2 changes: 1 addition & 1 deletion externs/shaka/transmuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ shaka.extern.Transmuxer = class {
* Returns the original mimetype of the transmuxer.
* @return {string}
*/
getOrginalMimeType() {}
getOriginalMimeType() {}

/**
* Transmux a input data to MP4.
Expand Down
2 changes: 1 addition & 1 deletion lib/media/media_source_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ shaka.media.MediaSourceEngine = class {

let mimeType = this.sourceBufferTypes_[contentType];
if (this.transmuxers_[contentType]) {
mimeType = this.transmuxers_[contentType].getOrginalMimeType();
mimeType = this.transmuxers_[contentType].getOriginalMimeType();
}
if (reference) {
const timestamp = this.getTimestampAndDispatchMetadata_(
Expand Down
2 changes: 1 addition & 1 deletion lib/media/quality_observer.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ shaka.media.QualityObserver.QualityChangePosition;
*
* @description
* Contains media quality information for a specific content type
* e.g video or audio.
* e.g. video or audio.
*
* @property {!Array.<shaka.media.QualityObserver.QualityChangePosition>}
* qualityChangePositions
Expand Down
2 changes: 1 addition & 1 deletion lib/transmuxer/aac_transmuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ shaka.transmuxer.AacTransmuxer = class {
* @override
* @export
*/
getOrginalMimeType() {
getOriginalMimeType() {
return this.originalMimeType_;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/transmuxer/ac3_transmuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ shaka.transmuxer.Ac3Transmuxer = class {
* @override
* @export
*/
getOrginalMimeType() {
getOriginalMimeType() {
return this.originalMimeType_;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/transmuxer/ec3_transmuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ shaka.transmuxer.Ec3Transmuxer = class {
* @override
* @export
*/
getOrginalMimeType() {
getOriginalMimeType() {
return this.originalMimeType_;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/transmuxer/mp3_transmuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ shaka.transmuxer.Mp3Transmuxer = class {
* @override
* @export
*/
getOrginalMimeType() {
getOriginalMimeType() {
return this.originalMimeType_;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/transmuxer/mpeg_ts_transmuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ shaka.transmuxer.MpegTsTransmuxer = class {
* @override
* @export
*/
getOrginalMimeType() {
getOriginalMimeType() {
return this.originalMimeType_;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/transmuxer/mss_transmuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ shaka.transmuxer.MssTransmuxer = class {
* @override
* @export
*/
getOrginalMimeType() {
getOriginalMimeType() {
return this.originalMimeType_;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/transmuxer/muxjs_transmuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ shaka.transmuxer.MuxjsTransmuxer = class {
* @override
* @export
*/
getOrginalMimeType() {
getOriginalMimeType() {
return this.originalMimeType_;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/transmuxer/ts_transmuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ shaka.transmuxer.TsTransmuxer = class {
* @override
* @export
*/
getOrginalMimeType() {
getOriginalMimeType() {
return this.originalMimeType_;
}

Expand Down
4 changes: 2 additions & 2 deletions test/test/util/simple_fakes.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ shaka.test.FakeTransmuxer = class {
jasmine.createSpy('transmux').and.returnValue(Promise.resolve(output));

/** @type {!jasmine.Spy} */
this.getOrginalMimeType =
jasmine.createSpy('getOrginalMimeType').and.returnValue('mimeType');
this.getOriginalMimeType =
jasmine.createSpy('getOriginalMimeType').and.returnValue('mimeType');
}
};
2 changes: 1 addition & 1 deletion third_party/closure-uri/uri.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* Use new goog.Uri(string) to parse a URI string.
*
* e.g: <code>var myUri = new goog.Uri(window.location);</code>
* e.g.: <code>var myUri = new goog.Uri(window.location);</code>
*
* Implements RFC 3986 for parsing/formatting URIs.
* http://www.ietf.org/rfc/rfc3986.txt
Expand Down

0 comments on commit 018428e

Please sign in to comment.