mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-09 15:16:51 +02:00
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).
This commit is contained in:
@@ -9,7 +9,7 @@ const MAX_UID = 1_000_000
|
|||||||
const MILLISECONDS_MULTIPLIER = 1000
|
const MILLISECONDS_MULTIPLIER = 1000
|
||||||
const TRANSITION_END = 'transitionend'
|
const TRANSITION_END = 'transitionend'
|
||||||
|
|
||||||
// Shoutout AngusCroll (https://goo.gl/pxwQGp)
|
// Shout-out Angus Croll (https://goo.gl/pxwQGp)
|
||||||
const toType = object => {
|
const toType = object => {
|
||||||
if (object === null || object === undefined) {
|
if (object === null || object === undefined) {
|
||||||
return `${object}`
|
return `${object}`
|
||||||
|
@@ -21,14 +21,14 @@ const ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i
|
|||||||
/**
|
/**
|
||||||
* A pattern that recognizes a commonly useful subset of URLs that are safe.
|
* 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
|
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.
|
* 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
|
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
|
||||||
|
|
||||||
|
@@ -21,7 +21,7 @@ describe('SelectorEngine', () => {
|
|||||||
expect(SelectorEngine.find('div', fixtureEl)).toEqual([div])
|
expect(SelectorEngine.find('div', fixtureEl)).toEqual([div])
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should find elements globaly', () => {
|
it('should find elements globally', () => {
|
||||||
fixtureEl.innerHTML = '<div id="test"></div>'
|
fixtureEl.innerHTML = '<div id="test"></div>'
|
||||||
|
|
||||||
const div = fixtureEl.querySelector('#test')
|
const div = fixtureEl.querySelector('#test')
|
||||||
|
Reference in New Issue
Block a user