Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Issue 2141973002: Fix :rfc1034identifier when the value contains underscore. (Closed)

Created:
4 years, 5 months ago by sdefresne
Modified:
4 years, 5 months ago
CC:
gyp-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/gyp.git@master
Target Ref:
refs/heads/master
Project:
gyp
Visibility:
Public.

Description

Fix :rfc1034identifier when the value contains underscore. The :rfc1034identifier substitution converts invalid characters to '-' because an underscore is invalid in an URL, however, if the value does contain an underscore (like is the case for target_name in Chromium) it is not replaced by a '-'. Fix this by adding an '_' in the IDENT_RE. This cause the '_' to be replaced by a '-' when using :rfc1034identifier and by a '_' when using :identifier (i.e. no-operation). BUG=625875 R=justincohen@chromium.org Committed: https://chromium.googlesource.com/external/gyp/+/e7079f0e0e14108ab0dba58728ff219637458563

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M pylib/gyp/mac_tool.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (3 generated)
sdefresne
Please take a look.
4 years, 5 months ago (2016-07-12 13:13:23 UTC) #2
justincohen
lgtm
4 years, 5 months ago (2016-07-12 14:57:50 UTC) #4
sdefresne
4 years, 5 months ago (2016-07-12 15:48:14 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
e7079f0e0e14108ab0dba58728ff219637458563 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698