This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ Doc.prototype = {
52
52
Doc . METADATA_IGNORE . forEach ( function ( ignore ) { keywords [ ignore ] = true ; } ) ;
53
53
54
54
function extractWords ( text ) {
55
- var tokens = text . toLowerCase ( ) . split ( / [ , \. \` \' \" \# \s ] + / mg) ;
55
+ var tokens = text . toLowerCase ( ) . split ( / [ \. \s , ` ' " # ] + / mg) ;
56
56
tokens . forEach ( function ( key ) {
57
- var match = key . match ( / ^ ( ( [ \$ \ _a - z ] | n g \: ) [ \w \_ \- ] + ) / ) ;
57
+ var match = key . match ( / ^ ( ( n g : | [ \$ _ a - z ] ) [ \w \- _ ] + ) / ) ;
58
58
if ( match ) {
59
59
key = match [ 1 ] ;
60
60
if ( ! keywords [ key ] ) {
@@ -215,7 +215,7 @@ Doc.prototype = {
215
215
var text = trim ( atText . join ( '\n' ) ) , match ;
216
216
if ( atName == 'param' ) {
217
217
match = text . match ( / ^ \{ ( [ ^ } = ] + ) ( = ) ? \} \s + ( ( [ ^ \s = ] + ) | \[ ( \S + ) = ( [ ^ \] ] + ) \] ) \s + ( .* ) / ) ;
218
- // 1 12 2 34 4 5 5 6 6 3 7 7
218
+ // 1 12 2 34 4 5 5 6 6 3 7 7
219
219
if ( ! match ) {
220
220
throw new Error ( "Not a valid 'param' format: " + text ) ;
221
221
}
@@ -729,7 +729,7 @@ function scenarios(docs){
729
729
function metadata ( docs ) {
730
730
var pages = [ ] ;
731
731
docs . forEach ( function ( doc ) {
732
- var path = ( doc . name || '' ) . split ( / ( \. | \: ) / ) ;
732
+ var path = ( doc . name || '' ) . split ( / ( \. | \: \s * ) / ) ;
733
733
for ( var i = 1 ; i < path . length ; i ++ ) {
734
734
path . splice ( i , 1 ) ;
735
735
}
You can’t perform that action at this time.
0 commit comments