Lines Matching refs:replace
45 // we can't just replace these values everywhere because they're known to be
47 // replace them if they're located within quotes for now
54 .replace(/\r\n/g, '\n') // normalize line endings (for ini)
55 .replace(/[A-z]:\\/g, '\\') // turn windows roots to posix ones
56 .replace(/\\+/g, '/') // replace \ with /
135 // and finally replace some paths we know could be present
137 .replace(viewer, '"{VIEWER}"$1')
144 .replace(cache, '{CACHE}$1')
150 .replace(new RegExp(process.version, 'g'), '{NODE-VERSION}')
151 .replace(new RegExp(pkg.version, 'g'), '{NPM-VERSION}')
157 // to replace would no longer be represented, and be missed.
159 // replace vague default config values that are present within quotes