We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fdbdd0 commit 90c6c33Copy full SHA for 90c6c33
sourcemap/decoder.py
@@ -104,7 +104,7 @@ def decode(self, source):
104
# According to spec (https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.h7yy76c5il9v)
105
# A SouceMap may be prepended with ")]}'" to cause a Javascript error.
106
# If the file starts with that string, ignore the entire first line.
107
- if source[:4] == ")]}'":
+ if source[:4] == ")]}'" or source[:3] == ")]}":
108
source = source.split('\n', 1)[1]
109
110
smap = json.loads(source)
0 commit comments