@@ -13,16 +13,16 @@ __nccwpck_require__.r(__webpack_exports__);
1313
1414const core = __nccwpck_require__ ( 186 )
1515
16- const { execSync, grpSt, grpEnd } = __nccwpck_require__ ( 390 )
16+ const { execSync, grpSt, grpEnd, getInput } = __nccwpck_require__ ( 390 )
1717
1818// group start time
1919let msSt
2020
21- // clean inputs
22- let apt = core . getInput ( 'apt-get' ) . replace ( / [ ^ a - z _ \d . - ] + / gi, '' ) . trim ( ) . toLowerCase ( )
23-
2421const run = async ( ) => {
2522 try {
23+ // clean input
24+ let apt = getInput ( 'apt-get' )
25+
2626 if ( apt !== '' ) {
2727
2828 // fix for server timeout issues
@@ -94,11 +94,12 @@ const { execSync, grpSt, grpEnd } = __nccwpck_require__(390)
9494// group start time
9595let msSt
9696
97- // clean inputs
98- let brew = core . getInput ( 'brew' ) . replace ( / [ ^ a - z _ \d . @ - ] + / gi, '' ) . trim ( ) . toLowerCase ( )
99-
10097const run = async ( ) => {
10198 try {
99+ // clean input
100+ // use different regex than getInput in common.js. Some packages contain @ character
101+ let brew = core . getInput ( 'brew' ) . replace ( / [ ^ a - z _ \d . + @ - ] + / gi, '' ) . trim ( ) . toLowerCase ( )
102+
102103 if ( brew !== '' ) {
103104 let needUpdate = true
104105
@@ -250,7 +251,9 @@ const log = (logText, color = 'yel') => {
250251 console . log ( `${ colors [ color ] } ${ logText } ${ rst } ` )
251252}
252253
253- const getInput = ( name ) => core . getInput ( name ) . replace ( / [ ^ a - z _ \d . - ] + / gi, '' ) . trim ( ) . toLowerCase ( )
254+ // Used by apt, mingw, & mswin for input 'cleaning'. Brew also uses
255+ // @ character in package names, so regex is in brew.js.
256+ const getInput = ( name ) => core . getInput ( name ) . replace ( / [ ^ a - z _ \d . + - ] + / gi, '' ) . trim ( ) . toLowerCase ( )
254257
255258// convert windows path like C:\Users\runneradmin to /c/Users/runneradmin
256259const win2nix = ( path ) => {
@@ -1097,6 +1100,13 @@ Object.defineProperty(exports, "summary", ({ enumerable: true, get: function ()
10971100 */
10981101var summary_2 = __nccwpck_require__ ( 327 ) ;
10991102Object . defineProperty ( exports , "markdownSummary" , ( { enumerable : true , get : function ( ) { return summary_2 . markdownSummary ; } } ) ) ;
1103+ /**
1104+ * Path exports
1105+ */
1106+ var path_utils_1 = __nccwpck_require__ ( 981 ) ;
1107+ Object . defineProperty ( exports , "toPosixPath" , ( { enumerable : true , get : function ( ) { return path_utils_1 . toPosixPath ; } } ) ) ;
1108+ Object . defineProperty ( exports , "toWin32Path" , ( { enumerable : true , get : function ( ) { return path_utils_1 . toWin32Path ; } } ) ) ;
1109+ Object . defineProperty ( exports , "toPlatformPath" , ( { enumerable : true , get : function ( ) { return path_utils_1 . toPlatformPath ; } } ) ) ;
11001110//# sourceMappingURL=core.js.map
11011111
11021112/***/ } ) ,
@@ -1234,6 +1244,71 @@ exports.OidcClient = OidcClient;
12341244
12351245/***/ } ) ,
12361246
1247+ /***/ 981 :
1248+ /***/ ( function ( __unused_webpack_module , exports , __nccwpck_require__ ) {
1249+
1250+ "use strict" ;
1251+
1252+ var __createBinding = ( this && this . __createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
1253+ if ( k2 === undefined ) k2 = k ;
1254+ Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
1255+ } ) : ( function ( o , m , k , k2 ) {
1256+ if ( k2 === undefined ) k2 = k ;
1257+ o [ k2 ] = m [ k ] ;
1258+ } ) ) ;
1259+ var __setModuleDefault = ( this && this . __setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
1260+ Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
1261+ } ) : function ( o , v ) {
1262+ o [ "default" ] = v ;
1263+ } ) ;
1264+ var __importStar = ( this && this . __importStar ) || function ( mod ) {
1265+ if ( mod && mod . __esModule ) return mod ;
1266+ var result = { } ;
1267+ if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . hasOwnProperty . call ( mod , k ) ) __createBinding ( result , mod , k ) ;
1268+ __setModuleDefault ( result , mod ) ;
1269+ return result ;
1270+ } ;
1271+ Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
1272+ exports . toPlatformPath = exports . toWin32Path = exports . toPosixPath = void 0 ;
1273+ const path = __importStar ( __nccwpck_require__ ( 17 ) ) ;
1274+ /**
1275+ * toPosixPath converts the given path to the posix form. On Windows, \\ will be
1276+ * replaced with /.
1277+ *
1278+ * @param pth. Path to transform.
1279+ * @return string Posix path.
1280+ */
1281+ function toPosixPath ( pth ) {
1282+ return pth . replace ( / [ \\ ] / g, '/' ) ;
1283+ }
1284+ exports . toPosixPath = toPosixPath ;
1285+ /**
1286+ * toWin32Path converts the given path to the win32 form. On Linux, / will be
1287+ * replaced with \\.
1288+ *
1289+ * @param pth. Path to transform.
1290+ * @return string Win32 path.
1291+ */
1292+ function toWin32Path ( pth ) {
1293+ return pth . replace ( / [ / ] / g, '\\' ) ;
1294+ }
1295+ exports . toWin32Path = toWin32Path ;
1296+ /**
1297+ * toPlatformPath converts the given path to a platform-specific path. It does
1298+ * this by replacing instances of / and \ with the platform-specific path
1299+ * separator.
1300+ *
1301+ * @param pth The path to platformize.
1302+ * @return string The platform-specific path.
1303+ */
1304+ function toPlatformPath ( pth ) {
1305+ return pth . replace ( / [ / \\ ] / g, path . sep ) ;
1306+ }
1307+ exports . toPlatformPath = toPlatformPath ;
1308+ //# sourceMappingURL=path-utils.js.map
1309+
1310+ /***/ } ) ,
1311+
12371312/***/ 327 :
12381313/***/ ( function ( __unused_webpack_module , exports , __nccwpck_require__ ) {
12391314
0 commit comments