@leverege/build-tools 2.83.5 → 2.83.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Utils.mjs +2 -2
package/package.json
CHANGED
package/src/Utils.mjs
CHANGED
|
@@ -134,10 +134,10 @@ export const getDateTimestamp = () => {
|
|
|
134
134
|
return `${fullDTS.slice( 0, 8 )}-${fullDTS.slice( 8, 12 )}`
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
export const getCleanTag = (str) => {
|
|
137
|
+
export const getCleanTag = ( str ) => {
|
|
138
138
|
// Sanitize string to only include characters allowed in GCP Artifact Registry image tags
|
|
139
139
|
// Allowed characters: abcdefghijklmnopqrstuvwxyz0123456789_-./
|
|
140
|
-
return str.replace(/[^a-zA-Z0-9_
|
|
140
|
+
return str.replace( /[^a-zA-Z0-9_\-./]/g, '' )
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
export const getGcpAccount = async () => {
|