Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vkryvytskyy authored Apr 17, 2024
1 parent 7c33ca2 commit e55dae5
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,34 +47,34 @@ const complexStylesString = `
width: auto;
`;

const result = convertToObject(complexStylesString);
const result = convertToObject(complexStylesString);

console.log(result === {
'background-color': '#fff',
'-webkit-border-radius': '5px',
'border-radius': '5px',
border: '1px solid #e8e8e8',
'-webkit-box-sizing': 'border-box',
'box-sizing': 'border-box',
clear: 'both',
cursor: 'pointer',
float: 'left',
'font-family': 'inherit',
'font-size': '14px',
'font-weight': '400',
height: '42px',
'line-height': '40px',
outline: '0',
'padding-left': '18px',
'padding-right': '30px',
position: 'relative',
'text-align': 'left !important',
'-webkit-transition': 'all .2s ease-in-out',
transition: 'all .2s ease-in-out',
'-moz-user-select': 'none',
'-ms-user-select': 'none',
'user-select': 'none',
'white-space': 'nowrap',
width: 'auto',
}) // outputs true;
console.log(result === {
'background-color': '#fff',
'-webkit-border-radius': '5px',
'border-radius': '5px',
border: '1px solid #e8e8e8',
'-webkit-box-sizing': 'border-box',
'box-sizing': 'border-box',
clear: 'both',
cursor: 'pointer',
float: 'left',
'font-family': 'inherit',
'font-size': '14px',
'font-weight': '400',
height: '42px',
'line-height': '40px',
outline: '0',
'padding-left': '18px',
'padding-right': '30px',
position: 'relative',
'text-align': 'left !important',
'-webkit-transition': 'all .2s ease-in-out',
transition: 'all .2s ease-in-out',
'-moz-user-select': 'none',
'-ms-user-select': 'none',
'user-select': 'none',
'white-space': 'nowrap',
width: 'auto',
}) // outputs true;
```

0 comments on commit e55dae5

Please sign in to comment.