Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Update Active.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettRToomey authored Jul 7, 2017
1 parent 803d94d commit e45b746
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/AdminPanel/Support/LeafTags/Active.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public class Active: BasicTag {
if check.hasSuffix("*"), url.contains(check.replacingOccurrences(of: "*", with: "")) {
return .string(key)
}

if check == url {
return .string(key)
}
}

return nil
Expand Down

0 comments on commit e45b746

Please sign in to comment.