Skip to content

Commit 17c99c2

Browse files
committed
Cleanup
1 parent 7db5bb0 commit 17c99c2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/tailwindcss/src/utils/to-key-path.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { segment } from './segment'
33
/**
44
* Parse a path string into an array of path segments
55
*
6-
* Square bracket notation `a[b]` may be used to "escape" dots that would otherwise be interpreted as path separators.
6+
* Square bracket notation `a[b]` may be used to "escape" dots that would
7+
* otherwise be interpreted as path separators.
78
*
89
* Example:
910
* a -> ['a']
@@ -15,8 +16,6 @@ import { segment } from './segment'
1516
* @param {string} path
1617
**/
1718
export function toKeyPath(path: string) {
18-
// Handle `[]` blocks as segments in addition to `.` separators.
19-
// This is used to extract floating point keys like `spacing[2.5]`.
2019
let keypath: string[] = []
2120

2221
for (let part of segment(path, '.')) {

0 commit comments

Comments
 (0)