We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0a8516 commit bd94b33Copy full SHA for bd94b33
1 file changed
JSON.awk
@@ -1,7 +1,7 @@
1
#!/usr/bin/awk -f
2
#
3
# Software: JSON.awk - a practical JSON parser written in awk
4
-# Version: 1.3
+# Version: 1.3.1
5
# Copyright (c) 2013-2019, step
6
# License: MIT or Apache 2
7
# Project home: https://github.com/step-/JSON.awk
@@ -57,6 +57,10 @@ BEGIN { #{{{1
57
srand(); RS="n/o/m/a/t/c/h" rand()
58
}
59
60
+1 == NR && match($0, /^\xEF\xBB\xBF/) { # strip BOM mark {{{1
61
+ $0 = substr($0, RLENGTH + 1)
62
+}
63
+
64
{ # main loop: process each file in turn {{{1
65
reset() # See important application note in reset()
66
0 commit comments