File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Events
2
2
3
+ <!-- type=module-->
4
+
3
5
Many objects in Node emit events: a ` net.Server ` emits an event each time
4
6
a peer connects to it, a ` fs.readStream ` emits an event when the file is
5
7
opened. All objects which emit events are instances of ` events.EventEmitter ` .
Original file line number Diff line number Diff line change @@ -487,7 +487,7 @@ function deepCopy_(src) {
487
487
488
488
489
489
// these parse out the contents of an H# tag
490
- var eventExpr = / ^ E v e n t : ? \s * [ ' " ] ? ( [ ^ " ' ] + ) .* $ / i;
490
+ var eventExpr = / ^ E v e n t (?: : | \s ) + [ ' " ] ? ( [ ^ " ' ] + ) .* $ / i;
491
491
var classExpr = / ^ C l a s s : \s * ( [ ^ ] + ) .* ?$ / i;
492
492
var propExpr = / ^ (?: p r o p e r t y : ? \s * ) ? [ ^ \. ] + \. ( [ ^ \. \( \) ] + ) \s * ?$ / i;
493
493
var braceExpr = / ^ (?: p r o p e r t y : ? \s * ) ? [ ^ \. \[ ] + ( \[ [ ^ \] ] + \] ) \s * ?$ / i;
You can’t perform that action at this time.
0 commit comments