File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ func (d *DocumentPositionMapper) GetGeneratedPosition(loc *DocumentPosition) *Do
229
229
func GetDocumentPositionMapper (host Host , generatedFileName string ) * DocumentPositionMapper {
230
230
mapFileName := tryGetSourceMappingURL (host , generatedFileName )
231
231
if mapFileName != "" {
232
- if base64Object , matched := tryParseBase46Url (mapFileName ); matched {
232
+ if base64Object , matched := tryParseBase64Url (mapFileName ); matched {
233
233
if base64Object != "" {
234
234
if decoded , err := base64 .StdEncoding .DecodeString (base64Object ); err == nil {
235
235
return convertDocumentToSourceMapper (host , string (decoded ), generatedFileName )
@@ -288,7 +288,7 @@ func tryGetSourceMappingURL(host Host, fileName string) string {
288
288
289
289
// Originally: /^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/
290
290
// Should have been /^data:(?:application\/json;(?:charset=[uU][tT][fF]-8;)?base64,([A-Za-z0-9+/=]+)$)?/
291
- func tryParseBase46Url (url string ) (parseableUrl string , isBase64Url bool ) {
291
+ func tryParseBase64Url (url string ) (parseableUrl string , isBase64Url bool ) {
292
292
var found bool
293
293
if url , found = strings .CutPrefix (url , `data:` ); ! found {
294
294
return "" , false
You can’t perform that action at this time.
0 commit comments