We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46584f5 commit f44f6c6Copy full SHA for f44f6c6
src/index.ts
@@ -15,7 +15,7 @@ export const parse = (source: string): SFCDescriptor =>
15
* Note that whitespace is preserved for debugging purposes
16
*/
17
export const removeStyleBlock = (source: string, styleDescriptor: SFCBlock): string => {
18
- const start = source.lastIndexOf('<', styleDescriptor.start + 1);
+ const start = source.lastIndexOf('<', styleDescriptor.start - 1);
19
const end = source.indexOf('>', styleDescriptor.end);
20
const lines = source.slice(start, end).split('\n').length;
21
return source.substring(0, start)
0 commit comments