Skip to content

Commit

Permalink
Merge pull request #172 from aadudyrev/functionSetFix
Browse files Browse the repository at this point in the history
Fix caseSensitive in FunctionRegistration.
  • Loading branch information
davedelong committed Aug 28, 2020
2 parents 1feea27 + 637d2cb commit 3342c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MathParser/Sources/MathParser/FunctionSet.swift
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 3342c56

Please sign in to comment.