You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SpeciesHelper/modules/MOSOrderPositionFinder.js
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,10 @@ export class MOSOrderPositionFinder {
95
95
}
96
96
97
97
/**
98
-
* Useful for testing. Returns all section positions.
98
+
* Returns all section positions. Useful for testing.
99
+
*
100
+
* @param {string} wikicode
101
+
* @return {Object} An object with section names as keys and their positions in the wikitext as values. 0 is the very beginning of the string. -1 means the section is not present.
99
102
*/
100
103
getAllSectionPositions(wikicode){
101
104
this.wikitext=wikicode;
@@ -104,7 +107,10 @@ export class MOSOrderPositionFinder {
104
107
}
105
108
106
109
/**
107
-
* Useful for testing. Returns all section positions that exist (that aren't -1).
110
+
* Returns all section positions that exist (that aren't -1). Useful for testing.
111
+
*
112
+
* @param {string} wikicode
113
+
* @return {Object} An object with section names as keys and their positions in the wikitext as values. 0 is the very beginning of the string.
0 commit comments