Skip to content

Commit c8b5527

Browse files
committed
Add warnings for now
1 parent a4b7eac commit c8b5527

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

addon/mode/simple.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@
9999
if (state.pending.length == 0) state.pending = null;
100100
stream.pos += pend.text.length;
101101
return pend.token;
102+
} else if (state.pending && state.pending.length === 0) {
103+
console.warn('Regex capturing group is empty. Please check your regex')
102104
}
103105

104106
if (state.local) {

0 commit comments

Comments
 (0)