forked from mirror/_s
Merge pull request #704 from oskarcieslik/patch-1
Fix JSLint error: `regular expressions should be preceded by a left parenthesis assignment colon or comma`.
This commit is contained in:
commit
f0de1c9e8b
|
@ -8,14 +8,14 @@
|
|||
var id = location.hash.substring( 1 ),
|
||||
element;
|
||||
|
||||
if ( ! /^[A-z0-9_-]+$/.test( id ) ) {
|
||||
if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
element = document.getElementById( id );
|
||||
|
||||
if ( element ) {
|
||||
if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) {
|
||||
if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
|
||||
element.tabIndex = -1;
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue