File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ Here are a few common issues.
1919
2020- Update to [ TypeScript 3.7] ( https://devblogs.microsoft.com/typescript/announcing-typescript-3-7/ ) .
2121- There was an error when calling commands ` testString ` and ` showVersion ` .
22+ - Code provider:
23+ - ` px ` HTML expression detection.
2224
2325## [ 0.1.0] - 2019-11-05
2426
Original file line number Diff line number Diff line change @@ -84,6 +84,10 @@ export class CodeDetect implements IDetectProvider {
8484 return [ ConfidenceLevel . Technical , 'img' ] ;
8585 }
8686
87+ if ( text . search ( / \d + p x / ) >= 0 ) {
88+ return [ ConfidenceLevel . Technical , 'px' ] ;
89+ }
90+
8791 if ( / ? ( > | < | \+ | \* | = | \/ ) ? / . test ( text ) ) {
8892 // Text with mathematical symbols.
8993 return [ ConfidenceLevel . Technical , 'formula' ] ;
You can’t perform that action at this time.
0 commit comments