{"record":{"id":"792d6705cb94eb9a","repo":"swc-project/swc","slug":"expected-no-characters-after-end-in-unicode-range","errorCode":null,"errorMessage":"Expected no characters after end in unicode range","messagePattern":"Expected no characters after end in unicode range","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/swc_css_parser/src/parser/values_and_units/mod.rs","lineNumber":3040,"sourceCode":"                _ => {\n                    break;\n                }\n            }\n        }\n\n        let len = end.len();\n\n        if len == 0 || len > 6 {\n            return Err(Error::new(\n                span,\n                ErrorKind::Expected(\n                    \"valid length (minimum 1 or maximum 6 hex digits) in the end of unicode range\",\n                ),\n            ));\n        }\n\n        if chars.next().is_some() {\n            return Err(Error::new(\n                span,\n                ErrorKind::Expected(\"no characters after end in unicode range\"),\n            ));\n        }\n\n        return Ok(UnicodeRange {\n            span: span!(self, span.lo),\n            start: self.input.atom(start),\n            end: Some(self.input.atom(end)),\n            raw: Some(self.input.atom(unicode_range)),\n        });\n    }\n}\n\nimpl<I> Parse<CalcSum> for Parser<I>\nwhere\n    I: ParserInput,\n{","sourceCodeStart":3022,"sourceCodeEnd":3058,"githubUrl":"https://github.com/swc-project/swc/blob/5176682b65416c6b5de6b47379ae1588ea3ecb3f/crates/swc_css_parser/src/parser/values_and_units/mod.rs#L3022-L3058","documentation":"Fired during <urange> validation: after consuming the end value's hex digits, additional characters remain in the text. The spec requires the production to end after the end value; trailing content is a parse error.","triggerScenarios":"Thrown at crates/swc_css_parser/src/parser/values_and_units/mod.rs:3040 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove characters after the end value of the range","Split multiple ranges into comma-separated entries"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5176682b65416c6b5de6b47379ae1588ea3ecb3f","analyzedAt":"2026-08-17T16:16:52.067Z","contentChangedAt":"2026-08-17T16:16:52.067Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}