File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -17,17 +17,20 @@ export class BasicExtrationRule extends ExtractionRule {
1717 // β camel case
1818 if ( s . match ( / [ a - z ] [ A - Z 0 - 9 ] / ) )
1919 return ExtractionScore . ShouldExclude
20- // β all small cases
20+ // β all lower cases
2121 if ( s . match ( / ^ [ a - z 0 - 9 - ] + $ / ) )
2222 return ExtractionScore . ShouldExclude
23+ // β all upper cases
24+ if ( s . match ( / ^ [ A - Z 0 - 9 - ] + $ / ) )
25+ return ExtractionScore . ShouldExclude
2326 // β all digits
2427 if ( s . match ( / ^ [ \d . ] + $ / ) )
2528 return ExtractionScore . ShouldExclude
2629 // β
all words
2730 if ( s . match ( / ^ [ A - Z a - z 0 - 9 ] + $ / ) )
2831 return ExtractionScore . ShouldInclude
2932 // β
one char
30- if ( s . length === 1 && ! '/.-\\:+$^#,' . includes ( s ) )
33+ if ( s . length === 1 && ! '/.-\\:+$^#_"\' ,' . includes ( s ) )
3134 return ExtractionScore . ShouldInclude
3235 }
3336}
You canβt perform that action at this time.
0 commit comments