wire/modules/Fieldtype/FieldtypeComments/comments.js
/**
 * Get a cookie value
 *
 * @param string name
 * @return string
 *
 */
Get a cookie value
@param string name
@return string
Get a cookie value @param string name @return string
function CommentFormGetCookie(name) {
	var regex = new RegExp('[; ]' + name + '=([^\\s;]*)');
	var match = (' ' + document.cookie).match(regex);
	if(name && match) return unescape(match[1]);
	return '';
}
function CommentFormGetCookie ( name ) { var regex = new RegExp ( '[; ]' + name + '=([^\\s;]*)' ) ; var match = ( ' ' + document . cookie ) . match ( regex ) ; if ( name && match ) return unescape ( match [ 1 ] ) ; return '' ; }
Get a cookie value
 @param string name
 @return string
Get a cookie value @param string name @return string