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

Issue 110853007: Escape "\" in regex to unbreak Windows bot. (Closed)

Created:
7 years ago by Bob Nystrom
Modified:
6 years, 12 months ago
Reviewers:
nweiz
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Escape "\" in regex to unbreak Windows bot. Committed: https://code.google.com/p/dart/source/detail?r=31295

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -6 lines) Patch
M sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart View 1 chunk +7 lines, -3 lines 6 comments Download
M sdk/lib/_internal/pub/test/serve/warns_on_assets_paths_test.dart View 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Bob Nystrom
TBR.
7 years ago (2013-12-19 19:03:12 UTC) #1
Bob Nystrom
Committed patchset #1 manually as r31295 (presubmit successful).
7 years ago (2013-12-19 19:03:28 UTC) #2
nweiz
https://codereview.chromium.org/110853007/diff/1/sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart File sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart (right): https://codereview.chromium.org/110853007/diff/1/sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart#newcode14 sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart:14: assetsPath = assetsPath.replaceAll("\\", "\\\\"); We should have a regExpQuote ...
7 years ago (2013-12-19 19:34:34 UTC) #3
Bob Nystrom
https://codereview.chromium.org/110853007/diff/1/sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart File sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart (right): https://codereview.chromium.org/110853007/diff/1/sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart#newcode14 sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart:14: assetsPath = assetsPath.replaceAll("\\", "\\\\"); On 2013/12/19 19:34:34, nweiz wrote: ...
7 years ago (2013-12-19 23:31:12 UTC) #4
nweiz
https://codereview.chromium.org/110853007/diff/1/sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart File sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart (right): https://codereview.chromium.org/110853007/diff/1/sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart#newcode14 sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart:14: assetsPath = assetsPath.replaceAll("\\", "\\\\"); On 2013/12/19 23:31:12, Bob Nystrom ...
7 years ago (2013-12-19 23:36:05 UTC) #5
Bob Nystrom
6 years, 12 months ago (2013-12-27 22:53:01 UTC) #6
Message was sent while issue was closed.
Revised here: https://codereview.chromium.org/108243003

https://codereview.chromium.org/110853007/diff/1/sdk/lib/_internal/pub/test/b...
File sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart (right):

https://codereview.chromium.org/110853007/diff/1/sdk/lib/_internal/pub/test/b...
sdk/lib/_internal/pub/test/build/warns_on_assets_paths_test.dart:14: assetsPath
= assetsPath.replaceAll("\\", "\\\\");
On 2013/12/19 23:36:05, nweiz wrote:
> On 2013/12/19 23:31:12, Bob Nystrom wrote:
> > On 2013/12/19 19:34:34, nweiz wrote:
> > > We should have a regExpQuote function in utils (with a TODO to remove it
> when
> > > issue 4706 is fixed).
> > 
> > Since this is already in, I don't think it's worth the effort now.
> 
> I'm uncomfortable with the idea of TBRing something and then saying "it's
> already in so it's not worth changing". TBRs should undergo just as much code
> review as other CLs.

Gah, you're exactly right. I apologize.

> 
> > And we generally try to avoid needing to quote regex strings at runtime.
> 
> This doesn't make sense to me. RegExps are useful for validating test output,
> building them dynamically can often make tests more readable, and quoting is
> necessary when including arbitrary strings in RegExps.

Okey dokey.

Powered by Google App Engine
This is Rietveld 408576698