diff options
author | Sam Potts <me@sampotts.me> | 2016-05-01 13:39:53 +1000 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2016-05-01 13:39:53 +1000 |
commit | a316514ca165a06ae3c4d3cf8caaf1a908cbc2db (patch) | |
tree | a67400533b80a85246b3320ec00f350dd26ad0fe /gulpfile.js | |
parent | 3b69f4759075cdd26579293065a4f15c34021133 (diff) | |
download | plyr-a316514ca165a06ae3c4d3cf8caaf1a908cbc2db.tar.lz plyr-a316514ca165a06ae3c4d3cf8caaf1a908cbc2db.tar.xz plyr-a316514ca165a06ae3c4d3cf8caaf1a908cbc2db.zip |
Minor bug fixes
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 2 |
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"); |