File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -170,8 +170,9 @@ export class String {
170
170
return arg ;
171
171
}
172
172
173
- private static decimalToHexString ( number : number , upperCase : boolean = false ) {
174
- const hexNumber = number . toString ( 16 ) ;
173
+ private static decimalToHexString ( value : string , upperCase : boolean = false ) {
174
+ const parsed = parseFloat ( value as string ) ;
175
+ const hexNumber = parsed . toString ( 16 ) ;
175
176
return upperCase ? hexNumber . toLocaleUpperCase ( ) : hexNumber ;
176
177
}
177
178
Original file line number Diff line number Diff line change 4
4
"description" : " Simple lightweight string operation library for Typescript, works with Angular" ,
5
5
"main" : " dist/index.min.js" ,
6
6
"files" : [
7
- " dist/*"
7
+ " dist/**/*.js" ,
8
+ " **/*.d.ts"
8
9
],
9
10
"scripts" : {
10
11
"test" : " mocha -r ts-node/register tests/**/tests.ts" ,
You can’t perform that action at this time.
0 commit comments