webpipe-js 2.0.13 → 2.0.14
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.
- package/dist/index.cjs +5 -4
- package/dist/index.mjs +5 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -509,17 +509,18 @@ var Parser = class {
|
|
|
509
509
|
*/
|
|
510
510
|
parseStepCondition() {
|
|
511
511
|
this.skipInlineSpaces();
|
|
512
|
-
|
|
512
|
+
const ch = this.cur();
|
|
513
|
+
if (ch !== "@" && ch !== "(") {
|
|
513
514
|
return void 0;
|
|
514
515
|
}
|
|
515
516
|
let expr = this.parseTagExpr();
|
|
516
517
|
while (true) {
|
|
517
518
|
this.skipInlineSpaces();
|
|
518
|
-
const
|
|
519
|
-
if (
|
|
519
|
+
const ch2 = this.cur();
|
|
520
|
+
if (ch2 === "\n" || ch2 === "\r" || ch2 === "#" || this.text.startsWith("//", this.pos)) {
|
|
520
521
|
break;
|
|
521
522
|
}
|
|
522
|
-
if (
|
|
523
|
+
if (ch2 !== "@") {
|
|
523
524
|
break;
|
|
524
525
|
}
|
|
525
526
|
const nextTag = this.parseTag();
|
package/dist/index.mjs
CHANGED
|
@@ -459,17 +459,18 @@ var Parser = class {
|
|
|
459
459
|
*/
|
|
460
460
|
parseStepCondition() {
|
|
461
461
|
this.skipInlineSpaces();
|
|
462
|
-
|
|
462
|
+
const ch = this.cur();
|
|
463
|
+
if (ch !== "@" && ch !== "(") {
|
|
463
464
|
return void 0;
|
|
464
465
|
}
|
|
465
466
|
let expr = this.parseTagExpr();
|
|
466
467
|
while (true) {
|
|
467
468
|
this.skipInlineSpaces();
|
|
468
|
-
const
|
|
469
|
-
if (
|
|
469
|
+
const ch2 = this.cur();
|
|
470
|
+
if (ch2 === "\n" || ch2 === "\r" || ch2 === "#" || this.text.startsWith("//", this.pos)) {
|
|
470
471
|
break;
|
|
471
472
|
}
|
|
472
|
-
if (
|
|
473
|
+
if (ch2 !== "@") {
|
|
473
474
|
break;
|
|
474
475
|
}
|
|
475
476
|
const nextTag = this.parseTag();
|