Skip to content

Commit 919e2a0

Browse files
committed
Add const to requireRegex
1 parent 43dbab1 commit 919e2a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/Try/Loader.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type Dependency =
4545
}
4646

4747
requireRegex :: Regex
48-
requireRegex = unsafeRegex """^var\s+\S+\s*=\s*require\(["']([^"']*)["']\)""" noFlags
48+
requireRegex = unsafeRegex """^(?:const|var)\s+\S+\s*=\s*require\(["']([^"']*)["']\)""" noFlags
4949

5050
dirname :: String -> String
5151
dirname path = fromMaybe "" do

0 commit comments

Comments
 (0)