Skip to content

Commit bb7a5b3

Browse files
committed
fix typo
1 parent 672434a commit bb7a5b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/sourcemap/source_mapper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func (d *DocumentPositionMapper) GetGeneratedPosition(loc *DocumentPosition) *Do
229229
func GetDocumentPositionMapper(host Host, generatedFileName string) *DocumentPositionMapper {
230230
mapFileName := tryGetSourceMappingURL(host, generatedFileName)
231231
if mapFileName != "" {
232-
if base64Object, matched := tryParseBase46Url(mapFileName); matched {
232+
if base64Object, matched := tryParseBase64Url(mapFileName); matched {
233233
if base64Object != "" {
234234
if decoded, err := base64.StdEncoding.DecodeString(base64Object); err == nil {
235235
return convertDocumentToSourceMapper(host, string(decoded), generatedFileName)
@@ -288,7 +288,7 @@ func tryGetSourceMappingURL(host Host, fileName string) string {
288288

289289
// Originally: /^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/
290290
// 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) {
292292
var found bool
293293
if url, found = strings.CutPrefix(url, `data:`); !found {
294294
return "", false

0 commit comments

Comments
 (0)