Skip to content

Commit 9ff4bd8

Browse files
Bug fix which disallowed detecting const variables
1 parent f3fa3f7 commit 9ff4bd8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

helpers/getVariables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def variableSearch(file, output_file):
1515
# this is done to avoid redunduncy while comparing let and var
1616
name = code[i:i+3]
1717

18-
if name == "var" or name == "let" or code[i:i+5] == "const" == "let":
18+
if name == "var" or name == "let" or code[i:i+5] == "const":
1919
if name == "var":
2020
i += 3
2121
else:

helpers/sourcewolf-version.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version: 1.2
2-
new-features:
3-
- "SourceWolf now also can crawl through files to list all the javascript variables found in the source!"
1+
version: 1.3
2+
bug-fixes:
3+
- "A bug which did not allow detecting 'const' javascript variables was fixed"

0 commit comments

Comments
 (0)