File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ Tracker.prototype.reset = function () {
4545 this . stack [ 0 ] . count = 0 ;
4646}
4747
48- /* eslint-disable complexity */
49-
5048/**
5149 * Match a segment to the message table and update the current
5250 * position of the tracker.
@@ -74,7 +72,7 @@ Tracker.prototype.accept = function (segment) {
7472 // Check if the current position is not a group.
7573 if ( content . constructor === String ) {
7674 if ( pointer . repetition ( ) === pointer . count && content === segment ) {
77- error = new Error ( `Segment ${ segment } was repeated too much` ) ;
75+ error . message = `Segment ${ segment } was repeated too much` ;
7876 }
7977 }
8078
@@ -85,6 +83,8 @@ Tracker.prototype.accept = function (segment) {
8583 return result ;
8684}
8785
86+ /* eslint-disable complexity */
87+
8888Tracker . prototype . process = function ( segment , metadata ) {
8989 var current = this . stack [ this . stack . length - 1 ] ;
9090 var optionals = [ ] ;
You can’t perform that action at this time.
0 commit comments