Skip to content

Commit

Permalink
Remove some invalid escape codes
Browse files Browse the repository at this point in the history
closure's scripts still contain a few, but this is a good first step
  • Loading branch information
GarboMuffin committed Jan 4, 2024
1 parent ae3b9ec commit c84f770
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def run(self):
if (!isNodeJS) {
// Find name of current directory.
var scripts = document.getElementsByTagName('script');
var re = new RegExp('(.+)[\/]blockly_uncompressed(_vertical|_horizontal|)\.js$');
var re = new RegExp('(.+)[\\/]blockly_uncompressed(_vertical|_horizontal|)\\.js$');
for (var i = 0, script; script = scripts[i]; i++) {
var match = re.exec(script.src);
if (match) {
Expand Down Expand Up @@ -451,12 +451,12 @@ def write_output(self, target_filename, remove, json_data):
# The Closure Compiler preserves these.
LICENSE = re.compile("""/\\*
[\w ]+
[\\w ]+
Copyright \\d+ Google Inc.
https://developers.google.com/blockly/
Licensed under the Apache License, Version 2.0 \(the "License"\);
Licensed under the Apache License, Version 2.0 \\(the "License"\\);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down

0 comments on commit c84f770

Please sign in to comment.