pinokiod 2.15.43 → 2.15.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/kernel/shells.js +7 -0
  2. package/package.json +1 -1
package/kernel/shells.js CHANGED
@@ -155,6 +155,7 @@ class Shells {
155
155
 
156
156
  // 2. first find the `break: false` handlers and replace the patterns with blank => so they won't be matched in the next step
157
157
  //let line = response.replaceAll(/[\r\n]/g, "")
158
+ console.log("checking breakpoints", breakPoints)
158
159
  for(let handler of breakPoints) {
159
160
  if (handler.event) {
160
161
  let matches = /^\/(.+)\/([dgimsuy]*)$/gs.exec(handler.event)
@@ -170,6 +171,8 @@ class Shells {
170
171
  }
171
172
  }
172
173
 
174
+ console.log("Line before", line)
175
+
173
176
  // 3. Now with all the `break: false` (ignored patterns) gone, look for the `break: true` patterns
174
177
  for(let handler of breakPoints) {
175
178
  if (handler.event) {
@@ -179,12 +182,16 @@ class Shells {
179
182
  }
180
183
  let re = new RegExp(matches[1], matches[2])
181
184
 
185
+ console.log("re", re)
186
+
182
187
  // only the "break: true" ones
183
188
  if (handler.break) {
189
+ console.log("checking break handler", handler)
184
190
 
185
191
  let match;
186
192
  // Keep executing the regex on the text until no more matches are found
187
193
  while ((match = re.exec(line)) !== null) {
194
+ console.log("match found", match)
188
195
  errors.add(match[0])
189
196
  // errors.add(match.slice(1));
190
197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "2.15.43",
3
+ "version": "2.15.44",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {