Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!1348
New MR specifically for re-adding after code freeze
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
New MR specifically for re-adding after code freeze
issue/drupal-3239509:3239509-post-freeze
into
9.4.x
Overview
0
Commits
6
Pipelines
0
Changes
6
Merged
New MR specifically for re-adding after code freeze
Ben Mullins
requested to merge
issue/drupal-3239509:3239509-post-freeze
into
9.4.x
Oct 27, 2021
Overview
0
Commits
6
Pipelines
0
Changes
6
Closes
#3239509
0
0
Merge request reports
Compare
9.4.x
version 4
16bb6db3
Nov 4, 2021
version 3
16bb6db3
Nov 4, 2021
version 2
4a307d17
Nov 4, 2021
version 1
4a307d17
Oct 27, 2021
9.4.x (base)
and
latest version
latest version
16bb6db3
6 commits,
Nov 4, 2021
version 4
16bb6db3
6 commits,
Nov 4, 2021
version 3
16bb6db3
6 commits,
Nov 4, 2021
version 2
4a307d17
17 commits,
Nov 4, 2021
version 1
4a307d17
17 commits,
Oct 27, 2021
6 files
+
56
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
core/misc/polyfills/string.includes.es6.js
0 → 100644
+
26
−
0
View file @ 16bb6db3
Edit in single-file editor
Open in Web IDE
/**
* @file
* Provides a polyfill for String.includes().
*
* This is needed for Internet Explorer 11 and Opera Mini.
*
* This has been copied from MDN Web Docs code samples. Code samples in the MDN
* Web Docs are licensed under CC0.
*
* @see https://web.archive.org/web/20210916035058/https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes
* @see https://developer.mozilla.org/en-US/docs/MDN/About#Code_samples_and_snippets
*/
/* eslint-disable strict, lines-around-directive, no-extend-native */
if
(
!
String
.
prototype
.
includes
)
{
String
.
prototype
.
includes
=
function
(
search
,
start
)
{
'
use strict
'
;
if
(
search
instanceof
RegExp
)
{
throw
TypeError
(
'
first argument must not be a RegExp
'
);
}
if
(
start
===
undefined
)
{
start
=
0
;
}
return
this
.
indexOf
(
search
,
start
)
!==
-
1
;
};
}
Loading