ripple 0.2.180 → 0.2.183

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,12 +75,14 @@ function extractCssSourceRegions(ast, source, source_line_offsets) {
75
75
  // Check if this is a style element with CSS content
76
76
  if (node.id?.name === 'style' && node.css) {
77
77
  const openLoc = node.openingElement.loc;
78
- const cssStart =
79
- loc_to_offset(openLoc.end.line, openLoc.end.column, source_line_offsets) + 1;
78
+ const cssStart = loc_to_offset(openLoc.end.line, openLoc.end.column, source_line_offsets);
80
79
 
81
80
  const closeLoc = node.closingElement.loc;
82
- const cssEnd =
83
- loc_to_offset(closeLoc.start.line, closeLoc.start.column, source_line_offsets) - 1;
81
+ const cssEnd = loc_to_offset(
82
+ closeLoc.start.line,
83
+ closeLoc.start.column,
84
+ source_line_offsets,
85
+ );
84
86
 
85
87
  regions.push({
86
88
  start: cssStart,