Skip to content

Commit

Permalink
fix action checks
Browse files Browse the repository at this point in the history
  • Loading branch information
metal-young committed Jul 24, 2023
1 parent 2ea0c8a commit 1323694
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: "14.x"
node-version: "16.x"
- name: Build
id: build
run: |
Expand Down
6 changes: 3 additions & 3 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class FlomoAPI {
};
}

extractImages(text) {
extractImages(text: string) {
const regex = /!\[\[(.*?)\]\]/g;
const matches = text.matchAll(regex);
const imageList = [];
Expand All @@ -103,11 +103,11 @@ class FlomoAPI {
return imageList;
}

removeImageNotations(text) {
removeImageNotations(text: string) {
return text.replace(/!\[\[(.*?)\]\]/g, '');
}

handleResponse(successMsg, xhr) {
handleResponse(successMsg: string, xhr: XMLHttpRequest) {
if (xhr.readyState == 4) {
if (xhr.status == 200) {
try {
Expand Down

0 comments on commit 1323694

Please sign in to comment.