Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace broken trigger duration string before prasing #10852

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/components/Imip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,12 @@
attachedVCalendar() {
const parserManager = getParserManager()
const parser = parserManager.getParserForFileType('text/calendar')
parser.parse(this.scheduling.contents)

// Temporarily fix the Microsoft invitation with a P trigger until upstream can be fixed
let contents = this.scheduling.contents

Check failure on line 251 in src/components/Imip.vue

View workflow job for this annotation

GitHub Actions / NPM lint

'contents' is never reassigned. Use 'const' instead
.replace(/TRIGGER:P[\r\n]/, "TRIGGER:PT0S")

Check failure on line 252 in src/components/Imip.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Expected indentation of 4 tabs but found 6

Check failure on line 252 in src/components/Imip.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Strings must use singlequote
.replace(/TRIGGER;RELATED=START:P[\r\n]/, "TRIGGER;RELATED=START:PT0S")

Check failure on line 253 in src/components/Imip.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Expected indentation of 4 tabs but found 6

Check failure on line 253 in src/components/Imip.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Strings must use singlequote
.replace(/TRIGGER;RELATED=END:P[\r\n]/, "TRIGGER;RELATED=END:PT0S");

Check failure on line 254 in src/components/Imip.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Expected indentation of 4 tabs but found 6

Check failure on line 254 in src/components/Imip.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Strings must use singlequote

Check failure on line 254 in src/components/Imip.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Extra semicolon
parser.parse(contents)
const vCalendar = parser.getItemIterator().next().value
return vCalendar ?? undefined
},
Expand Down
Loading