Skip to content

Commit

Permalink
chore: naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
shontzu-deriv committed May 16, 2024
1 parent 20a47b7 commit 3ac474e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/utils/__test__/mobileOSDetectAsync.utils.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from "vitest";
import { mobileOSDetectAsync } from "../mobileOSDetectAsync.utils";
import { mobileOSDetectAsync } from "../mobile-os-detect.utils";

describe("mobileOSDetectAsync", () => {
test('should return "Windows Phone" for Windows Phone user agent', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as PromiseUtils from "./promise.utils";
import * as URLUtils from "./url.utils";
import * as WebSocketUtils from "./websocket.utils";
import * as BrandUtils from "./brand.utils";
import * as MobileOSDetectAsync from "./mobileOSDetectAsync.utils";
import * as MobileOSDetectAsync from "./mobile-os-detect.utils";

export {
ImageUtils,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ type HighEntropyValues = {
* @param {string} inputString - The string to check for Huawei device codes.
* @returns {boolean} Returns true if the input string contains a valid Huawei device code, false otherwise.
*/
function validateHuaweiCodes(inputString: string) {
const validateHuaweiCodes = (inputString: string) => {
return huaweiDevicesRegex.test(inputString);
}
};

/**
* It uses the User-Agent string and the User-Agent Client Hints API to detects the mobile operating system asynchronously.
Expand Down

0 comments on commit 3ac474e

Please sign in to comment.