Fix Atom.is_valid
This commit is contained in:
parent
e3f34fab71
commit
da7874ebdf
|
@ -17,7 +17,7 @@ module Atom = struct
|
||||||
|
|
||||||
let is_valid str =
|
let is_valid str =
|
||||||
let len = String.length str in
|
let len = String.length str in
|
||||||
len = 0 ||
|
len > 0 &&
|
||||||
let rec loop ix =
|
let rec loop ix =
|
||||||
match str.[ix] with
|
match str.[ix] with
|
||||||
| '"' | '(' | ')' | ';' | '\\' -> true
|
| '"' | '(' | ')' | ';' | '\\' -> true
|
||||||
|
|
Loading…
Reference in New Issue