Skip to content

Commit 97fc283

Browse files
committed
Make Browser.application hack more reliable
1 parent 2c5dd41 commit 97fc283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/prepare-release

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ mv assets/glossary-*.css "glossary-$release_tag".min.css
3535
# The command below makes `file://` URLs look like `http://example.com/...` ones.
3636
# See also https://github.com/elm/core/blob/1.0.0/hints/1.md
3737
sed -i \
38-
-e 's! \([a-zA-Z0-9]\+([a-zA-Z0-9]\+\.location\.href\))\.a||! \1).a||\1.replace(/^file:\\/\\//, "http://example.com")).a||!' \
38+
-e 's! \([a-zA-Z0-9]\+(\$\?[a-zA-Z0-9]\+\.location\.href\))\.a||! \1).a||\1.replace(/^file:\\/\\//, "http://example.com")).a||!' \
3939
"glossary-$release_tag".min.js
4040

41-
grep -q 'example\.com' "glossary-$release_tag".min.js || fail 'Failed to apply Browser.application hack'
41+
grep -q 'http://example\.com' "glossary-$release_tag".min.js || fail 'Failed to apply Browser.application hack'
4242

4343
for template in glossary empty; do
4444
cat $template.html | \

0 commit comments

Comments
 (0)