We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f89449a commit 4365c73Copy full SHA for 4365c73
jQuery-hook.js
@@ -312,16 +312,7 @@
312
* @returns {boolean}
313
*/
314
function isOkVarChar(c) {
315
- if (c >= 'a' && c <= 'z') {
316
- return true;
317
- }
318
- if (c >= 'A' && c <= 'Z') {
319
320
321
- if (c >= '0' && c <= '9') {
322
323
324
- return false;
+ return (/^[a-zA-Z0-9]$/).test(c);
325
}
326
327
// ----------------------------------------------- -----------------------------------------------------------------
0 commit comments