Mark constant RegExps, thanks @fredj
This commit is contained in:
@@ -32,7 +32,7 @@ ol.Color;
|
||||
|
||||
/**
|
||||
* This RegExp matches # followed by 3 or 6 hex digits.
|
||||
* @type {RegExp}
|
||||
* @const {RegExp}
|
||||
* @private
|
||||
*/
|
||||
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_
|
||||
* @type {RegExp}
|
||||
* @const {RegExp}
|
||||
* @private
|
||||
*/
|
||||
ol.color.rgbColorRe_ =
|
||||
@@ -49,7 +49,7 @@ ol.color.rgbColorRe_ =
|
||||
|
||||
/**
|
||||
* @see goog.color.alpha.rgbaColorRe_
|
||||
* @type {RegExp}
|
||||
* @const {RegExp}
|
||||
* @private
|
||||
*/
|
||||
ol.color.rgbaColorRe_ =
|
||||
|
||||
Reference in New Issue
Block a user