Skip to content

Commit 8b8c14c

Browse files
committedFeb 29, 2024
Clean up
1 parent cec0a16 commit 8b8c14c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/Main.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ identifyAddress ∷
7070
identifyAddress addr
7171
| "502....." `matches` addr = Just { origin: "nuttx", type: Code }
7272
| "800....." `matches` addr = Just { origin: "qjs", type: Code }
73-
| otherwise = Nothing
73+
| otherwise = Nothing -- Unknown Address
7474

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

0 commit comments

Comments
 (0)
Please sign in to comment.