short-url/public/vendor/jquery-ui/ui/escape-selector.js
Supan Adit Pratama b2e434483d first commit
2020-07-01 15:57:45 +07:00

22 lines
475 B
JavaScript
Executable File
Vendored

( function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [ "jquery", "./version" ], factory );
} else {
// Browser globals
factory( jQuery );
}
} ( function( $ ) {
// Internal use only
return $.ui.escapeSelector = ( function() {
var selectorEscape = /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;
return function( selector ) {
return selector.replace( selectorEscape, "\\$1" );
};
} )();
} ) );