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 e527799 commit 15e78f5Copy full SHA for 15e78f5
src/hooks/useExport.ts
@@ -1,6 +1,5 @@
1
import { computed, ref } from 'vue'
2
import { storeToRefs } from 'pinia'
3
-import { trim } from 'lodash'
4
import { saveAs } from 'file-saver'
5
import pptxgen from 'pptxgenjs'
6
import tinycolor from 'tinycolor2'
@@ -173,7 +172,7 @@ export default () => {
173
172
for (const styleItem of styleArr) {
174
const match = styleItem.match(/([^:]+):\s*(.+)/)
175
if (match) {
176
- const [key, value] = [trim(match[1]), trim(match[2])]
+ const [key, value] = [match[1].trim(), match[2].trim()]
177
if (key && value) styleObj[key] = value
178
}
179
0 commit comments