Commit 790d3a9
CLJS-1476: Self-host: Protocol prefixing broken for three- (or more) segment namespaces
Fixes protocol-prefix fn (two copies, one in core and one
in compiler) for use in self-host. At its core, this function
need to take a string like
alpha.beta.gamma/IFoo
and turn it into
alpha$beta$gamma$IFoo$
and it was failing to replace the multiple dot characters
when in self-host mode owing to the fact that .replace
in JavaScript is not a global replace. This fix adds the
"g" flag.1 parent 6ae18eb commit 790d3a9
2 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
909 | | - | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
910 | 913 | | |
911 | 914 | | |
912 | 915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1190 | 1190 | | |
1191 | 1191 | | |
1192 | 1192 | | |
1193 | | - | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
1194 | 1197 | | |
1195 | 1198 | | |
1196 | 1199 | | |
| |||
0 commit comments