Skip to content

Commit

Permalink
added support for other utf8 charset separator
Browse files Browse the repository at this point in the history
  • Loading branch information
kaufmo authored Feb 14, 2017
1 parent 34a9ae4 commit d6e5734
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Kwf/SourceMaps/SourceMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ public static function createFromInline($fileContents)
$map = substr($url, 29);
} else if (substr($url, 0, 29 + 14) == 'data:application/json;charset:utf-8;base64,') {
$map = substr($url, 29 + 14);
} else if (substr($url, 0, 29 + 14) == 'data:application/json;charset=utf-8;base64,') {
$map = substr($url, 29 + 14);
} else {
throw new Exception("Unsupported sourceMappingURL");
}
Expand Down

0 comments on commit d6e5734

Please sign in to comment.