parent
2fe0ffc2a8
commit
0a3cf5ed82
|
@ -664,7 +664,7 @@ func TestExampleObjectSchemas(t *testing.T) {
|
||||||
// 6) Look for #5 followed by a newline followed by ``` (end of the code block)
|
// 6) Look for #5 followed by a newline followed by ``` (end of the code block)
|
||||||
//
|
//
|
||||||
// This could probably be simplified, but is already too delicate. Before any
|
// This could probably be simplified, but is already too delicate. Before any
|
||||||
// real changes, we should have a testscase that just tests this regex.
|
// real changes, we should have a test case that just tests this regex.
|
||||||
var sampleRegexp = regexp.MustCompile("(?ms)^```(?:(?P<type>yaml)\\w*\\n(?P<content>.+?)|\\w*\\n(?P<content>\\{.+?\\}))\\n^```")
|
var sampleRegexp = regexp.MustCompile("(?ms)^```(?:(?P<type>yaml)\\w*\\n(?P<content>.+?)|\\w*\\n(?P<content>\\{.+?\\}))\\n^```")
|
||||||
var subsetRegexp = regexp.MustCompile("(?ms)\\.{3}")
|
var subsetRegexp = regexp.MustCompile("(?ms)\\.{3}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue