File tree 1 file changed +1
-3
lines changed
src/tools/compiletest/src
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -1315,13 +1315,11 @@ fn expand_variables(mut value: String, config: &Config) -> String {
1315
1315
/// normalize-*: "REGEX" -> "REPLACEMENT"
1316
1316
/// ```
1317
1317
fn parse_normalize_rule ( header : & str ) -> Option < ( String , String ) > {
1318
- // FIXME(#126370): A colon after the header name should be mandatory, but
1319
- // currently is not, and there are many tests that lack the colon.
1320
1318
// FIXME: Support escaped double-quotes in strings.
1321
1319
let captures = static_regex ! (
1322
1320
r#"(?x) # (verbose mode regex)
1323
1321
^
1324
- [^:\s]+:? \s* # (header name followed by optional colon)
1322
+ [^:\s]+:\s* # (header name followed by colon)
1325
1323
"(?<regex>[^"]*)" # "REGEX"
1326
1324
\s+->\s+ # ->
1327
1325
"(?<replacement>[^"]*)" # "REPLACEMENT"
You can’t perform that action at this time.
0 commit comments