Skip to content

Instantly share code, notes, and snippets.

View gspolima's full-sized avatar
💭
Looking forward

Gustavo de Lima gspolima

💭
Looking forward
  • Fortaleza, Ceará, Brazil.
View GitHub Profile
@fakiolinho
fakiolinho / jQuery: Validate Strings with Regex
Last active December 13, 2021 18:44
jQuery: Validate Strings with Regex
/* jQuery Validate Strings with Regex */
function validateStrings(string) {
var pattern = /^[0-9a-zA-Z@_-]+$/;
return $.trim(string).match(pattern) ? true : false;
}
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,