diff options
author | Marc Wrobel <marc.wrobel@gmail.com> | 2022-07-18 11:02:41 +0300 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2022-07-18 23:30:29 +0300 |
commit | 705d6857ad262c0f1e8e85645a7a0df7b1e14d84 (patch) | |
tree | 4fce08abb7cee0598626d7c923d9c761c4567eef /js/src | |
parent | 154916ca2e9160cc17c21c7a8e5938832ab186b3 (diff) |
Fix typos in code (#36763)
Shoutout is correct but has been replaced by its more common form : Shout-out (https://www.merriam-webster.com/dictionary/shout-out).
Diffstat (limited to 'js/src')
-rw-r--r-- | js/src/util/index.js | 2 | ||||
-rw-r--r-- | js/src/util/sanitizer.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/js/src/util/index.js b/js/src/util/index.js index 161501e391..b02789df5d 100644 --- a/js/src/util/index.js +++ b/js/src/util/index.js @@ -9,7 +9,7 @@ const MAX_UID = 1_000_000 const MILLISECONDS_MULTIPLIER = 1000 const TRANSITION_END = 'transitionend' -// Shoutout AngusCroll (https://goo.gl/pxwQGp) +// Shout-out Angus Croll (https://goo.gl/pxwQGp) const toType = object => { if (object === null || object === undefined) { return `${object}` diff --git a/js/src/util/sanitizer.js b/js/src/util/sanitizer.js index 06402d296f..0584df9325 100644 --- a/js/src/util/sanitizer.js +++ b/js/src/util/sanitizer.js @@ -21,14 +21,14 @@ const ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i /** * A pattern that recognizes a commonly useful subset of URLs that are safe. * - * Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts + * Shout-out to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts */ const SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i /** * A pattern that matches safe data URLs. Only matches image, video and audio types. * - * Shoutout to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts + * Shout-out to Angular https://github.com/angular/angular/blob/12.2.x/packages/core/src/sanitization/url_sanitizer.ts */ const DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i |