This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Determine if a string | |
* is a valid array | |
* | |
* @param string string | |
* @return boolean | |
*/ | |
function isValidArray( string ) | |
{ | |
var pattern = /^\[('|")?[A-Za-z0-9]+('|")?(((,(\s+)?('|")?[A-Za-z0-9]+('|")?)+)?)\]$/ig; |
OlderNewer