Chromium Code Reviews| Index: pylib/gyp/generator/make.py |
| =================================================================== |
| --- pylib/gyp/generator/make.py (revision 1410) |
| +++ pylib/gyp/generator/make.py (working copy) |
| @@ -602,8 +602,7 @@ |
| def StringToMakefileVariable(string): |
| """Convert a string to a value that is acceptable as a make variable name.""" |
| - # TODO: replace other metacharacters that we encounter. |
| - return re.sub('[ {}$]', '_', string) |
| + return re.sub('[^a-zA-Z0-9_]', '_', string) |
| srcdir_prefix = '' |