Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Feb 29, 2024
1 parent cec0a16 commit 8b8c14c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ identifyAddress ∷
identifyAddress addr
| "502....." `matches` addr = Just { origin: "nuttx", type: Code }
| "800....." `matches` addr = Just { origin: "qjs", type: Code }
| otherwise = Nothing
| otherwise = Nothing -- Unknown Address

-- Address can point to Code, Data, BSS or Heap
data AddressType = Code | Data | BSS | Heap
Expand All @@ -94,7 +94,7 @@ matches ∷
-- "a `unsafeRegex` b" is same as "(unsafeRegex a b)"
matches pattern addr =
let
patternWrap = "^" <> pattern <> "$"
patternWrap = "^" <> pattern <> "$" -- Regex Pattern becomes `^502.....$`
in
isJust $ -- Is there a Match...
patternWrap `unsafeRegex` noFlags -- For our Regex Pattern (no special flags)
Expand Down

0 comments on commit 8b8c14c

Please sign in to comment.