blob: a94e3127a72077b0339e1af97d0c09d7c1210403 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
using System.Text;
namespace ReferenceClientProxyImplementation.Patches.Implementations.JSPatches;
public class KnownConstantsPatch : IPatch {
public int GetOrder() => 1;
public string GetName() => "Use named constants";
public bool Applies(string relativeName, byte[] content) => relativeName.EndsWith(".js");
public async Task<byte[]> Execute(string _, byte[] content) {
var stringContent = Encoding.UTF8.GetString(content);
return Encoding.UTF8.GetBytes(stringContent);
}
}
|