spelling: programmatically

This commit is contained in:
Josh Soref 2019-10-13 03:09:33 -04:00
parent 267b685273
commit a712d47663
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ export const ENCODING_SCHEME = [
/** /**
* Lookup table for the binary value of each digit representation. * Lookup table for the binary value of each digit representation.
* *
* I wrote a very nice algorithm to generate 8 4 2 1 encoding programatically, * I wrote a very nice algorithm to generate 8 4 2 1 encoding programmatically,
* but unfortunately it's much easier (if less elegant) to use lookup tables * but unfortunately it's much easier (if less elegant) to use lookup tables
* when supporting multiple encoding schemes. * when supporting multiple encoding schemes.
* *

View file

@ -49,7 +49,7 @@ class URLEncode extends Operation {
* @returns {string} * @returns {string}
*/ */
encodeAllChars (str) { encodeAllChars (str) {
// TODO Do this programatically // TODO Do this programmatically
return encodeURIComponent(str) return encodeURIComponent(str)
.replace(/!/g, "%21") .replace(/!/g, "%21")
.replace(/#/g, "%23") .replace(/#/g, "%23")