Skip to content

Commit

Permalink
Remove strange strings
Browse files Browse the repository at this point in the history
  • Loading branch information
robertying committed Nov 25, 2019
1 parent 66f830d commit d7fc50e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/helpers/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const updateAssignments = async () => {
description: assignment.description
? assignment.description.startsWith('\xC2\x9E\xC3\xA9\x65')
? assignment.description.substr(5)
: assignment.description.startsWith('\x9E\xE9\x65')
? assignment.description.substr(3)
: assignment.description
: '',
}));
Expand Down
4 changes: 4 additions & 0 deletions src/redux/actions/assignments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export function getAssignmentsForCourse(courseId: string): IThunkResult {
description: result.description
? result.description.startsWith('\xC2\x9E\xC3\xA9\x65')
? result.description.substr(5)
: result.description.startsWith('\x9E\xE9\x65')
? result.description.substr(3)
: result.description
: '',
}));
Expand Down Expand Up @@ -82,6 +84,8 @@ export function getAllAssignmentsForCourses(courseIds: string[]): IThunkResult {
description: assignment.description
? assignment.description.startsWith('\xC2\x9E\xC3\xA9\x65')
? assignment.description.substr(5)
: assignment.description.startsWith('\x9E\xE9\x65')
? assignment.description.substr(3)
: assignment.description
: '',
}));
Expand Down
4 changes: 4 additions & 0 deletions src/redux/actions/notices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export function getNoticesForCourse(courseId: string): IThunkResult {
content: result.content
? result.content.startsWith('\xC2\x9E\xC3\xA9\x65')
? result.content.substr(5)
: result.content.startsWith('\x9E\xE9\x65')
? result.content.substr(3)
: result.content
: '',
}));
Expand Down Expand Up @@ -74,6 +76,8 @@ export function getAllNoticesForCourses(courseIds: string[]): IThunkResult {
content: notice.content
? notice.content.startsWith('\xC2\x9E\xC3\xA9\x65')
? notice.content.substr(5)
: notice.content.startsWith('\x9E\xE9\x65')
? notice.content.substr(3)
: notice.content
: '',
}));
Expand Down

0 comments on commit d7fc50e

Please sign in to comment.