Skip to content

Commit 7239e94

Browse files
committed
2.0.1
1 parent 3367aac commit 7239e94

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# Changes to CSS Tokenizer
22

3+
### 2.0.1 (May 11, 2021)
4+
5+
- Fixes an issue where string tokens incorrectly put the lead quotation in the main value.
6+
37
### 2.0.0 (May 11, 2021)
48

59
- Supports function token (previously an identifier token followed by a parenthesis delimiter token).
6-
- Changed from default export to named export (`tokenizer`).
10+
- Changes from default export to named export (`tokenizer`).
711

812
### 1.0.0 (September 26, 2020)
913

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://json.schemastore.org/package",
33
"name": "@csstools/tokenizer",
44
"description": "Tokenize CSS according to the CSS Syntax",
5-
"version": "2.0.0",
5+
"version": "2.0.1",
66
"type": "module",
77
"main": "dist/index.cjs",
88
"module": "dist/index.mjs",

src/lib/consume.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ const consumeSpaceToken = (state: CSSState) => {
261261
/** Consumes and returns a string token. [↗](https://drafts.csswg.org/css-syntax/#string-token-diagram) */
262262
const consumeStringToken = (state: CSSState) => {
263263
const { codeAt0 } = state
264-
const value: CSSValue = [ state.tick, tt.STRING, '', consumeAnyValue(state), '' ]
264+
const value: CSSValue = [ state.tick, tt.STRING, consumeAnyValue(state), '', '' ]
265265
while (state.tick < state.size) {
266266
switch (true) {
267267
case is.validEscape(state.codeAt0, state.codeAt1):

0 commit comments

Comments
 (0)