Skip to content

Commit

Permalink
fix(typo): correct typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotzbua authored and ondratu committed Jan 13, 2025
1 parent 709dd11 commit 6bd5cd4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tools/loaders/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ function getWordsFromHTML(source) {

let regex = /data-label=\"(.*?)\"/g
let result = source.match(regex);
let extended = false; // also parse template macroses
let extended = false; // also parse template macros

if (result) {
for (let match of result) { // data-label="prop.time-est"
let word = match.replace("data-label=", "").trim(); // remove data-label=
Expand Down
4 changes: 2 additions & 2 deletions tools/server/miscellaneous.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { ApiError } = require("./mock/errors");
const router = new express.Router();

/**
* version informations
* version information
*/
router.get("/version", async (req, res, next) => {
res.json(req.app.get("printer").version(req.query["system"]));
Expand Down Expand Up @@ -60,7 +60,7 @@ router.post("/connection", async (req, res, next) => {
});

/**
* Retrive a mock of octoprinter printer profile
* Retrieve a mock of octoprinter printer profile
*/
router.get("/printerprofiles", async (req, res, next) => {
res.json(req.app.get("printer").printerProfiles(req));
Expand Down
2 changes: 1 addition & 1 deletion tools/server/printer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const express = require("express");
const router = new express.Router();

/**
* Retrive the current printer state
* Retrieve the current printer state
*/
router.get("/", async (req, res, next) => {
let include = {
Expand Down
2 changes: 1 addition & 1 deletion tools/server/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ router.post("/sn", async (req, res, next) => {
return;
}

res.status(400).json({ message: "Serial number is not corret" });
res.status(400).json({ message: "Serial number is not correct" });
});

module.exports = router;

0 comments on commit 6bd5cd4

Please sign in to comment.