aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 238ab798..59c95571 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -214,7 +214,7 @@ options = {
// If aws is setup
if("cdn" in aws) {
- var regex = "(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)",
+ var regex = "(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)(?:-[\\da-z\\-]+(?:\.[\\da-z\\-]+)*)?(?:\\+[\\da-z\\-]+(?:\.[\\da-z\\-]+)*)?",
cdnpath = new RegExp(aws.cdn.bucket + "\/" + regex, "gi"),
semver = new RegExp("v" + regex, "gi"),
localpath = new RegExp("(\.\.\/)?dist", "gi");