postcss 8.5.31 → 8.5.32
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.
- package/lib/input.js +1 -1
- package/lib/lazy-result.js +1 -1
- package/lib/no-work-result.js +1 -1
- package/lib/node.js +2 -2
- package/lib/processor.js +1 -1
- package/lib/warning.js +1 -0
- package/package.json +1 -1
package/lib/input.js
CHANGED
package/lib/lazy-result.js
CHANGED
package/lib/no-work-result.js
CHANGED
package/lib/node.js
CHANGED
|
@@ -240,7 +240,7 @@ class Node {
|
|
|
240
240
|
} else if (opts.word) {
|
|
241
241
|
let stringRepresentation = inputString.slice(
|
|
242
242
|
sourceOffset(inputString, this.source.start),
|
|
243
|
-
|
|
243
|
+
this.rangeBy().end.offset
|
|
244
244
|
)
|
|
245
245
|
let index = stringRepresentation.indexOf(opts.word)
|
|
246
246
|
if (index !== -1) pos = this.positionInside(index)
|
|
@@ -308,7 +308,7 @@ class Node {
|
|
|
308
308
|
if (opts.word) {
|
|
309
309
|
let stringRepresentation = inputString.slice(
|
|
310
310
|
sourceOffset(inputString, this.source.start),
|
|
311
|
-
|
|
311
|
+
end.offset
|
|
312
312
|
)
|
|
313
313
|
let index = stringRepresentation.indexOf(opts.word)
|
|
314
314
|
if (index !== -1) {
|
package/lib/processor.js
CHANGED
package/lib/warning.js
CHANGED