Mark constant RegExps, thanks @fredj

This commit is contained in:
Tom Payne
2013-11-18 14:54:08 +01:00
parent 1fe9f25359
commit c29c292efd
+3 -3
View File
@@ -32,7 +32,7 @@ ol.Color;
/** /**
* This RegExp matches # followed by 3 or 6 hex digits. * This RegExp matches # followed by 3 or 6 hex digits.
* @type {RegExp} * @const {RegExp}
* @private * @private
*/ */
ol.color.hexColorRe_ = /^#(?:[0-9a-f]{3}){1,2}$/i; ol.color.hexColorRe_ = /^#(?:[0-9a-f]{3}){1,2}$/i;
@@ -40,7 +40,7 @@ ol.color.hexColorRe_ = /^#(?:[0-9a-f]{3}){1,2}$/i;
/** /**
* @see goog.color.rgbColorRe_ * @see goog.color.rgbColorRe_
* @type {RegExp} * @const {RegExp}
* @private * @private
*/ */
ol.color.rgbColorRe_ = ol.color.rgbColorRe_ =
@@ -49,7 +49,7 @@ ol.color.rgbColorRe_ =
/** /**
* @see goog.color.alpha.rgbaColorRe_ * @see goog.color.alpha.rgbaColorRe_
* @type {RegExp} * @const {RegExp}
* @private * @private
*/ */
ol.color.rgbaColorRe_ = ol.color.rgbaColorRe_ =