We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1ded07 commit 197035aCopy full SHA for 197035a
packages/core-js/modules/es.regexp.constructor.js
@@ -56,7 +56,7 @@ var handleDotAll = function (string) {
56
var result = '';
57
var brackets = false;
58
var chr;
59
- for (; index <= length; index++) {
+ for (; index < length; index++) {
60
chr = charAt(string, index);
61
if (chr === '\\') {
62
result += chr + charAt(string, ++index);
@@ -85,7 +85,7 @@ var handleNCG = function (string) {
85
var groupid = 0;
86
var groupname = '';
87
88
89
90
91
chr += charAt(string, ++index);
0 commit comments