summaryrefslogtreecommitdiffstats
path: root/utils.go
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2016-02-28 11:23:54 -0500
committerThibaut Horel <thibaut.horel@gmail.com>2016-02-28 11:23:54 -0500
commitc4060f7d80fc3d24b9f5f31552a969d41b6b7b00 (patch)
tree974f9c5430ba9522f731c27750bd945d492aa117 /utils.go
parent34abed2be3e96b16327a6031d4931f9b98593abe (diff)
downloadbibtex-c4060f7d80fc3d24b9f5f31552a969d41b6b7b00.tar.gz
Make isLower a function for strings not tokens
Diffstat (limited to 'utils.go')
-rw-r--r--utils.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.go b/utils.go
index 1ca8298..e91ae44 100644
--- a/utils.go
+++ b/utils.go
@@ -121,8 +121,8 @@ func (r *reader) readCommand() string {
return buf.String()
}
-func (t *Token) isLower() bool {
- reader := newReader(t.Text)
+func isLower(s string) bool {
+ reader := newReader(s)
for c := reader.readRune(); c != eof; c = reader.readRune() {
switch {
case c == '{':