hunk.code_window: 	script := fmt.Sprintf("window.publicPath='%s'", newPath)
   	scriptHash := sha256.Sum256([]byte(script))
   	reCSP := regexp.MustCompile(`<meta http-equiv=Content-Security-Policy content="script-src 'self' cdn.segment.com/analytics.js/ 'unsafe-eval'([^"]*)">`)
   	newRootHtml = reCSP.ReplaceAllLiteralString(newRootHtml, fmt.Sprintf(
  
hunk.labels: keep keep keep replace keep
hunk.after_edit: 	reCSP := regexp.MustCompile(`<meta http-equiv="Content-Security-Policy" content="script-src 'self' cdn.segment.com/analytics.js/ 'unsafe-eval'([^"]*)">`)
   	if results := reCSP.FindAllString(newRootHtml, -1); len(results) == 0 {
   		return fmt.Errorf("failed to find 'Content-Security-Policy' meta tag to rewrite")
   	}
  
hunk.file_path: utils/subpath.go
hunk.type: replace
file: // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
  // See License.txt for license information.
  
  package app
  
  import (
  	"testing"
  
  	"github.com/mattermost/mattermost-server/testlib"
  )
  
  var mainHelper *testlib.MainHelper
  
  func TestMain(m *testing.M) {
  	mainHelper = testlib.NewMainHelper()
  	defer mainHelper.Close()
  
  	mainHelper.Main(m)
  }
  