Skip to content

Commit

Permalink
Fix caseSensitive in FunctionRegistration.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadudyrev committed Mar 5, 2020
1 parent 3f108b7 commit 637d2cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MathParser/Sources/MathParser/FunctionSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private final class FunctionRegistration {

init(function: Function, caseSensitive: Bool) {
self.function = function.evaluator
self.names = Set(function.names.map { caseSensitive ? $0.lowercased() : $0 })
self.names = Set(function.names.map { caseSensitive ? $0 : $0.lowercased() })
}

func addAlias(_ name: String) {
Expand Down

0 comments on commit 637d2cb

Please sign in to comment.