Skip to content

Commit

Permalink
chore: add leading space in comment
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
  • Loading branch information
jonaskuske and bluwy committed Apr 11, 2022
1 parent a12f327 commit d2c6ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/define.ts
Expand Up @@ -69,7 +69,7 @@ export function definePlugin(config: ResolvedConfig): Plugin {
const pattern = replacementsKeys.length
? new RegExp(
// Mustn't be preceded by a char that can be part of an identifier
//or a '.' that isn't part of a spread operator
// or a '.' that isn't part of a spread operator
'(?<![\\p{L}\\p{N}_$]|(?<!\\.\\.)\\.)(' +
replacementsKeys
.map((str) => {
Expand Down

0 comments on commit d2c6ada

Please sign in to comment.