Skip to content

Some functions that I found useful while playing with jQuery/javascript

Notifications You must be signed in to change notification settings

lingtalfi/JGoodies

Repository files navigation

jGoodies

2016-01-09 -> 2021-03-05

Some functions that I found useful while playing with jQuery/javascript.

JGoodies is part of the universe framework.

Install

Using the planet installer via light-cli

lt install Ling.JGoodies

Using the uni tool

uni import Ling/JGoodies

Dependencies: jquery

Methods

regexQuote

Quote a regex properly, you should use it any time you use a regex. If you don't, you might encounter a "Nothing to repeat" error.

var s = 'Buckys C++ Programming Tutorials - 23 - Making a Stock Market Simulator!.mp4';
var substrRegex = new RegExp(jGoodies.regexQuote(s), 'i');

selectorEscape

Properly escapes a jquery selector.

var x = "dyNami" + 'c';
var jItem = $('[data-id="'+ jGoodies.selectorEscape(x) +'"]');

History Log

  • 1.1.3 -- 2021-03-05

    • update README.md, add install alternative
  • 1.1.2 -- 2020-12-08

    • Fix lpi-deps not using natsort.
  • 1.1.1 -- 2020-12-04

    • Add lpi-deps.byml file
  • 1.1.0 -- 2016-02-02

    • add selectorEscape method
  • 1.0.0 -- 2016-01-09

    • initial commit

About

Some functions that I found useful while playing with jQuery/javascript

Resources

Stars

Watchers

Forks

Packages

No packages published