GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: use `starts_with` in node_dotenv.cc · nodejs/node@e43a4e0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_dotenv.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_dotenv.cc‎

Copy file name to clipboardExpand all lines: src/node_dotenv.cc
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ void Dotenv::ParseContent(const std::string_view input) {
135135
}
136136

137137
// Remove export prefix from key
138-
auto have_export = key.compare(0, 7, "export ") == 0;
139-
if (have_export) {
138+
if (key.starts_with("export ")) {
140139
key.remove_prefix(7);
141140
}
142141

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.