# checkIfProfileUrlLocaleLooksValid

Tests if an argument matches the regex pattern typical for locales used in StarCraft II profile URLs.

This function does not determine whether the locale is supported by Battle.net API. For locale validation see validateProfileUrlLocale.

const { StarCraft2API } = require('starcraft2-api');

// true

// true even though cn-cn is not a valid locale with Battle.net API

// false

Last Updated: 5/25/2021, 5:12:40 PM