File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 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 {
13151315/// normalize-*: "REGEX" -> "REPLACEMENT"
13161316/// ```
13171317fn 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.
13201318 // FIXME: Support escaped double-quotes in strings.
13211319 let captures = static_regex ! (
13221320 r#"(?x) # (verbose mode regex)
13231321 ^
1324- [^:\s]+:? \s* # (header name followed by optional colon)
1322+ [^:\s]+:\s* # (header name followed by colon)
13251323 "(?<regex>[^"]*)" # "REGEX"
13261324 \s+->\s+ # ->
13271325 "(?<replacement>[^"]*)" # "REPLACEMENT"
You can’t perform that action at this time.
0 commit comments