@@ -79,7 +79,7 @@ export const _headingToMethodBlock = (
79
79
) : MethodDocumentationBlock | null => {
80
80
if ( ! heading ) return null ;
81
81
82
- const methodStringRegexp = / ` (?: .+ \. ) ? ( .+ ?) ( \( .* ?\) ) ` ( _ (?: [ ^ _ ] + ?) _ ) * / g;
82
+ const methodStringRegexp = / ` (?: .+ \. ) ? ( .+ ?) ( \( .* ?\) ) ` ( (?: _ [ ^ _ ] + ?_ ) * ) / g;
83
83
const methodStringMatch = methodStringRegexp . exec ( heading . heading ) ! ;
84
84
methodStringRegexp . lastIndex = - 1 ;
85
85
expect ( heading . heading ) . to . match (
@@ -135,7 +135,7 @@ export const _headingToMethodBlock = (
135
135
} ;
136
136
137
137
export const _headingToPropertyBlock = ( heading : HeadingContent ) : PropertyDocumentationBlock => {
138
- const propertyStringRegexp = / ` (?: .+ \. ) ? ( .+ ?) ` ( _ (?: [ ^ _ ] + ?) _ ) * / g;
138
+ const propertyStringRegexp = / ` (?: .+ \. ) ? ( .+ ?) ` ( (?: _ [ ^ _ ] + ?_ ) * ) / g;
139
139
const propertyStringMatch = propertyStringRegexp . exec ( heading . heading ) ! ;
140
140
propertyStringRegexp . lastIndex = - 1 ;
141
141
expect ( heading . heading ) . to . match (
@@ -165,7 +165,7 @@ export const _headingToPropertyBlock = (heading: HeadingContent): PropertyDocume
165
165
} ;
166
166
167
167
export const _headingToEventBlock = ( heading : HeadingContent ) : EventDocumentationBlock => {
168
- const eventNameRegexp = / ^ E v e n t : ' ( .+ ) ' ( _ (?: [ ^ _ ] + ?) _ ) * / g;
168
+ const eventNameRegexp = / ^ E v e n t : ' ( .+ ) ' ( (?: _ [ ^ _ ] + ?_ ) * ) / g;
169
169
const eventNameMatch = eventNameRegexp . exec ( heading . heading ) ! ;
170
170
eventNameRegexp . lastIndex = - 1 ;
171
171
expect ( heading . heading ) . to . match ( eventNameRegexp , 'each event should have a quoted event name' ) ;
0 commit comments